You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.1 KiB
87 lines
2.1 KiB
3 years ago
|
# PD Configuration.
|
||
|
|
||
|
name = "pd"
|
||
|
data-dir = "default.pd"
|
||
|
|
||
|
client-urls = "http://127.0.0.1:2379"
|
||
|
# if not set, use ${client-urls}
|
||
|
advertise-client-urls = ""
|
||
|
|
||
|
peer-urls = "http://127.0.0.1:2380"
|
||
|
# if not set, use ${peer-urls}
|
||
|
advertise-peer-urls = ""
|
||
|
|
||
|
initial-cluster = "pd=http://127.0.0.1:2380"
|
||
|
initial-cluster-state = "new"
|
||
|
|
||
|
lease = 3
|
||
|
tso-save-interval = "3s"
|
||
|
|
||
|
[security]
|
||
|
# Path of file that contains list of trusted SSL CAs. if set, following four settings shouldn't be empty
|
||
|
cacert-path = ""
|
||
|
# Path of file that contains X509 certificate in PEM format.
|
||
|
cert-path = ""
|
||
|
# Path of file that contains X509 key in PEM format.
|
||
|
key-path = ""
|
||
|
|
||
|
[log]
|
||
|
level = "error"
|
||
|
|
||
|
# log format, one of json, text, console
|
||
|
#format = "text"
|
||
|
|
||
|
# disable automatic timestamps in output
|
||
|
#disable-timestamp = false
|
||
|
|
||
|
# file logging
|
||
|
[log.file]
|
||
|
#filename = ""
|
||
|
# max log file size in MB
|
||
|
#max-size = 300
|
||
|
# max log file keep days
|
||
|
#max-days = 28
|
||
|
# maximum number of old log files to retain
|
||
|
#max-backups = 7
|
||
|
# rotate log by day
|
||
|
#log-rotate = true
|
||
|
|
||
|
[metric]
|
||
|
# prometheus client push interval, set "0s" to disable prometheus.
|
||
|
interval = "0s"
|
||
|
# prometheus pushgateway address, leaves it empty will disable prometheus.
|
||
|
address = ""
|
||
|
|
||
|
[schedule]
|
||
|
max-merge-region-size = 0
|
||
|
split-merge-interval = "1h"
|
||
|
max-snapshot-count = 3
|
||
|
max-pending-peer-count = 16
|
||
|
max-store-down-time = "30m"
|
||
|
leader-schedule-limit = 4
|
||
|
region-schedule-limit = 4
|
||
|
replica-schedule-limit = 8
|
||
|
merge-schedule-limit = 8
|
||
|
tolerant-size-ratio = 5.0
|
||
|
|
||
|
# customized schedulers, the format is as below
|
||
|
# if empty, it will use balance-leader, balance-region, hot-region as default
|
||
|
# [[schedule.schedulers]]
|
||
|
# type = "evict-leader"
|
||
|
# args = ["1"]
|
||
|
|
||
|
[replication]
|
||
|
# The number of replicas for each region.
|
||
|
max-replicas = 3
|
||
|
# The label keys specified the location of a store.
|
||
|
# The placement priorities is implied by the order of label keys.
|
||
|
# For example, ["zone", "rack"] means that we should place replicas to
|
||
|
# different zones first, then to different racks if we don't have enough zones.
|
||
|
location-labels = []
|
||
|
|
||
|
[label-property]
|
||
|
# Do not assign region leaders to stores that have these tags.
|
||
|
# [[label-property.reject-leader]]
|
||
|
# key = "zone"
|
||
|
# value = "cn1
|