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

Turn server maintenance bit into separate variable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • mariadbmon
    • None

    Description

      Having the maintenance bit among the actual server state bits causes an update problem as while an admin sets the server into maintenance mode, the monitor may update the bits.

      The problem can be removed by adding a separate boolean variable denoting the maintenance stante to the server and removing that bit from the server status. That way, only the administrator may update the in maintenance variable and only the monitor the server status bits.

      Attachments

        Activity

          esa.korhonen Esa Korhonen added a comment -

          The maintenance status of a server is still saved in the status bitfield. What has changed is that the admin can no longer modify the status of a monitored server. The admin can only request maintenance on/off on a monitored server. This request is tracked separately and processed by the monitor. Because the server status can no longer be changed by the admin, the server locking during a normal monitor loop is no longer required and was removed.

          esa.korhonen Esa Korhonen added a comment - The maintenance status of a server is still saved in the status bitfield. What has changed is that the admin can no longer modify the status of a monitored server. The admin can only request maintenance on/off on a monitored server. This request is tracked separately and processed by the monitor. Because the server status can no longer be changed by the admin, the server locking during a normal monitor loop is no longer required and was removed.

          People

            esa.korhonen Esa Korhonen
            johan.wikman Johan Wikman
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.