How to Disable Automatic Region Merging?

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

Original topic: 如何禁用 region 的自动合并?

| username: 我就没事闲

I am currently benchmarking TiKV and have pre-split some regions through PD. How can I avoid automatic merging in the future? I want to completely disable automatic merging.

I see that PD has two configurations for managing merging, max-merge-region-size and max-merge-region-keys. Can I set these two to 0?

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

merge-schedule-limit

  • The number of Region Merge tasks that can be scheduled simultaneously. Setting it to 0 disables Region Merge.
  • Default value: 8

You can disable Region Merge by setting the following parameter via pd-ctl:
config set merge-schedule-limit 0

| username: WalterWj | Original post link

Do not shut it down. If you do, the number of TiKV regions will increase indefinitely, leading to excessive region heartbeats, which will eventually make the entire cluster very slow or even unusable.

| username: 我就没事闲 | Original post link

Thank you, I’ll give it a try.

| username: 我就没事闲 | Original post link

Well, I’ll pre-split and test first, I don’t want to be merged directly.

| username: system | Original post link

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