当然有设置
[tidb@centos ~]$ tiup cluster show-config tidb-test
tiup is checking updates for component cluster …
Starting component cluster
: /home/tidb/.tiup/components/cluster/v1.10.3/tiup-cluster show-config tidb-test
global:
user: tidb
ssh_port: 22
ssh_type: builtin
deploy_dir: /home/tidb/cluster/tidb-deploy
data_dir: /home/tidb/cluster/tidb-data
os: linux
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
deploy_dir: /home/tidb/cluster/tidb-deploy/monitor-9100
data_dir: /home/tidb/cluster/tidb-data/monitor-9100
log_dir: /home/tidb/cluster/tidb-deploy/monitor-9100/log
server_configs:
tidb:
binlog.enable: false
binlog.ignore-error: false
log.slow-threshold: 300
tikv:
readpool.coprocessor.use-unified-pool: true
readpool.storage.use-unified-pool: false
server.grpc-compression-type: gzip
pd:
replication.location-labels:
- area
- dc
- rack
- host
schedule.leader-schedule-limit: 4
schedule.region-schedule-limit: 2048
schedule.replica-schedule-limit: null
schedule.tolerant-size-ratio: 20.0
tiflash: {}
tiflash-learner: {}
pump: {}
drainer: {}
cdc: {}
grafana: {}
tidb_servers:
- host: 192.168.58.133
ssh_port: 22
port: 4000
status_port: 10080
deploy_dir: /home/tidb/cluster/tidb-deploy/tidb-4000
log_dir: /home/tidb/cluster/tidb-deploy/tidb-4000/log
arch: amd64
os: linux
tikv_servers: - host: 192.168.58.133
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20160
data_dir: /home/tidb/cluster/tidb-data/tikv-20160
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20160/log
config:
server.labels:
area: northern
dc: bj1
host: host100
rack: r1
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20161
status_port: 20181
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20161
data_dir: /home/tidb/cluster/tidb-data/tikv-20161
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20161/log
config:
server.labels:
area: northern
dc: bj1
host: host101
rack: r2
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20162
status_port: 20182
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20162
data_dir: /home/tidb/cluster/tidb-data/tikv-20162
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20162/log
config:
server.labels:
area: northern
dc: bj2
host: host102
rack: r1
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20163
status_port: 20183
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20163
data_dir: /home/tidb/cluster/tidb-data/tikv-20163
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20163/log
config:
server.labels:
area: northern
dc: bj2
host: host103
rack: r2
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20164
status_port: 20184
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20164
data_dir: /home/tidb/cluster/tidb-data/tikv-20164
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20164/log
config:
server.labels:
area: northern
dc: sjz
host: host104
rack: r1
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20165
status_port: 20185
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20165
data_dir: /home/tidb/cluster/tidb-data/tikv-20165
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20165/log
config:
server.labels:
area: europe
dc: germany
host: host105
rack: r1
arch: amd64
os: linux - host: 192.168.58.133
ssh_port: 22
port: 20166
status_port: 20186
deploy_dir: /home/tidb/cluster/tidb-deploy/tikv-20166
data_dir: /home/tidb/cluster/tidb-data/tikv-20166
log_dir: /home/tidb/cluster/tidb-deploy/tikv-20166/log
config:
server.labels:
area: america
dc: usa
host: host106
rack: r1
arch: amd64
os: linux
tiflash_servers: []
pd_servers: - host: 192.168.58.133
ssh_port: 22
name: pd-192.168.58.133-2379
client_port: 2379
peer_port: 2380
deploy_dir: /home/tidb/cluster/tidb-deploy/pd-2379
data_dir: /home/tidb/cluster/tidb-data/pd-2379
log_dir: /home/tidb/cluster/tidb-deploy/pd-2379/log
arch: amd64
os: linux
monitoring_servers: - host: 192.168.58.133
ssh_port: 22
port: 9090
ng_port: 12020
deploy_dir: /home/tidb/cluster/tidb-deploy/prometheus-9090
data_dir: /home/tidb/cluster/tidb-data/prometheus-9090
log_dir: /home/tidb/cluster/tidb-deploy/prometheus-9090/log
external_alertmanagers: []
arch: amd64
os: linux
grafana_servers: - host: 192.168.58.133
ssh_port: 22
port: 3000
deploy_dir: /home/tidb/cluster/tidb-deploy/grafana-3000
arch: amd64
os: linux
username: admin
password: admin
anonymous_enable: false
root_url: “”
domain: “”
alertmanager_servers: - host: 192.168.58.133
ssh_port: 22
web_port: 9093
cluster_port: 9094
deploy_dir: /home/tidb/cluster/tidb-deploy/alertmanager-9093
data_dir: /home/tidb/cluster/tidb-data/alertmanager-9093
log_dir: /home/tidb/cluster/tidb-deploy/alertmanager-9093/log
arch: amd64
os: linux
[tidb@centos ~]$