Uneven Distribution of Tikv Regions

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Tikv region分布不均匀

| username: 普罗米修斯

[TiDB Usage Environment] Test Environment
[TiDB Version] v5.2.4
[Encountered Problem: Phenomenon and Impact]
Newly deployed 5.2.4 cluster with 4 TiKV nodes distributed across two machines. Not sure if it’s due to labels configuration, but after uploading some data, the data is only distributed across three nodes. The leader score and region score on the other node are very low, and the count is minimal.
Image
Image
Image
[Resource Configuration]
Image
Image
Image
Image

| username: tidb菜鸟一只 | Original post link

The data volume is too small to be meaningful… I see that your store leader size is balanced, but the store leader count is unbalanced…

| username: 普罗米修斯 | Original post link

Okay, let’s observe for a while. I have a question: are the labels of TiKV nodes on the same server the same?

| username: tidb菜鸟一只 | Original post link

You have three replicas, right? But you only have two machines, and both are labeled. Theoretically, with the same label, you can’t have two replicas of the same region on the same host if you label by host. However, with your topology, this is the only way to store them.

| username: 普罗米修斯 | Original post link

Okay, if there are no issues with the subsequent tests, we will expand by adding two more servers.

| username: TiDB_C罗 | Original post link

From the beginning, deploy according to the specifications to avoid many problems. Additionally, the newly deployed cluster is still using the 5.x version, so you might consider using the new version.

| username: xfworld | Original post link

First, increase the amount of data. :blush:

| username: zhanggame1 | Original post link

Try testing with a large data write. Why not use the new version for the new deployment?

| username: 普罗米修斯 | Original post link

The latest version will be deployed later.

| username: 普罗米修斯 | Original post link

There should be no problem, it’s just that the data volume is too small, and most of them are empty regions.

| username: 普罗米修斯 | Original post link

The data volume is too low.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.