pd的leader与region leader都在北京,并且也进行了相关参数调整,如下:
server_configs:
tidb:
binlog.enable: true
binlog.ignore-error: false
log.query-log-max-len: 12288
log.slow-threshold: 300
mem-quota-query: 524288000
new_collations_enabled_on_first_bootstrap: true
oom-action: cancel
performance.server-memory-quota: 17179869184
tikv:
readpool.coprocessor.use-unified-pool: true
readpool.storage.use-unified-pool: true
readpool.unified.max-thread-count: 10
server.concurrent-recv-snap-limit: 64
server.concurrent-send-snap-limit: 64
server.grpc-compression-type: gzip
server.grpc-keepalive-time: 120s
server.grpc-keepalive-timeout: 120s
server.grpc-raft-conn-num: 16
storage.block-cache.capacity: 40GB
pd:
label-property:
reject-leader:
- key: dc
value: shenyang
replication.enable-placement-rules: true
replication.isolation-level: zone
replication.location-labels:- dc
- zone
- rack
- host
replication.max-replicas: 5
schedule.tolerant-size-ratio: 20.0