I have a keyspace with the following replication:
cassandra@cqlsh> describe database CREATE KEYSPACE adserv WITH replication = {'class': 'NetworkTopologyStrategy', 'singapore': '2', 'singaporedo': '2'} AND durable_writes = true;
The servers in singapore do not exist.
[root@cassandra-7 ~]# dsetool status Warning: Not able to read Analytics Master data, SparkMaster data may not be correctDC: singaporedo Workload: Cassandra Graph: no ====================================================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Owns Token Rack Health [0,1] 1051212759506365289 UN Node-1 379.53 GiB ? -9962553594005710 rack-1 0.90 UN Node-12 407.37 GiB ? 10212759506365289 rack-1 0.90
what can you do to change this? If I edit this will it modify anything? Is there any chance to lose data?
If I execute the below command to remove 'singapore', will it be fine.
ALTER KEYSPACE adserv WITH replication = {'class': 'NetworkTopologyStrategy', 'singaporedo': '2'} AND durable_writes = true;