When I deployed the TiDB cluster for the first time, I did not configure `label` of TiKV. Now I want to add the `label` configuration but cannot find a way in TiDB documentation. What should I do?
» config show replication
{
"max-replicas": 3,
"location-labels": ""
}
» config set location-labels zone,host
Success!
» config show replication
{
"max-replicas": 3,
"location-labels": "zone,host"
}
labels = { zone = "cn-west-1", host = "192.168.0.1" }
» store 1
{
"store": {
"id": 1,
"address": "192.168.0.1:20161",
"version": "2.1.0-beta",
"state_name": "Up"
},
"status": {
"capacity": "10 GiB",
"available": "10 GiB",
"leader_count": 14,
"leader_weight": 1,
"leader_score": 14,
"leader_size": 14,
"region_count": 14,
"region_weight": 1,
"region_score": 14,
"region_size": 14,
"start_ts": "2018-08-03T17:35:06+08:00",
"last_heartbeat_ts": "2018-08-03T17:48:16.654551232+08:00",
"uptime": "13m10.654551232s"
}
}
» store label 1 zone cn-west-1
» store label 1 host 192.168.0.1
» store 1
{
"store": {
"id": 1,
"address": "192.168.0.1:20161",
"labels": [
{
"key": "zone",
"value": "cn-west-1"
},
{
"key": "host",
"value": "192.168.0.1"
}
],
"version": "2.1.0-beta",
"state_name": "Up"
},
"status": {
"capacity": "10 GiB",
"available": "10 GiB",
"leader_count": 14,
"leader_weight": 1,
"leader_score": 14,
"leader_size": 14,
"region_count": 14,
"region_weight": 1,
"region_score": 14,
"region_size": 14,
"start_ts": "2018-08-03T17:35:06+08:00",
"last_heartbeat_ts": "2018-08-03T17:48:46.85510699+08:00",
"uptime": "13m40.85510699s"
}
}