Empty-region-count does not merge

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

Original topic: empty-region-count不合并

| username: Kongdom

[Test Environment for TiDB] Testing
[TiDB Version] v7.1.0
[Reproduction Path] None
[Encountered Issue: Problem Phenomenon and Impact]
Single-node mixed deployment, the overall cluster response slows down, and it is found that empty-region-count, miss-region-count, and undersized-region-count remain high.
Attempted to follow [FAQ] 解决已经开启 region merge, empty-region-count 仍然很多问题 - TiDB 的问答社区 for merging but it had no effect.

| username: 裤衩儿飞上天 | Original post link

Is the missing peer 466k frantically catching up on replicas?

| username: h5n1 | Original post link

How many nodes? How many replicas are configured?

| username: xingzhenxiang | Original post link

Are you suddenly creating many tables?

| username: 路在何chu | Original post link

How long has this situation been going on?

| username: Kongdom | Original post link

Indeed, the network traffic is several megabytes at a time. It’s constantly uploading and downloading.

| username: Kongdom | Original post link

Single node, single replica. It should be a single replica, I’ll confirm it again tomorrow.

| username: Kongdom | Original post link

:joy: I don’t know, in the testing environment, the cluster response has been particularly slow recently, and I just discovered it.

| username: Kongdom | Original post link

It’s possible. This is a test environment where scripts for initializing and creating databases and tables are frequently tested. After testing, the database is deleted and the tests are run again.

| username: xingzhenxiang | Original post link

Should it come down after a while?

| username: Kongdom | Original post link

I checked the data for a month, and it has been rising continuously.

| username: TiDBer_小阿飞 | Original post link

Old Chinese medicine practitioner…

| username: Kongdom | Original post link

Single node with 3 replicas

image

| username: h5n1 | Original post link

miss-peer is related to replica settings.

| username: h5n1 | Original post link

It feels like the empty region not merging is related to TiFlash. Try adjusting the replicas first and then check again.

| username: Kongdom | Original post link

:yum: Should the replica count be set to 1?

| username: h5n1 | Original post link

Set to 1

| username: Kongdom | Original post link

I’ll try it on Monday. Since today is Friday, I won’t touch it for now.

| username: 小龙虾爱大龙虾 | Original post link

Do not deploy with a single replica, PD might not handle it well. After all, no one uses it like this in production. :joy_cat:

| username: Kongdom | Original post link

No problem, this is a development and testing environment, a single replica is acceptable.