How can I get the name of the datacenter in cqlsh
? It's required for the constructor of DCAwareRoundRobinPolicy
.
An Apache Cassandra Datacenter is a group of nodes, related and configured within a cluster for replication purposes. Setting up a specific set of related nodes into a datacenter helps to reduce latency, prevent transactions from impact by other workloads, and related effects.
cqlsh> use system; cqlsh:system> select data_center from local; data_center ------------- datacenter1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With