Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-214

SWITCHOVER client command for MULTI-MASTER

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • None
    • N/A
    • cli, mariadbmon
    • 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

          Activity

            People

              Unassigned Unassigned
              stephane@skysql.com VAROQUI Stephane
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.