github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/docker/config/pd.toml (about)

     1  # PD Configuration.
     2  
     3  name = "pd"
     4  data-dir = "default.pd"
     5  
     6  client-urls = "http://127.0.0.1:2379"
     7  # if not set, use ${client-urls}
     8  advertise-client-urls = ""
     9  
    10  peer-urls = "http://127.0.0.1:2380"
    11  # if not set, use ${peer-urls}
    12  advertise-peer-urls = ""
    13  
    14  initial-cluster = "pd=http://127.0.0.1:2380"
    15  initial-cluster-state = "new"
    16  
    17  lease = 3
    18  tso-save-interval = "3s"
    19  
    20  [security]
    21  # Path of file that contains list of trusted SSL CAs. if set, following four settings shouldn't be empty
    22  cacert-path = ""
    23  # Path of file that contains X509 certificate in PEM format.
    24  cert-path = ""
    25  # Path of file that contains X509 key in PEM format.
    26  key-path = ""
    27  
    28  [log]
    29  level = "error"
    30  
    31  # log format, one of json, text, console
    32  #format = "text"
    33  
    34  # disable automatic timestamps in output
    35  #disable-timestamp = false
    36  
    37  # file logging
    38  [log.file]
    39  #filename = ""
    40  # max log file size in MB
    41  #max-size = 300
    42  # max log file keep days
    43  #max-days = 28
    44  # maximum number of old log files to retain
    45  #max-backups = 7
    46  # rotate log by day
    47  #log-rotate = true
    48  
    49  [metric]
    50  # prometheus client push interval, set "0s" to disable prometheus.
    51  interval = "15s"
    52  # prometheus pushgateway address, leaves it empty will disable prometheus.
    53  address = "pushgateway:9091"
    54  
    55  [schedule]
    56  max-merge-region-size = 0
    57  split-merge-interval = "1h"
    58  max-snapshot-count = 3
    59  max-pending-peer-count = 16
    60  max-store-down-time = "30m"
    61  leader-schedule-limit = 4
    62  region-schedule-limit = 4
    63  replica-schedule-limit = 8
    64  merge-schedule-limit = 8
    65  tolerant-size-ratio = 5.0
    66  
    67  # customized schedulers, the format is as below
    68  # if empty, it will use balance-leader, balance-region, hot-region as default
    69  # [[schedule.schedulers]]
    70  # type = "evict-leader"
    71  # args = ["1"]
    72  
    73  [replication]
    74  # The number of replicas for each region.
    75  max-replicas = 3
    76  # The label keys specified the location of a store.
    77  # The placement priorities is implied by the order of label keys.
    78  # For example, ["zone", "rack"] means that we should place replicas to
    79  # different zones first, then to different racks if we don't have enough zones.
    80  location-labels = []
    81  
    82  [label-property]
    83  # Do not assign region leaders to stores that have these tags.
    84  #  [[label-property.reject-leader]]
    85  #  key = "zone"
    86  #  value = "cn1