Node Addition Testing

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

Original topic: 加节点测试

| username: TiDBer_yBunUeUc

[TiDB Usage Environment] Poc
[TiDB Version] v7.5.0
Current cluster information is as follows:
image
Hardware configuration:
Three virtual machines, 32C 64G 500G shared storage (mixed SSD and HDD)

Requirement:
Now I want to test the write capability of TiDB after adding nodes. Plan to add 4 more nodes (4 virtual machines with the same configuration).

Question: Does the entire cluster configuration need to be readjusted? Should all 4 nodes be given to TiKV? How should TiKV expansion be performed?

| username: 饭光小团 | Original post link

Generally, the bottleneck is with the KV nodes, you can provide KV

| username: zhanggame1 | Original post link

If all storage is shared physical hard drives for all TiKV nodes, then adding more nodes is meaningless.

| username: zhanggame1 | Original post link

For scaling, refer to the official manual, it’s very simple Using TiUP to Scale TiDB Cluster | PingCAP Documentation Center

| username: 饭光小团 | Original post link

You can add 1-2 machines first to see the effect.

| username: kevinsong | Original post link

You can add the required roles to your cluster using the tiup tool.

| username: TiDBer_yBunUeUc | Original post link

The storage of each TiKV node is isolated and shared with other virtual machines.

| username: xingzhenxiang | Original post link

If the configuration file is already set up, you can use just two commands:
tiup cluster check tidb-scale-out.yaml --cluster --user root -p
tiup cluster scale-out tidb-scale-out.yaml --user root -p

| username: TiDBer_yBunUeUc | Original post link

Do the environments of the two newly added virtual machines need to be configured? For example, SSH passwordless configuration.

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

If you are testing writes, just add TiKV. Additionally, plan the table structure to distribute it as evenly as possible across TiKV nodes.

| username: TiDBer_yBunUeUc | Original post link

Okay, first apply for 2 machines to expand as KV nodes and see the effect. The table has enabled region uniform distribution.

| username: wangccsy | Original post link

Can a single machine add nodes for testing?

| username: zhanggame1 | Original post link

Sure, just change the port number in the deployment template to avoid conflicts.

| username: 小龙虾爱大龙虾 | Original post link

It is recommended to configure the POC testing environment according to the production environment configuration requirements, so as to test the real performance. Reference: TiDB 软件和硬件环境建议配置 | PingCAP 文档中心

| username: TiDBer_yBunUeUc | Original post link

We couldn’t meet the official recommended requirements. We are all using virtual machines, so we will add more nodes later to share the pressure.

| username: 小龙虾爱大龙虾 | Original post link

:joy_cat: :joy_cat: :joy_cat:
Alright, then here’s another suggestion: since you’ve already deployed on a virtual machine, don’t mix deployments.

| username: dba远航 | Original post link

Additionally, you need to use labels to adjust the data position, and the IO capability of shared storage is shared. Once the IO capability reaches its peak, adding more becomes meaningless.

| username: 烂番薯0 | Original post link

You can directly write the template and then expand it.