resources/bin/orchestrator-client -c graceful-master-takeover-auto -alias orc_prod_infra_broker -d 172.20.0.14:3306 -b 'superuser:superpass' Desginated instance 172.20.0.14:3306 cannot take over all of its siblings. Error: 2022-09-0215:33:27 ERROR Relocating 2 replicas of 172.20.0.10:3306 below 172.20.0.14:3306 turns to be too complex; please do it manually
resources/bin/orchestrator-client -c graceful-master-takeover-auto -alias orc_prod_infra_broker -d 172.20.0.14:3306 -b 'superuser:superpass' Desginated instance 172.20.0.14:3306 cannot take over all of its siblings. Error: 2022-09-0215:33:27 ERROR Relocating 2 replicas of 172.20.0.10:3306 below 172.20.0.14:3306 turns to be too complex; please do it manually
[martini] Started GET /api/graceful-master-takeover-auto/orc_prod_infra_broker/172.20.0.14/3306for127.0.0.1:51897 2022-09-0215:33:26 INFO GracefulMasterTakeover: designated master instructed to be 172.20.0.14:3306 2022-09-0215:33:26 INFO GracefulMasterTakeover: Will let 172.20.0.14:3306 take over its siblings 2022-09-0215:33:26 INFO moveReplicasViaGTID: Will move 3 replicas below 172.20.0.14:3306 via GTID, max concurrency: 5 2022-09-0215:33:26 INFO Will move 172.20.0.12:3306 below 172.20.0.14:3306 via GTID 2022-09-0215:33:26 INFO Stopped replication on 172.20.0.12:3306, Self:mysql-bin.000001:2997164, Exec:mysql-bin.000003:4032 2022-09-0215:33:26 DEBUG ChangeMasterTo: will attempt changing master on 172.20.0.12:3306 to 172.20.0.14:3306, mysql-bin.000001:2997164 2022-09-0215:33:27 INFO ChangeMasterTo: Changed master on 172.20.0.12:3306 to: 172.20.0.14:3306, mysql-bin.000001:2997164. GTID: true 2022-09-0215:33:27 DEBUG semi-sync: analysis results for recovery of cluster 172.20.0.10:3306: 2022-09-0215:33:27 DEBUG semi-sync: master = 172.20.0.14:3306, master semi-sync wait count = 0, master semi-sync replica count = 0 2022-09-0215:33:27 DEBUG semi-sync: possible semi-sync replicas (in priority order): (none) 2022-09-0215:33:27 DEBUG semi-sync: always-async replicas: (none) 2022-09-0215:33:27 DEBUG semi-sync: excluded replicas (defunct): (none) 2022-09-0215:33:27 DEBUG semi-sync: suggested actions: (none) 2022-09-0215:33:27 INFO semi-sync: 172.20.0.12:3306: no action taken; this may lead to future recoveries 2022-09-0215:33:27 INFO Started replication on 172.20.0.12:3306 2022-09-0215:33:27 INFO moveReplicasViaGTID: Will move 2 replicas below 172.20.0.14:3306 via GTID, max concurrency: 5 2022-09-0215:33:27 ERROR Relocating 2 replicas of 172.20.0.10:3306 below 172.20.0.14:3306 turns to be too complex; please do it manually [martini] Completed 500 Internal Server Error in 581.39425ms [martini] Started GET /web/cluster/alias/orc_prod_infra_broker for127.0.0.1:51672
问题定位
通过对日志中关键字的搜索, 发现
1
Relocating 2 replicas of 172.20.0.10:3306 below 172.20.0.14:3306 turns to be too complex; please do it manually
[martini] Started GET /api/graceful-master-takeover-auto/orc_prod_infra_broker/172.20.0.14/3306for127.0.0.1:60996 2022-09-0217:21:00 INFO GracefulMasterTakeover: designated master instructed to be 172.20.0.14:3306 2022-09-0217:21:00 INFO GracefulMasterTakeover: Will let 172.20.0.14:3306 take over its siblings 2022-09-0217:21:00 INFO moveReplicasViaGTID: Will move 3 replicas below 172.20.0.14:3306 via GTID, max concurrency: 5 2022-09-0217:21:00 INFO Will move 172.20.0.12:3306 below 172.20.0.14:3306 via GTID 2022-09-0217:21:00 INFO Stopped replication on 172.20.0.12:3306, Self:mysql-bin.000001:2997164, Exec:mysql-bin.000003:4032 2022-09-0217:21:00 INFO ChangeMasterTo: Changed master on 172.20.0.12:3306 to: 172.20.0.14:3306, mysql-bin.000001:2997164. GTID: true 2022-09-0217:21:00 INFO semi-sync: 172.20.0.12:3306: no action taken; this may lead to future recoveries 2022-09-0217:21:00 INFO Started replication on 172.20.0.12:3306 2022-09-0217:21:00 INFO moveReplicasViaGTID: Will move 2 replicas below 172.20.0.14:3306 via GTID, max concurrency: 5 2022-09-0217:21:00 ERROR Relocating 2 replicas of 172.20.0.10:3306 below 172.20.0.14:3306 turns to be too complex; please do it manually 2022-09-0217:21:00 ERROR Identical server id: 172.20.0.14:3306, 172.20.0.11:3306 both have 101 2022-09-0217:21:00 ERROR Identical server id: 172.20.0.14:3306, 172.20.0.13:3306 both have 101 [martini] Completed 500 Internal Server Error in 402.777083ms