How to Choose PD Scheduling Parameters During Data Balancing After Expanding TiKV Nodes

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

Original topic: Tikv 节点扩容后,数据均衡期间,PD调度相关的参数如何选择

| username: TiDBer_spike

[TiDB Usage Environment] Production Environment
[TiDB Version] V5.3.0
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
Due to insufficient disk space in the TiDB cluster, it was decided to expand the TIKV nodes. It is hoped that during the data balancing process after expansion, the impact on business operations can be minimized. The following parameters are available for adjustment: region-schedule-limit, leader-schedule-limit, store limit, etc.

Default values are as follows:
leader-schedule-limit 4
region-schedule-limit 2048

"store-limit": {
  "1": {
    "add-peer": 15,
    "remove-peer": 15
  },
  "2": {
    "add-peer": 15,
    "remove-peer": 15
  "3": {
    "add-peer": 15,
    "remove-peer": 15

Teacher, how should we choose among the three limits mentioned above? If we reduce region-schedule-limit and leader-schedule-limit, what are the recommended values?

| username: h5n1 | Original post link

The store-limit is a consumer-side control. Adjusting this parameter alone generally has an effect. The specific value needs to be determined based on the actual impact. You can try gradually increasing it from a smaller value.

| username: TiDBer_spike | Original post link

Sure, do I only need to adjust the store limit for the newly expanded store?

| username: h5n1 | Original post link

Yes, the rest can be saved as default.

| username: TiDBer_spike | Original post link

Okay, thank you.

| username: system | Original post link

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