DM-worker 配置文件介绍
本文档主要介绍 DM-worker 的基础配置文件。在一般场景中,用户只需要使用基础配置即可完成 DM-worker 的部署。
完整配置项参考 DM-worker 完整配置说明。
配置文件示例
# Worker Configuration.
# Log configuration.
log-file = "dm-worker.log"
# DM-worker listen address.
worker-addr = ":8262"
# Represents a MySQL/MariaDB instance or a replication group.
source-id = "mysql-replica-01"
# Server id of slave for binlog replication.
# Each instance (master and slave) in replication group should have different server id.
server-id = 101
# flavor: mysql/mariadb
flavor = "mysql"
# The directory that used to store relay log.
relay-dir = "./relay_log"
[from]
host = "127.0.0.1"
user = "root"
password = "Up8156jArvIPymkVC+5LxkAT6rek"
port = 3306