-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Description:
- Version: 3.0.30
- MySQL 8.0.42
Hi,I encountered a problem while calling the API interface to determine.
There is currently a structure in the master slave environment that, when events such as power failure or shutting down all programs occur.
stop mysql-master
stop mysql-slave
stop replication-managerAfter restarting, the replication manager will encounter an error that will disappear after the master writes data.
At this point, when calling the/app/clusters/cluster1/status interface, the status will be "error". I wrote a VIP manager tool to check and obtain the API information of the replication manager to determine the health status and who is the master. I first checked the health status of the middleware, but since there was no data written, it remained in an error state.Therefore, the program will not execute adding VIP to the master.
May I directly call/app/clusters/cluster1/topology/master to confirm who is the master without checking the status of the middleware?
I'm worried that not judging the middleware status and only judging the master may cause brain cracking.