Create tidb.yaml

This commit is contained in:
Mr Chen
2024-05-12 01:25:10 +08:00
parent fb6dbde4c9
commit 00269662bf
+58
View File
@@ -0,0 +1,58 @@
# # Global variables are applied to all deployments and used as the default value of
# # the deployments if a specific deployment value is missing.
global:
user: "tidb"
ssh_port: 2022
deploy_dir: "/home/tidb/tidb-deploy"
data_dir: "/home/tidb/tidb-data"
# # Monitored variables are applied to all the machines.
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
instance.tidb_slow_log_threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
replication.location-labels: ["host"]
tiflash:
logger.level: "info"
pd_servers:
- host: 192.168.4.1
tidb_servers:
- host: 192.168.4.1
tikv_servers:
- host: 192.168.4.1
port: 20160
status_port: 20180
config:
server.labels: { host: "logic-host-1" }
- host: 192.168.4.1
port: 20161
status_port: 20181
config:
server.labels: { host: "logic-host-2" }
- host: 192.168.4.1
port: 20162
status_port: 20182
config:
server.labels: { host: "logic-host-3" }
tiflash_servers:
- host: 192.168.4.1
monitoring_servers:
- host: 192.168.4.1
grafana_servers:
- host: 192.168.4.1