Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 如何禁用 region 的自动合并?
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?
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
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.
Thank you, I’ll give it a try.
Well, I’ll pre-split and test first, I don’t want to be merged directly.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.