Changing replica count
You can modify replica count when you add or remove a data center to consider the increased or decreased number of nodes.
When you add a data center, you might have to change the
keyspace
definition to set a replication policy for the new data center. Complete the
following steps to change the replica count:Important: The
configureDatabase
uses the init.py
script,
which in turn uses the cqlsh
utility. Therefore, to run the
init.py
script, you must set the path for the
cqlsh
utility after you install Cassandra. The path to
cqlsh
utility is,
<install_dir>/apache-cassandra/bin.