【概述】场景+问题概述
tikv缩容,状态一直处于 Pending Offline 状态
【背景】做过哪些操作
tiup cluster scale-in tidb-cluster --node ip:20160
查看pd,tiup ctl:v5.0.1 pd store -u http://10.33.2.43:2379
[root@zabbixserver2 ~]# tiup ctl:v5.0.1 pd store -u http://10.33.2.43:2379
Starting component
ctl
: /root/.tiup/components/ctl/v5.0.1/ctl pd store -u http://10.33.2.43:2379{
“count”: 4,
“stores”: [
{
“store”: {
“id”: 47009,
“address”: “10.33.2.42:20160”,
“version”: “5.0.1”,
“status_address”: “10.33.2.42:20180”,
“git_hash”: “e26389a278116b2f61addfa9f15ca25ecf38bc80”,
“start_timestamp”: 1624554400,
“deploy_path”: “/tikv/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1624607693273480869,
“state_name”: “Up”
},
“status”: {
“capacity”: “177GiB”,
“available”: “134.6GiB”,
“used_size”: “19.55GiB”,
“leader_count”: 944,
“leader_weight”: 1,
“leader_score”: 944,
“leader_size”: 52356,
“region_count”: 1906,
“region_weight”: 1,
“region_score”: 324784.33387210406,
“region_size”: 107217,
“start_ts”: “2021-06-25T01:06:40+08:00”,
“last_heartbeat_ts”: “2021-06-25T15:54:53.273480869+08:00”,
“uptime”: “14h48m13.273480869s”
}
},
{
“store”: {
“id”: 47026,
“address”: “10.33.2.41:20160”,
“version”: “5.0.1”,
“status_address”: “10.33.2.41:20180”,
“git_hash”: “e26389a278116b2f61addfa9f15ca25ecf38bc80”,
“start_timestamp”: 1624438931,
“deploy_path”: “/tikv/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1624607689940555143,
“state_name”: “Up”
},
“status”: {
“capacity”: “197GiB”,
“available”: “126.9GiB”,
“used_size”: “19.64GiB”,
“leader_count”: 962,
“leader_weight”: 1,
“leader_score”: 962,
“leader_size”: 54861,
“region_count”: 1906,
“region_weight”: 1,
“region_score”: 320481.71191295166,
“region_size”: 107217,
“start_ts”: “2021-06-23T17:02:11+08:00”,
“last_heartbeat_ts”: “2021-06-25T15:54:49.940555143+08:00”,
“uptime”: “46h52m38.940555143s”
}
},
{
“store”: {
“id”: 58198,
“address”: “10.33.2.48:3930”,
“labels”: [
{
“key”: “engine”,
“value”: “tiflash”
}
],
“version”: “v5.0.1”,
“peer_address”: “10.33.2.48:20170”,
“status_address”: “10.33.2.48:20292”,
“git_hash”: “1821cf655bc90e1fab6e6154cfe994c19c75d377”,
“start_timestamp”: 1624438954,
“deploy_path”: “/tidb-deploy/tiflash-9000/bin/tiflash”,
“last_heartbeat”: 1624607692200559639,
“state_name”: “Up”
},
“status”: {
“capacity”: “16.99GiB”,
“available”: “16.99GiB”,
“used_size”: “258KiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 0,
“region_weight”: 1,
“region_score”: 6602783.587947488,
“region_size”: 0,
“start_ts”: “2021-06-23T17:02:34+08:00”,
“last_heartbeat_ts”: “2021-06-25T15:54:52.200559639+08:00”,
“uptime”: “46h52m18.200559639s”
}
},
{
“store”: {
“id”: 1,
“address”: “10.33.2.43:20160”,
“state”: 1,
“version”: “5.0.1”,
“status_address”: “10.33.2.43:20180”,
“git_hash”: “e26389a278116b2f61addfa9f15ca25ecf38bc80”,
“start_timestamp”: 1624464666,
“deploy_path”: “/tikv/tidb-deploy/tikv-20160/bin”,
“last_heartbeat”: 1624591587889106889,
“state_name”: “Offline”
},
“status”: {
“capacity”: “39.25GiB”,
“available”: “9.206GiB”,
“used_size”: “19.25GiB”,
“leader_count”: 0,
“leader_weight”: 1,
“leader_score”: 0,
“leader_size”: 0,
“region_count”: 1906,
“region_weight”: 1,
“region_score”: 10729966.729996301,
“region_size”: 107217,
“start_ts”: “2021-06-24T00:11:06+08:00”,
“last_heartbeat_ts”: “2021-06-25T11:26:27.889106889+08:00”,
“uptime”: “35h15m21.889106889s”
}
}
]
}
【现象】业务和数据库现象
无
【业务影响】
无
【TiDB 版本】
v5.0.1