How to configure topology.yaml for deploying multiple dm-workers on a single server?

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

Original topic: 在一台服务器上部署多个dm-worker,topology.yaml该如何配置呢?

| username: wzf0072

【TiDB Usage Environment】Production Environment
【TiDB Version】v6.5.0
【Reproduction Path】
【Encountered Problem: Problem Phenomenon and Impact】Due to limited testing resources, only one CentOS 7.9 server is available, configured with 16vCPU and 32GB memory. We are now preparing to use this server to test DM, planning to have 1 DM-master and 3 DM-workers; how should the YAML file be configured?
【Resource Configuration】16vCPU 32GB memory
【Attachment: Screenshot/Log/Monitoring】
[root@WZF0072 ~]# vi topology.yaml
global:
user: “tidb”
ssh_port: 22
deploy_dir: “/home/tidb/dm/deploy”
data_dir: “/home/tidb/dm/data”

arch: “amd64”

master_servers:

  • host: 172.16.150.163

- host: 172.19.0.102

- host: 172.19.0.103

worker_servers:

  • host: 172.16.150.163

- host: 172.19.0.102

- host: 172.19.0.103

monitoring_servers:

  • host: 172.16.150.163

grafana_servers:

  • host: 172.16.150.163

alertmanager_servers:

  • host: 172.16.150.163
| username: xfworld | Original post link

At this stage, DM should not support mixed deployment. It is recommended to split the CentOS server into virtual systems and use virtual machines to meet your deployment needs…

| username: 考试没答案 | Original post link

Hello: How is the hybrid deployment you mentioned done?? My DM-master and dm-worker are both on one server.

| username: 考试没答案 | Original post link

It is possible to have them all on one machine. Just use different ports and different file directories.

| username: xfworld | Original post link

Hybrid deployment is distinguished by using different ports, similar to TiDB’s hybrid mode.

There will be resource competition…

| username: 考试没答案 | Original post link

Got it. Just testing. Performance issues shouldn’t need to be considered.

| username: Hacker007 | Original post link

Sure, you can configure different directories and different ports.

| username: Hacker007 | Original post link

This is an abbreviated way of writing. You can specify the port and log directory for each DM.

| username: xfworld | Original post link

The tests were fine, but it crashes when the load is high. :+1:

| username: system | Original post link

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