DM-master Configuration File

This document introduces the configuration of DM-master, 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 DM-master.

name = "dm-master"

# log configuration
log-level = "info"
log-file = "dm-master.log"

# DM-master listening address
master-addr = ":8261"
advertise-addr = ""

# URLs for peer traffic
peer-urls = ""
advertise-peer-urls = ""

# cluster configuration
initial-cluster = "master1=,master2=,master3="
join = ""

Configuration parameters

This section introduces the configuration parameters of DM-master.

Global configuration

Parameter Description
name The name of the DM-master.
log-level 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 the parameter is not specified, the logs are printed onto the standard output.
master-addr Specifies the address of DM-master which provides services. You can omit the IP address and specify the port number only, such as “:8261”.
advertise-addr Specifies the address that DM-master advertises to the outside world.
peer-urls Specifies the peer URL of the DM-master node.
advertise-peer-urls Specifies the peer URL that DM-master advertises to the outside world. The value of advertise-peer-urls is by default the same as that of peer-urls.
initial-cluster The value of initial-cluster is the combination of the advertise-peer-urls value of all DM-master nodes in the initial cluster.
join The value of join is the combination of the advertise-peer-urls value of the existed DM-master nodes in the cluster. If the DM-master node is newly added, replace initial-cluster with join.