Skip to content

API call status issue #1160

@dibrother

Description

@dibrother

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-manager

After restarting, the replication manager will encounter an error that will disappear after the master writes data.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions