Configuring the Google Cloud Platform snitch

Use the GoogleCloudSnitch snitch for DataStax Enterprise deployments on Google Cloud Platform across one or more regions.

cassandra-rackdc.properties

The location of the cassandra-rackdc.properties file depends on the type of installation:
Package installations /etc/dse/cassandra/cassandra-rackdc.properties
Tarball installations installation_location/resources/cassandra/conf/cassandra-rackdc.properties

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:
Note: Datacenter names are case-sensitive.
Node dc_suffix
node0 dc_suffix=_a_transactional
node1 dc_suffix=_a_transactional
node2 dc_suffix=_a_transactional
node3 dc_suffix=_a_transactional
node4 dc_suffix=_a_analytics
node5 dc_suffix=_a_search