Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Do
-
None
-
None
Description
Today MM monitor plugin define who is the active master in master-master using READ_ONLY flag, a more sophisticate solution can be implemented
- Creating a mysql system table on the active master
- Introduce a new SQL command SET ACTIVE MASTER <backend> to create the table
- When proxy start the multi master monitor plugin check the existence of that table and check the single existence in the full cluster it can set the flag master to that node.
SWITCHOVER to single proxy scenario
- Stop traffic
- Wait for slave to catch up
- Open traffic
On multiple proxies cluster
- All participating proxy, register to the table by inserting a record to it (ip,switch) values ('x.x.x.x' , 0)
- A manual switchover insert a replication event that notify all proxies in the cluster via replication monitors detecting
The director proxy is the one that trigger the failover
- Stop traffic
- Insert the replication event
- Loop on the active master system table until all maxscale notify
- Create System table on candidate Master
- Open traffic to candidate active master
Other proxies
- Receive the switchover event
- Loop on the active master system table until all maxscale notify
- Open traffic to candidate active master
For failover system table can be present on multiple node after the old master wake up
This can be manage by a call to external monitoring plugin script that drop that table on such event
Attachments
Issue Links
- is blocked by
-
MXS-189 FAILOVER and SWITCHOVER admin command to call external script
- Closed