Can a TiDB cluster scale down some nodes without affecting the normal operation of the production environment?

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

Original topic: tidb集群能在不影响生产环境正常使用的状态下缩容部分节点吗?

| username: TiDBer_vJpITQ5J

Can the TiDB cluster scale down some nodes without affecting the normal use of the production environment?

| username: songxuecheng | Original post link

First, migrate the leader, and then scale down.

| username: 孤君888 | Original post link

You can use the tiup tool for online scaling in and out.

| username: wzf0072 | Original post link

What type of node are you trying to scale down? PD, TiDB Server, TiKV, or Tiflash? It’s not clearly described.

| username: CuteRay | Original post link

Yes, you can use the tiup cluster command to scale the cluster up or down (Why is your production environment version 6.4.0? It is recommended to upgrade to the LTS version 6.5.1 as soon as possible).

| username: 考试没答案 | Original post link

Please provide the details of the issue and the error you encountered.

| username: TiDBer_pkQ5q1l0 | Original post link

Migrate the leaders of the nodes to be taken offline before scaling down.

| username: Kongdom | Original post link

Supported, but it is recommended to provide the scenario.

| username: Jolyne | Original post link

You can use the tiup cluster command to scale down online.

| username: 裤衩儿飞上天 | Original post link

Sure, but it depends on your specific scenario. Please describe it in detail.

| username: Jellybean | Original post link

You asked if it is possible, and the answer is yes.

However, for scaling down different types of components (TiKV, TiDB, TiFlash, TiPD, etc.), there are corresponding procedures. Generally, they are quite simple. Just refer to and follow the official documentation.

Here is a link to the official scaling documentation: 使用 TiUP 扩容缩容 TiDB 集群 | PingCAP 文档中心

| username: system | Original post link

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