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

A passive MaxScale no longer takes cooperative monitoring locks

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 25.01.6, 25.10.2
    • 26.10.0
    • mariadbmon
    • None
    • MXS-SPRINT-268, MXS-SPRINT-269, MXS-SPRINT-270
    • Hide
      If the MariaDB Monitor setting
      [cooperative_monitoring_locks]({maxscale}/reference/maxscale-monitors/mariadb-monitor#cooperative_monitoring_locks)
      is used with `passive=true`, the monitor will no longer acquire any locks,
      and it releases any locks it holds. The monitor will assume that another
      MaxScale will acquire the locks and select a primary server. If all
      MaxScales are passive, no server is designated primary, so at least one
      MaxScale must be active.
      Show
      If the MariaDB Monitor setting [cooperative_monitoring_locks]({maxscale}/reference/maxscale-monitors/mariadb-monitor#cooperative_monitoring_locks) is used with `passive=true`, the monitor will no longer acquire any locks, and it releases any locks it holds. The monitor will assume that another MaxScale will acquire the locks and select a primary server. If all MaxScales are passive, no server is designated primary, so at least one MaxScale must be active.

    Description

      Historically, we have advised against combining the passive-setting with cooperative_monitoring_locks. In existing MaxScale versions, what happens is that a passive MaxScale can still take the locks (but not perform failover), so that routing queries will work even if no MaxScale is active. The downside of this approach is that the passive MaxScale will not relinquish the locks even when the active MaxScale comes back online. Thus, no MaxScale can perform failover if required.

      With this change, the passive MaxScale will not take the locks, and will also release any locks it may have acquired previously. The assumption is that if cooperative monitoring is being used with active/passive, then someone/something is keeping track of the situation and ensures one MaxScale is always active.

      Original description:
      When maxscale is in mode passive:true , all monitors with cooperative monitoring should not be allowed to take locks. This means that an external script or program (e.g. Keepalived) or the DBA must ensure that one MaxScale is always active.

      Attachments

        Activity

          People

            esa.korhonen Esa Korhonen
            allen.herrera Allen Herrera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5d
                5d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 2d Time Not Required
                2d

                Git Integration

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