- cassandra-topologies.properties file
- Example
cassandra-topologies.properties file
PropertyFileSnitchsnitchoption uses thecassandra-topologies.propertiesconfiguration file to determine whichdatacentersand racks cluster nodes belong to. If other snitches are used, the cassandra-rackdc.properties 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.cassandra-topologies.propertiesfile must be copied identically to every node in the cluster.Example
This example uses three datacenters:# datacenter One175.56.12.105=DC1:RAC1175.50.13.200=DC1:RAC1175.54.35.197=DC1:RAC1120.53.24.101=DC1:RAC2120.55.16.200=DC1:RAC2120.57.102.103=DC1:RAC2# datacenter Two110.56.12.120=DC2:RAC1110.50.13.201=DC2:RAC1110.54.35.184=DC2:RAC150.33.23.120=DC2:RAC250.45.14.220=DC2:RAC250.17.10.203=DC2:RAC2# datacenter Three172.106.12.120=DC3:RAC1172.106.12.121=DC3:RAC1172.106.12.122=DC3:RAC1# default for unknown nodesdefault =DC3:RAC1
