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 ·

Can we place nodes from 2 different physical DCs in the same ring?

[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...Is that possible to configure single node ring expanded across two datacenters?

Or we need to configure seperate node ring datacenter wise

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 ·

There isn't a technical reason that would stop you from adding nodes from distant DCs in the same ring (Cassandra DC). But it is not ideal because you will likely suffer from latency issues both from a replication perspective and client/driver latency.

To answer your question directly, it is possible to configure a cluster ring (C* DC) that spans two physical DCs. But I wouldn't recommend it.

You should really provision nodes from the same physical DC and add them to their equivalent Cassandra DC. 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.