Reputation: 219
I have 2 node cluster with replication={'class' : 'NetworktopologyStrategy','DC':'1'} AND durable_writes=true;
, my insert fails when one of the node is down.
The Consistency level is one.
Upvotes: 0
Views: 169
Reputation: 9475
For all inserts to be successful with one node down, you'd need to use a replication factor of 2. When you only use a replication factor of 1, the insert may hash to the down node, and so it cannot complete the write.
If you have a replication factor of 2 and do a write with consistency of ONE, then it can write to the node that is still up.
Or if you turn on hinted handoffs and write with a consistency level of ANY, then you could use a replication factor of 1 and the insert would still succeed, but the write would be delayed until the down node came back up.
Upvotes: 2