[TiDB Usage Environment] Production Environment
[TiDB Version] v5.4
[Reproduction Path] Reload Cluster
[Encountered Problem: Phenomenon and Impact]
Region merge scheduling is not working, causing empty regions to continuously increase without merging.
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]
PD is not working, you need to check the region merge configuration:
Whether cross-table merge is allowed
Region merge frequency parameters
Split table feature
Check cross-table parameter configuration:
./pd-ctl config show enable-cross-table-merge
Check region frequency configuration: patrol-region-interval:
Controls the frequency at which replicaChecker checks the region monitoring status. The shorter the interval, the faster it runs (10ms).
split-merge-interval:
Controls the interval between split and merge operations on the same region. A newly split region will not merge for a period of time (default 1h).
Split table feature: This can cause an issue where after creating a large number of tables (including executing Truncate Table operations) and then clearing them, the regions cannot merge.
TiKV: Set split-region-on-table to false. This parameter does not support dynamic modification.