github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/master/dm-master.toml (about)

     1  # Master Configuration.
     2  
     3  # log configuration
     4  log-file = "dm-master.log"
     5  log-level = "info"
     6  
     7  # dm-master listen address
     8  master-addr = ":8261"
     9  
    10  # addr(i.e. 'host:port') to advertise to the public
    11  advertise-addr = "127.0.0.1:8261"
    12  
    13  # human-readable name for this DM-master member
    14  name = "dm-master"
    15  
    16  # path to the data directory (default 'default.${name}')
    17  data-dir = "default.dm-master"
    18  
    19  # URLs for peer traffic
    20  peer-urls = "http://127.0.0.1:8291"
    21  
    22  # advertise URLs for peer traffic (default '${peer-urls}')
    23  advertise-peer-urls = "http://127.0.0.1:8291"
    24  
    25  # initial cluster configuration for bootstrapping, e.g. dm-master=http://127.0.0.1:8291
    26  initial-cluster = "dm-master=http://127.0.0.1:8291"
    27  
    28  # Join to an existing DM-master cluster, a string of existing cluster's endpoints.
    29  join = ""
    30  
    31  # rpc configuration
    32  #
    33  # rpc timeout is a positive number plus time unit. we use golang standard time
    34  # units including: "ns", "us", "ms", "s", "m", "h". You should provide a proper
    35  # rpc timeout according to your use scenario.
    36  rpc-timeout = "30s"
    37  # rpc limiter controls how frequently events are allowed to happen.
    38  # It implements a "token bucket" of size `rpc-rate-limit`, initially full and
    39  # refilled at rate `rpc-rate-limit` tokens per second. Note `rpc-rate-limit`
    40  # is float64 type, so remember to add a decimal point and one trailing 0 if its
    41  # literal value happens to be an integer.
    42  rpc-rate-burst = 40
    43  rpc-rate-limit = 10.0
    44  
    45  # openapi feature
    46  openapi = false