Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

gmldba_107428 avatar image
gmldba_107428 asked ·

What happens if I set a keyspace with replication factor of 3 on a cluster of two nodes?

I have a test cluster of two nodes, what happens If I se replication factor of three on a given keyspace?

replication factor
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Aleks Volochnev avatar image
Aleks Volochnev answered ·

Hi @gmldba_107428

You can create a keyspace RF=3 on a two-node cluster, but then any request with CL>2 will fail. I've recorded a video with a live demo:

Thanks for asking questions!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

@gmldba_107428 You can't have a replication factor greater than the number of nodes in a DC. You will get errors indicating there are not enough replicas. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.