I want to know if TiDB currently supports online replica reduction operations?

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

Original topic: 想知道Tidb目前支持副本数在线缩容操作吗?

| username: 托马斯滑板鞋

In the following scenario:
Two locations, three centers, 221, one of the 2s went down, online modification of max-replicas from 5 to 3, downgraded to three replicas, making the remaining 2 the primary center majority.

| username: WalterWj | Original post link

There is no theoretical problem.

| username: 托马斯滑板鞋 | Original post link

Mainly, I want to know if it supports online reduction of replica count.
P.S: Previously, I communicated online with people from PingCAP, and they said the cluster needs to be restarted to make changes…

| username: WalterWj | Original post link

Maybe, if it doesn’t work, try manually: pd-ctl config set max-replicas 1