Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Orchestrator to monitor RW status of the primary node. #1328

@llintes

Description

@llintes

Hi,

Our config file has super_read_only set by default so whenever a mysql instance is started, it will be in super_read_only mode .
On the initial configuration of a cluster to be monitored by Orchestrator, the primary node is set to RW and subsequent failovers/takeovers are handled by Orchestrator which will set the newly promoted primary to RW.

There are cases when mysql instance is restarted so fast that Orchestrator will not detect it fast enough and will not do a failover. One such example is when memory manager picks mysql instance as the biggest memory offender and kills it. mysqld_safe will restart it quickly and Orchestrator does not get to do a failover. In this case, former primary which continues to be primary, will be started with RO and we need to have an outside process to monitor it and switch it to RW.
We have tested with  MASTER_CONNECT_RETRY lowered to 1 second to make sure that standbys would detect the change of status fast enough but even with this value, Orchestrator did not trigger the failover in our tests.
Since Orchestrator has the topology info, would it be possible to implement a feature that monitors the status of the primary and switches it back to RW if it becomes RO?


Thank you,
Liviu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions