GoogleCloudSnitch

Use the GoogleCloudSnitch for Cassandra deployments on Google Cloud Platform across one or more regions.

Use the GoogleCloudSnitch for Cassandra deployments on Google Cloud Platform across one or more regions. The region is treated as a data center and the availability zones are treated as racks within the data center. All communication occurs over private IP addresses within the same logical network.

The region name is treated as the data center name and zones are treated as racks within a data center. For example, if a node is in the us-central1-a region, us-central1 is the data center name and a is the rack location. (Racks are important for distributing replicas, but not for data center naming.) This snitch can work across multiple regions without additional configuration.

If you are using only a single data center, you do not need to specify any properties.

If you need multiple data centers, 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 data center in its cassandra-rackdc.properties file:
Note: Data center names are case-sensitive.
  • node0

    dc_suffix=_a_cassandra

  • node1

    dc_suffix=_a_cassandra

  • node2

    dc_suffix=_a_cassandra

  • node3

    dc_suffix=_a_cassandra

  • node4

    dc_suffix=_a_analytics

  • node5

    dc_suffix=_a_search

The location of the cassandra-rackdc.properties file depends on the type of installation:
Package installations /etc/cassandra/cassandra-rackdc.properties
Tarball installations install_location/conf/cassandra-rackdc.properties
Windows installations C:\Program Files\DataStax Community\apache-cassandra\conf\cassandra-rackdc.properties
Note: Data center and rack names are case-sensitive.