【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】v7.1.1
【复现路径】做过哪些操作出现的问题
17 18 19 是east, 20 21 22 是west
【遇到的问题:问题现象及影响】
curl http://10.xxxxx:2379/pd/api/v1/replication_mode/status
{
“mode”: “dr-auto-sync”,
“dr-auto-sync”: {
“label_key”: “az”,
“state”: “async”,
“state_id”: 349,
“acid_consistent”: true
}
}
状态短暂的是sync,后面就发现维持到了async
【资源配置】
【附件:截图/日志/监控】
rule.json
[
{
“group_id”: “pd”,
“group_index”: 0,
“group_override”: false,
“rules”: [
{
“group_id”: “pd”,
“id”: “az-east”,
“start_key”: “”,
“end_key”: “”,
“role”: “voter”,
“count”: 3,
“label_constraints”: [
{
“key”: “az”,
“op”: “in”,
“values”: [
“east”
]
}
],
“location_labels”: [
“az”,
“rack”,
“host”
]
},
{
“group_id”: “pd”,
“id”: “az-west”,
“start_key”: “”,
“end_key”: “”,
“role”: “follower”,
“count”: 2,
“label_constraints”: [
{
“key”: “az”,
“op”: “in”,
“values”: [
“west”
]
}
],
“location_labels”: [
“az”,
“rack”,
“host”
]
},
{
“group_id”: “pd”,
“id”: “az-west”,
“start_key”: “”,
“end_key”: “”,
“role”: “learner”,
“count”: 1,
“label_constraints”: [
{
“key”: “az”,
“op”: “in”,
“values”: [
“west”
]
}
],
“location_labels”: [
“az”,
“rack”,
“host”
]
}
]
}
]
正常应该是sync吧,是哪里配的不对吗