Determines the location of nodes by rack and datacenter.

This snitch determines proximity as determined by rack and datacenter. It uses the network details located in the file. When using this snitch, you can define your datacenter names to be whatever you want. Make sure that the datacenter names correlate to the name of your datacenters in the keyspace definition. Every node in the cluster should be described in the file, and this file should be exactly the same on every node in the cluster.

The location of the file depends on the type of installation:
Package installations /etc/cassandra/
Tarball installations install_location/conf/


If you had non-uniform IPs and two physical datacenters with two racks in each, and a third logical datacenter for replicating analytics data, the file might look like this:
Note: datacenter and rack names are case-sensitive.
# datacenter One

# datacenter Two

# Analytics Replication Group

# default for unknown nodes 
default =DC3:RAC1