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.
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
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).
5 People are following this question.