How to Expand a Single Data Center 3-Node TiKV Cluster to a 3 Data Center 9-Node Cluster Online

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

Original topic: 单机房3节点tikv集群如何在线扩容成3机房9节点集群

| username: TiDBer_Qa3fHFOG

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.1.0

I currently have a 3-node TiKV cluster in a single data center and want to expand it to a 9-node cluster across 3 data centers, setting different regions for each data center. If one data center with three nodes goes down, the system should still function normally. How should I proceed with the expansion?

| username: tidb菜鸟一只 | Original post link

Look here, if you want to deploy three AZs in the same region, it is not enough to deploy only TiKV in the other data centers. You also need to deploy PD and TiDB to prevent the entire cluster from being unusable if all nodes in the local data center go down.

| username: TiDBer_Qa3fHFOG | Original post link

My current situation is that the production environment already has a data center with 3 nodes deployed for TiKV and PD, which has been running for a long time, but without configuring data centers and regions. In this case, how should I scale out? Should I first deploy the 6 nodes of TiKV and PD in the other two data centers, or should I first configure the region and data center settings for the currently used 3 nodes? Is it possible to modify the region information of TiKV and PD online?

| username: tidb菜鸟一只 | Original post link

Labels can also be applied to online clusters. Refer to this link:

| username: zhanggame1 | Original post link

Is it a three-center setup in the same city or a two-location three-center setup? These two are different. A three-center setup in the same city is very simple; it allows one center to have an issue, but if two centers have issues, it won’t be able to provide service.

| username: redgame | Original post link

Deploy PD and TiDB together

| username: TiDBer_Qa3fHFOG | Original post link

Okay, thank you.

| username: 小王同学Plus | Original post link

There are some SOPs that can be referenced:
【SOP 系列 13】TiUP 调整单机单实例集群为单机多实例集群 - TiDB 的问答社区.

【SOP 系列 05】现有集群如何从单机房调整为跨机房部署 - TiDB 的问答社区.

| username: system | Original post link

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