Is it possible to deploy all components on a single physical machine?

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

Original topic: 请问一下如果把所有的组件都部署到一台物理机上可以吗?

| username: WRAllen

[TiDB Usage Environment] Poc
[TiDB Version] v5.4.0
[Resource Configuration]
I want to validate certain cases based on the production environment configuration, but currently, I only have one physical machine. I want to deploy the components (except tiflash/ticdc) tidb+pd+tikv all on the same machine. Should the configuration be the sum of the recommended production environment configurations?
For example:
cpu = 16✖️2 (tidb) + 8✖️3 (pd) + 16✖️3 (tikv) = 104 cores
memory = 48✖️2 + 16✖️3 + 64✖️3 = 336GB
Is that correct?

| username: hey-hoho | Original post link

It is not yet possible to strictly limit resources for each component on the same machine. It depends on what case you want to test. For regular testing, such mixed deployment is also feasible.

| username: forever | Original post link

Then you need to set resource limits for each component separately. Performance metrics can’t be accurately measured, for example, for IO, it’s like you’re dividing it by 3 or even more.

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

It’s fine to do simple functional testing yourself, but it does have an impact when it comes to performance testing.

| username: sunshaoqing | Original post link

TiKV and PD require high-performance disks.

| username: 我是咖啡哥 | Original post link

Simple tests are certainly no problem, but it’s a bit of a waste :grinning:

| username: Kongdom | Original post link

It’s fine to test and experience it yourself, but if you are verifying performance and going into production, it is highly discouraged to deploy this way. Here is the official hybrid deployment solution:

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

If it’s just for functional verification, 1 machine is enough, and you can even reduce the resources. But if it’s for performance verification, it definitely won’t work…

| username: system | Original post link

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