Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiDB所有组件可以从单节点扩容到集群环境吗?
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]
Currently, we want to use TiDB as a data middle platform, and it is still in the testing phase. Due to limited public cloud resources, we want to deploy all components on a single server first to verify the feasibility of data synchronization. Once verification is complete, we will apply for resources to expand into a multi-node cluster environment. Is this feasible?
In that case, I would suggest you apply for at least three nodes: one node for PD, one node for TiDB, and one node for TiKV. You can temporarily skip installing other components. Additionally, you will need a control machine to execute tiup, making a total of four nodes.
This setup will barely run… With only a single TiKV node, it won’t meet the requirement for three replicas…
If you need to scale up later, you can add more nodes and continue scaling up using tiup.
The method is feasible, but wouldn’t it be troublesome to scale up and down later? It feels like it would be better to redeploy a new set after verifying the solution.
You can deploy multiple nodes on one machine. For example, you can deploy 3 TiKV, 1 PD, and 1 TiDB on a single machine. If you need to scale out later, you can add more nodes on other machines and then scale down the local machine nodes, using it as the TiUP control machine. However, this setup can only be used for functional testing, not performance testing.
It is recommended to use SSDs or hard drives with higher read and write capabilities for cloud storage. The higher, the better.
Since applying for public cloud servers requires costs and the company has a state-owned background, it is very difficult to apply for expenses. We want to directly use the existing resources.
Makes sense, I’ll try it out soon.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.