Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 请大佬们帮忙解释一下server.labels的作用
[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed to cause the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
Original 3 TiKV nodes:
tikv_servers:
- host: 10.12.82.22
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: a
host: host1
rack: rack1
zone: ap-northeast-1a
arch: amd64
os: linux - host: 10.12.80.11
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: c
host: host2
rack: rack1
zone: ap-northeast-1c
arch: amd64
os: linux - host: 10.12.81.4
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: d
host: host3
rack: rack1
zone: ap-northeast-1d
arch: amd64
os: linux
Newly added:
tikv_servers:
- host: 10.12.82.2
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: a
host: host4
rack: rack1
zone: ap-northeast-1a
arch: amd64
os: linux - host: 10.12.80.1
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: c
host: host5
rack: rack1
zone: ap-northeast-1c
arch: amd64
os: linux - host: 10.12.81.1
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: /tidb/tidb-deploy/tikv-20160
data_dir: /tidb/tidb-data/tikv-20160
log_dir: /tidb/tidb-deploy/tikv-20160/log
config:
server.labels:
dc: d
host: host6
rack: rack1
zone: ap-northeast-1d
arch: amd64
os: linux
Is this correct? What do dc, host, and rack correspond to respectively?