tikv 节点修改配置 rolling update 之后,leader 集中到一台机器上了

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:
TiKV
Release Version:   3.0.7
Git Commit Hash:   ac6f02648a8c6ccb7ccafca20287e1b27007e4a0
Git Commit Branch: HEAD
UTC Build Time:    2019-12-04 10:06:20
Rust Version:      rustc 1.37.0-nightly (0e4a56b4b 2019-06-13)
  • 【问题描述】:

tikv 节点修改配置 rolling update 之后,leader 集中到一台机器上了

image

这种问题要如何排查和解决呢?尝试用 pd-ctl 调整 weight 也没有任何反应。

经查看是因为

/home/tidb/tidb-ansible/resources/bin/pd-ctl -u "http://10.0.x.x:2379" -d scheduler show
[
  "balance-leader-scheduler",
  "balance-hot-region-scheduler",
  "label-scheduler",
  "evict-leader-scheduler-4",
  "evict-leader-scheduler-5",
  "evict-leader-scheduler-1",
  "balance-region-scheduler"
]

删除 evict-leader-scheduler 就好了:

scheduler remove evict-leader-scheduler-1
scheduler remove evict-leader-scheduler-4
scheduler remove evict-leader-scheduler-5

:+1::+1::+1: