DM ワーカーコンフィグレーションファイル
このドキュメントでは、構成ファイル テンプレートとこのファイル内の各構成パラメーターの説明を含む、DM ワーカーの構成について紹介します。
コンフィグレーションファイルのテンプレート
以下は、DM ワーカーの構成ファイルのテンプレートです。
# Worker Configuration.
name = "worker1"
# Log configuration.
log-level = "info"
log-file = "dm-worker.log"
# DM-worker listen address.
worker-addr = ":8262"
advertise-addr = "127.0.0.1:8262"
join = "http://127.0.0.1:8261,http://127.0.0.1:8361,http://127.0.0.1:8461"
keepalive-ttl = 60
relay-keepalive-ttl = 1800 # New in DM v2.0.2.
# relay-dir = "relay_log" # New in 5.4.0. When you use a relative path, check the deployment and start method of DM-worker to determine the full path.
ssl-ca = "/path/to/ca.pem"
ssl-cert = "/path/to/cert.pem"
ssl-key = "/path/to/key.pem"
cert-allowed-cn = ["dm"]