Hi,
I am new to Cassandra and trying to do a POC (Proof of concept) for multi-DC replication.
I have deployed Cassandra on GCP using Market place (click to deploy) solution on 2 DC's. Each DC have 2 nodes on it (Dc1-2 nodes,DC2-2 nodes). Modified cassandra.yaml file for seed nodes
Added 1 node from each DC as seed nodes. Updated system keyspaces replication factor as below:
ALTER KEYSPACE "system_auth" WITH REPLICATION ={'class' :'NetworkTopologyStrategy', 'us-east1_b' : 2, 'us-east1_c': '2'}; ALTER KEYSPACE "system_distributed" WITH REPLICATION ={'class' :'NetworkTopologyStrategy', 'us-east1_b' : 2, 'us-east1_c': '2'}; ALTER KEYSPACE "system_traces" WITH REPLICATION ={'class' :'NetworkTopologyStrategy', 'us-east1_b' : 2, 'us-east1_c': '2'};
And created 1 more Keyspace for replication:
CREATE KEYSPACE "first" WITH REPLICATION ={'class' :'NetworkTopologyStrategy', 'us-east1_b' : 2, 'us-east1_c': '2'};
endpoint_snitch: GoogleCloudSnitch
Nodetool status command on node1 of DC1 node it is giving output as below:
poc-cassandra1-db-vm-0:~$ nodetool status Datacenter: us-east1_b ==================================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns (effective) Host ID Rack UN 10.20.40.12 214.18 KiB 256 100.0% 00d096a5-c4a2-4a25-ae0f-e2255afa1839 b UN 10.20.40.11 232.27 KiB 256 100.0% a31c790b-f892-4f26-b3dd-c93f2639a19f b
when a table is created and inserted few rows on node1 of DC1, Same data reflected in node2 of DC1 but the it is not replicated to DC2 nodes. Please help me to understand what is the issue.
Thanks,
Sandhya