Cluster distributed data store
[ccsdk/cds.git] / ms / blueprintsprocessor / application / src / main / resources / atomix / atomix-bootstrap.conf
1 cluster {
2   # Configure the cluster node information.
3   node {
4     id: ${CLUSTER_NODE_ID}
5     address: ${CLUSTER_NODE_ADDRESS}
6   }
7   # Configure the node discovery protocol.
8   discovery {
9     type: bootstrap
10     nodes.1 {
11       id: cds-controller-1
12       address: "cds-controller-1:5679"
13     }
14     nodes.2 {
15       id: resource-reolution-1
16       address: "resource-reolution-1:5679"
17     }
18   }
19 }
20 # Configure the system management group.
21 managementGroup {
22   type: raft
23   name: system
24   partitions: 1
25   members: [${CLUSTER_MEMBERS}]
26   storage {
27     directory: ${CLUSTER_STORAGE_PATH}/data-${CLUSTER_NODE_ID}
28     level: DISK
29   }
30 }
31 # Configure a Raft partition group.
32 partitionGroups.data {
33   type: primary-backup
34   partitions: 7
35 }