按照官网进行tikv扩容,执行成功,但是发现数据没有均衡。具体信息如下:
store信息如下:
{
“count”: 7,
“stores”: [
{
“store”: {
“id”: 7,
“address”: “10.92.138.251:20160”,
“version”: “4.0.5”,
“status_address”: “10.92.138.251:20180”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600331051,
“deploy_path”: “/tidb/tikv-20160/bin”,
“last_heartbeat”: 1600744859101722547,
“state_name”: “Up”
},
“status”: {
“capacity”: “40.23GiB”,
“available”: “10.49GiB”,
“used_size”: “26.57GiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: -6670707882.846615,
“region_size”: 0,
“start_ts”: “2020-09-17T16:24:11+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:20:59.101722547+08:00”,
“uptime”: “114h56m48.101722547s”
}
},
{
“store”: {
“id”: 48,
“address”: “10.92.138.254:3930”,
“labels”: [
{
“key”: “engine”,
“value”: “tiflash”
}
],
“version”: “v4.0.5”,
“peer_address”: “10.92.138.254:20170”,
“status_address”: “10.92.138.254:20292”,
“git_hash”: “47883266d561b299eb900cd04e32a816fc621a69”,
“start_timestamp”: 1600331073,
“deploy_path”: “/tidb/tiflash-9000/bin/tiflash”,
“last_heartbeat”: 1600744860112974366,
“state_name”: “Up”
},
“status”: {
“capacity”: “20.54GiB”,
“available”: “17.38GiB”,
“used_size”: “29KiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: 0,
“region_size”: 0,
“start_ts”: “2020-09-17T16:24:33+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:21:00.112974366+08:00”,
“uptime”: “114h56m27.112974366s”
}
},
{
“store”: {
“id”: 4033,
“address”: “10.92.139.0:20160”,
“version”: “4.0.5”,
“status_address”: “10.92.139.0:20180”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600682930,
“deploy_path”: “/tidb/tikv-20160/bin”,
“last_heartbeat”: 1600744857869695991,
“state_name”: “Up”
},
“status”: {
“capacity”: “56.96GiB”,
“available”: “54.77GiB”,
“used_size”: “31.5MiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: 0,
“region_size”: 0,
“start_ts”: “2020-09-21T18:08:50+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:20:57.869695991+08:00”,
“uptime”: “17h12m7.869695991s”
}
},
{
“store”: {
“id”: 4034,
“address”: “10.92.139.1:20160”,
“version”: “4.0.5”,
“status_address”: “10.92.139.1:20180”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600682930,
“deploy_path”: “/tidb/tikv-20160/bin”,
“last_heartbeat”: 1600744858539908052,
“state_name”: “Up”
},
“status”: {
“capacity”: “56.96GiB”,
“available”: “54.77GiB”,
“used_size”: “31.5MiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: 0,
“region_size”: 0,
“start_ts”: “2020-09-21T18:08:50+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:20:58.539908052+08:00”,
“uptime”: “17h12m8.539908052s”
}
},
{
“store”: {
“id”: 4035,
“address”: “10.92.137.114:20160”,
“version”: “4.0.5”,
“status_address”: “10.92.137.114:20180”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600682930,
“deploy_path”: “/tidb/tikv-20160/bin”,
“last_heartbeat”: 1600744858538797739,
“state_name”: “Up”
},
“status”: {
“capacity”: “56.96GiB”,
“available”: “54.77GiB”,
“used_size”: “31.5MiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: 0,
“region_size”: 0,
“start_ts”: “2020-09-21T18:08:50+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:20:58.538797739+08:00”,
“uptime”: “17h12m8.538797739s”
}
},
{
“store”: {
“id”: 1,
“address”: “10.92.138.252:20161”,
“version”: “4.0.5”,
“status_address”: “10.92.138.252:20181”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600331066,
“deploy_path”: “/tidb/tikv-20161/bin”,
“last_heartbeat”: 1600744862895177749,
“state_name”: “Up”
},
“status”: {
“capacity”: “40.23GiB”,
“available”: “10.65GiB”,
“used_size”: “26.61GiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: -6724683021.379413,
“region_size”: 0,
“start_ts”: “2020-09-17T16:24:26+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:21:02.895177749+08:00”,
“uptime”: “114h56m36.895177749s”
}
},
{
“store”: {
“id”: 2,
“address”: “10.92.138.253:20162”,
“version”: “4.0.5”,
“status_address”: “10.92.138.253:20182”,
“git_hash”: “f39927a3529d40a6bb4e6c54854a94fdac996e92”,
“start_timestamp”: 1600331053,
“deploy_path”: “/tidb/tikv-20162/bin”,
“last_heartbeat”: 1600744862550404243,
“state_name”: “Up”
},
“status”: {
“capacity”: “40.23GiB”,
“available”: “11.16GiB”,
“used_size”: “26.5GiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: -6830957559.181029,
“region_size”: 0,
“start_ts”: “2020-09-17T16:24:13+08:00”,
“last_heartbeat_ts”: “2020-09-22T11:21:02.550404243+08:00”,
“uptime”: “114h56m49.550404243s”
}
}
]
}
config 信息如下:
{
“replication”: {
“enable-placement-rules”: “true”,
“location-labels”: “”,
“max-replicas”: 3,
“strictly-match-label”: “false”
},
“schedule”: {
“enable-cross-table-merge”: “false”,
“enable-debug-metrics”: “false”,
“enable-location-replacement”: “true”,
“enable-make-up-replica”: “true”,
“enable-one-way-merge”: “false”,
“enable-remove-down-replica”: “true”,
“enable-remove-extra-replica”: “true”,
“enable-replace-offline-replica”: “true”,
“high-space-ratio”: 0.7,
“hot-region-cache-hits-threshold”: 3,
“hot-region-schedule-limit”: 4,
“leader-schedule-limit”: 4,
“leader-schedule-policy”: “count”,
“low-space-ratio”: 0.8,
“max-merge-region-keys”: 200000,
“max-merge-region-size”: 20,
“max-pending-peer-count”: 16,
“max-snapshot-count”: 3,
“max-store-down-time”: “30m0s”,
“merge-schedule-limit”: 8,
“patrol-region-interval”: “100ms”,
“region-schedule-limit”: 2048,
“replica-schedule-limit”: 64,
“scheduler-max-waiting-operator”: 5,
“split-merge-interval”: “1h0m0s”,
“store-limit-mode”: “manual”,
“tolerant-size-ratio”: 0
}
}