This document introduces the configuration of DM worker, including a configuration file template and a description of each configuration parameter in this file.
Configuration file template
The following is a configuration file template of the DM-worker:
Specifies a log level from debug, info, warn, error, and fatal. The default log level is info.
log-file
Specifies the log file directory. If this parameter is not specified, the logs are printed onto the standard output.
worker-addr
Specifies the address of DM-worker which provides services. You can omit the IP address and specify the port number only, such as ":8262".
advertise-addr
Specifies the address that DM-worker advertises to the outside world.
join
Corresponds to one or more master-addrs in the DM-master configuration file.
keepalive-ttl
The keepalive time (in seconds) of a DM-worker node to the DM-master node if the upstream data source of the DM-worker node does not enable the relay log. The default value is 60s.
relay-keepalive-ttl
The keepalive time (in seconds) of a DM-worker node to the DM-master node if the upstream data source of the DM-worker node enables the relay log. The default value is 1800s. This parameter is added since DM v2.0.2.
ssl-ca
The path of the file that contains list of trusted SSL CAs for DM-worker to connect with other components.
ssl-cert
The path of the file that contains X509 certificate in PEM format for DM-worker to connect with other components.
ssl-key
The path of the file that contains X509 key in PEM format for DM-worker to connect with other components.