Cassandra Documentation


A newer version of this documentation is available.

View Latest file

The PropertyFileSnitch snitch option uses the configuration file to determine which datacenters and racks cluster nodes belong to. If other snitches are used, the must be used. The snitch determines network topology (proximity by rack and datacenter) so that requests are routed efficiently and allows the database to distribute replicas evenly.

Include every node in the cluster in the properties file, defining your datacenter names as in the keyspace definition. The datacenter and rack names are case-sensitive.

The file must be copied identically to every node in the cluster.


This example uses three datacenters:

# datacenter One

# datacenter Two

# datacenter Three

# default for unknown nodes
default =DC3:RAC1