We setup a cluster of 3 servers on one datacenter and 3 on a second datacenter. We setup a KeySpace with a replication factor of 2 in one datacenter and 2 in the second datacenter. When we used sstableloader, then it loaded the data to all 6 nodes. When we used sstableloader with "-i" option to just load to one node. The data did get loaded to just that node. Once the data was loaded to that node, the data did not get replicated to any other node. When I ran repair the data did get replicated to other nodes but only to 3 other nodes. Was this because replication factor was 2 in one datacenter and 2 in the second. Please let me know if this how it works? Or should it have replicated to all the remaining 5 nodes instead of just 3.
In an effort to consolidate free help offered for our products we have decided to move these forums to a more widely used forum. Please use one of the following queries (or any combination):
- Cassandra: tag search or plain text search
- DataStax Enterprise: tag search or plain text search
- DataStax OpsCenter: tag search or plain text search
sstableloader with -i option and replication factor(4 posts) (2 voices)
What replication strategy are we talking about here is it NetworkTopologyStrategy or SimpleStrategy?
Good read on this topic http://www.datastax.com/docs/1.0/cluster_architecture/replication
Than after you wrote data to one of the servers it should have replicated to 3 others (2 in DC1 and 1 DC2 if you were using DC2 server to write original data using sstableloader), because you have total replication of 4 (2x2).