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

debasis.tcs_69445 avatar image
debasis.tcs_69445 asked Erick Ramirez edited

Can we have different number of nodes in different data centers?

Hi Team

Can we have different number of nodes in different data centers?

For example DC1 will have 16 nodes and DC2 will have 26 nodes.

Also our replication factor is 5 and 3.

Regards

Debasis

data center
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

Artem Chebotko avatar image
Artem Chebotko answered

Having different quantities of nodes in different datacenters is perfectly normal.

Example 1: My app may have more users in Singapore than in UK. Therefore, my Cassandra cluster needs more nodes in the Singapore datacenter (to be able to handle more transactions) than in the UK datacenter.

Example 2: My data may be replicated to two datacenters, so that I can run different types of workloads in different datacenters. One DC is used for real-time transactions and the other DC is used for data analysis. Not only I am likely to use different quantities of nodes in different datacenters, but I may also need different type of servers (usually more powerful servers for analytical datacenter).

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.