-
Notifications
You must be signed in to change notification settings - Fork 3
Cluster config
Vladimir Stepanenko edited this page Jun 25, 2021
·
2 revisions
This page provides a specification of the cluster configuration file and instructions for the generation of this configuration with CCG. An example configuration can be found here.
- nodes
- Description: list of nodes in cluster
- Type: array of Node
- Required: true
- vdisks
- Description: list of vdisks in cluster
- Type: array of Vdisk
- Required: true
[list] of all cluster nodes
- name
- address
- disks
- Description: list of physical node disks
- Type: array of Disk
- Required: true
- id
- replicas
- Description: list of vdisk replicas locations
- Type: array of Replica
- Required: true
- node
- disk
- Description: disk name, to find location of the replica on the node in disks list
- Type: string
- Required: true
- name
- path
- Description: mount point, it doesn't matter if it is a whole physical disk or a directory
- Type: string
- Required: true
You can generate config with CCG.
In order to generate the configuration, you need to create a
configuration file with information about the servers
(for example, cluster.yaml). This file must contain nodes
field of cluster config.
Then you can use the CCG to generate the vdisks
field with VDISKS
count of vdisks and REPLICAS
count of replicas.
ccg new -i cluster.yaml -o cluster.g.yaml -r REPLICAS -d VDISKS