voedger / kb

Knowledge base
0 stars 0 forks source link

Cassandra/Scylla multi DC (datacenter) configuration #17

Open maxim-ge opened 10 months ago

maxim-ge commented 10 months ago

https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlCreateKeyspace.html

'NetworkTopologyStrategy' 'datacenter_name' : N. Assign replication factors to each data center in a comma separated list. Use in production environments and multi-DC test and development environments. Data center names must match the snitch DC name; refer to Snitches for more details.

Snitches

A snitch determines which datacenters and racks nodes belong to. They inform Cassandra about the network topology so that requests are routed efficiently and allows Cassandra to distribute replicas by grouping machines into datacenters and racks. Specifically, the replication strategy places the replicas based on the information provided by the new snitch. All nodes must return to the same rack and datacenter. Cassandra does its best not to have more than one replica on the same rack (which is not necessarily a physical location).

Snitches

See also: Switching snitches