2

As described in this example each tserver started with 12 tablet as we set number of shards to 4.

enter image description here

And when we added a new node the number of tablet per tserver became 9. it seems the total number of tablet, which is 36, will not increase.

enter image description here My question is:

How many node could we add while we have 36 total tablet(in this example)?

And Is it possible to increase shards count in a running universe to be able to add more node?

Ali Zeinali
  • 551
  • 4
  • 16

1 Answers1

4

How many node could we add while we have 36 total tablet(in this example)?

In this example, you can expand to 12 nodes (each node would end up with 1 leader and 2 followers).

Reasoning: There are 36 total tablets for this table and the replication factor is 3. So there will 12 tablet leaders and 24 tablet followers. Leaders are responsible for handling writes and reads (unless you're doing follower reads, lets assume that is not the case). If you go to 12 nodes, each node would at least have one leader and be doing some work.

Ideally, you should create enough tablets upfront so that you end up with 4 tablets per node eventually.

And Is it possible to increase shards count in a running universe to be able to add more node?

This is currently not possible, but being worked on and getting close to the finish. expected to be released in Q1 2020. If you are interested in this feature, please subscribe to this GitHub issue for updates.

Until that is ready, as a workaround, you can split the table into sufficient number of tablets.