Configuring the Google Cloud Platform snitch
Use the GoogleCloudSnitch for DataStax Enterprise deployments on Google Cloud Platform across one or more regions. The region is treated as a datacenter and the availability zones are treated as racks within the datacenter. All communication occurs over private IP addresses within the same logical network.
The region name is treated as the datacenter name and zones are treated as racks within a datacenter. For example, if a node is in the us-central1-a region, us-central1 is the datacenter name and a is the rack location. (Racks are important for distributing replicas, but not for datacenter naming.) This snitch can work across multiple regions without additional configuration.
If you are using only a single datacenter, you do not need to specify any properties.
If you need multiple datacenters, set the dc_suffix options in the cassandra-rackdc.properties
file.
Any other lines are ignored.
For example, for each node within the us-central1 region, specify the datacenter in its cassandra-rackdc.properties
file:
Datacenter names are case-sensitive. |
Node | dc_suffix |
---|---|
node0 |
|
node1 |
|
node2 |
|
node3 |
|
node4 |
|
node5 |
|