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.
sstableloader with -i option and replication factor
(4 posts) (2 voices)-
Posted 11 months ago #
-
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
Posted 11 months ago # -
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).
Posted 11 months ago # -
NetworkTopologyStrategy
Posted 11 months ago #
Reply
You must log in to post.
