How to Switch Snitches¶
This procedure describes the steps that need to be done when switching from one type of snitch to another. Such scenario can be when increasing the cluster and adding more data-centers in different locations. Snitches are responsible how Scylla will distribute the replicas, the procedure depends if there are any changes in the cluster topology.
|Cluster Status||Needed Procedure|
|No change in network topology||Set the new snitch|
|Network topology was changed||Set the new snitch and run repair|
Changes in network topology mean that there are changes in the racks or data-centers where the nodes are located.
No topology changes
- Stop all the nodes in the cluster.
- In the
scylla.yamlfile edit the endpoint_snitch. The file can be found under
/etc/scylla/, change the endpoint_snitch to all the nodes in the cluster.
- In the
cassandra-rackdc.propertiesfile edit the rack and data-center information.
A node in the
us-east-1 region, us-east is the data center name and 1 is the rack location.
- Start the nodes in the cluster one by one.
- Run full repair (consult with the table above if this action is needed).