Replication : Check if an instance can replicate from another before a switchover #567
Unanswered
laurent-indermuehle
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to write a playbook that performs a manual switchover, exchanging the primary role with a replica, in a MariaDB GTID replica-set.
I need a method to verify if the replica has successfully read all the binary logs and if the current primary will be able to replicate from it.
Previously I was using the Golang app named Orchestrator. It was performing a series of tests here. In plain text this translate as follow:
Also I think this test is missing:
How could I implement this in c.mysql? I need to compare 2 instances. Not only facts, but also the returned values of the community.mysql.mysql_replication and mysql_info modules.
It could be something like:
This should "run_once" if the playbook target both servers. Also I think it MUST target both instances to work.
I have very few experience writing Ansible modules. Any advice would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions