4

Hypothetical situation:

  1. Setup a cassandra cluster with N nodes.
  2. Create a keyspace and set replication_factor to 1 and use SimpleStrategy.
  3. Add some data.
  4. Remove 1 node.

Does this mean that 1/N of the data is now missing?

5

For read requests, Yes that's what it means. A replication factor of 1 is generally something you don't want with cassandra (unless you have a single node).

Higher replication factors would give you better resilience but the main parameter that determine availability of rows is actually the consistency level (which is query specific).

For write requests, the ANY consistency level would make the cluster kind of a kind the request even if the selected target for the row is missing (as it would try to use hinted handoff to commit writes later).

2

You didn't tell us how the node is removed, if you use the nodetool command then data on the node will be sent to other nodes before its removal. So you'll keep your data.

See http://wiki.apache.org/cassandra/Operations#Removing_nodes_entirely

If your node crash :

  • for read requests, your data are lost
  • for write requests:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.