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

Add script variables

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The failover and switchover scripts need to be provided with credentials using which the scripts can access and make modifications to the affected servers. The scripts will use the same credentials as the MaxScale monitor does.

      In the MaxScale configuration file it is possible to provide credentials for the monitor, to be used with all servers, and also servers specific monitor credentials.

      A new script variable, e.g. CREDENTIALS could be introduced that would contain the credentials for all nodes.

      script=failover.sh --slaves=$SLAVELIST --credentials=$CREDENTIALS
      

      When executed, the command line would look like:

      failover.sh --credentials=maxmon:maxpwd1@[192.168.0.201]:3306,maxmon:maxpwd2@[192.168.0.121]:3306
       --slaves=[192.168.0.201]:3306,[192.168.0.121]:3306
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              johan.wikman Johan Wikman
              Reporter:
              johan.wikman Johan Wikman
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.