summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application/src/main/resources/atomix/atomix-multicast.conf
blob: fd161879c24af1a5c0ebaa5f52572ff27a338e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cluster {
  # Configure the cluster node information.
  node {
    id: ${CLUSTER_NODE_ID}
    address: ${CLUSTER_NODE_ADDRESS}
  }
  # Configure the node discovery protocol.
  discovery {
    type: multicast
  }
  multicast: {
    enabled: true
    port: 54321
  }
  # Configure the SWIM membership protocol.
  protocol {
    type: swim
    broadcastUpdates: true
    gossipInterval: 500ms
    probeInterval: 2s
    suspectProbes: 2
  }
}
# Configure the system management group.
managementGroup {
  type: raft
  name: system
  partitions: 1
  members: [${CLUSTER_MEMBERS}]
  storage {
    directory: ${CLUSTER_STORAGE_PATH}/data-${CLUSTER_NODE_ID}
    level: DISK
  }
}

# Configure a Raft partition group.
partitionGroups.data {
  type: primary-backup
  partitions: 7
}