Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 在一台服务器上部署多个dm-worker,topology.yaml该如何配置呢?
【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