Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 请问 在单机上模拟部署生产环境集群 上对软硬件要求是什么
May I ask what the requirements for the server are when simulating the deployment of a production environment cluster on a single machine as mentioned in the operation documentation? I couldn’t find it in the manual, which only has configuration requirements for development and testing environments or production environments. So, what are the software and hardware requirements for this quick start method?
Actually, it’s mainly about the memory. I think 4GB of memory might not be enough; at least 8GB is needed. Other aspects don’t matter.
You need to get a machine with a higher configuration.
Single-machine simulated cluster, 16-core CPU, 32GB memory, 3 PD, 3 TiDB, 3 KV.
Set up a virtual machine, allocate more memory, and assign more disk space.
It depends on what you’re testing. If you’re testing SQL, you can just use the playground. For other tests, you’ll need some resources. I have six 2-core 8GB machines running 2 TiDB clusters, 3 MySQL instances, 1 Oracle instance, and 1 DM instance, etc.
I have tested it, and it requires about 12GB of memory. Any less and it is very likely to run out of memory (OOM).
TiFlash is not installed.
The minimum single-machine deployment can have only one TiKV, which means 1 PD, 1 TiDB, and 1 TiKV.
He is not setting up a test machine, but simulating a production environment, which means a minimized production deployment.
Yes, according to the documentation on TiDB 数据库快速上手指南 | PingCAP 文档中心, the section “Simulate Deployment of Production Environment Cluster on a Single Machine” requires a configuration of around 8GB of memory to meet the requirements for basic installation and SQL testing.
So 8GB of memory should be enough to install and test basic SQL, right? TiDB 数据库快速上手指南 | PingCAP 文档中心, I’m asking about the configuration needed for simulating a production environment cluster on a single machine as mentioned in the documentation here.
Simulations are all single-node, but in production, there are at least 3 nodes. It depends on what you want to do. If you are testing performance, you should definitely deploy more than 3 nodes. If you are testing functionality, a single-node test environment is sufficient.
2 CPUs, 10GB of memory, and a 100GB hard drive are enough to install and run an experiment.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.