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

somrcha1_186924 avatar image
somrcha1_186924 asked ·

Should we place nodes from 2 physical DCs in the same rack?

[FOLLOW UP QUESTION TO #8601]

Lets say we have 2 datacenters. host1 in housed in DataCenter1 and host2 in DataCenter2.

Our datacenters are 30 miles apart...

If we want to put 2 nodes per data centers,should we keep single node in single rack? because if in datacenter we keep both nodes in single rack,Rack failure would have same effect as datacenter failure

topology
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.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

I would not advise placing nodes from two different physical DCs in the same Cassandra DC.

Also, our general recommendation is to have the same number of racks in a DC as there are replicas. Since we recommend a replication factor of 3 in each DC, you should have 3 racks in each DC. If you only have 2 racks, the data distribution will not be balanced and some nodes will have more data than others. 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.