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

maxscale starts monitoring not included servers in the service monitor

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 2.2.9
    • N/A
    • galeramon
    • None
    •  CentOS 7.4; 1 MaxScale Node; 3 Master-Master Galera Nodes ;1 additional server

    Description

      maxscale starts monitoring not included servers in the service monitor

      in the service monitor are included 3 servers : servers=server1,server2,server3,
      but maxscale starts monitoring of all servers included in the [server] sections of cnf.

      It would be expected to monitor only servers listed in the service monitors

      There is only one service Monitor in the cfg
      [Galera Monitor]
      type=monitor
      module=galeramon
      servers=server1,server2,server3
      user=root
      passwd=1
      monitor_interval=1000
       
      
      

      server4 which is not included in the Service Monitor set of servers, is in  maxctrl server list
       
      [root@t4w1 ff1]# maxctrl list servers
      ┌─────────┬─────────────────┬──────┬─────────────┬─────────────────────────┬──────┐
      │ Server  │ Address         │ Port │ Connections │ State                   │ GTID │
      ├─────────┼─────────────────┼──────┼─────────────┼─────────────────────────┼──────┤
      │ server1 │ 192.168.104.193 │ 3306 │ 0           │ Slave, Synced, Running  │      │
      ├─────────┼─────────────────┼──────┼─────────────┼─────────────────────────┼──────┤
      │ server2 │ 192.168.104.195 │ 3306 │ 0           │ Slave, Synced, Running  │      │
      ├─────────┼─────────────────┼──────┼─────────────┼─────────────────────────┼──────┤
      │ server3 │ 192.168.104.196 │ 3306 │ 0           │ Master, Synced, Running │      │
      ├─────────┼─────────────────┼──────┼─────────────┼─────────────────────────┼──────┤
      │ server4 │ 172.20.2.208    │ 3306 │ 0           │ Running                 │      │
      └─────────┴─────────────────┴──────┴─────────────┴─────────────────────────┴──────┘
      
      

      Attachments

        Activity

          markus makela markus makela added a comment - - edited

          The maxctrl list servers command lists all configured servers in MaxScale, even unmonitored ones. To list only the servers of a particular monitor, the output of maxctrl show monitor has it.

          The Running state is expected as it is the default state of an unmonitored server. This is simply due to legacy reasons and is possibly going to change in 2.3.

          markus makela markus makela added a comment - - edited The maxctrl list servers command lists all configured servers in MaxScale, even unmonitored ones. To list only the servers of a particular monitor, the output of maxctrl show monitor has it. The Running state is expected as it is the default state of an unmonitored server. This is simply due to legacy reasons and is possibly going to change in 2.3.
          markus makela markus makela added a comment -

          Closing as Not a Bug as this is expected behavior.

          markus makela markus makela added a comment - Closing as Not a Bug as this is expected behavior.

          maxctrl show monitor, as well as maxadmin show monitor commands
          give much more information about the monitor configuration and enumerate only the servers included in the
          related service-Monitor.
          e.g the maxctrl show monitor does not list the state of the servers , while the command 'maxctrl list servers' does,
          so it's useful in that way.
          From the other hand the not included servers in any service monitor are given with the state 'Running'
          by 'maxctrl list servers' and that's the bug.
          Will edit the description and reopen the issue.

          winstone Zdravelina Sokolovska (Inactive) added a comment - maxctrl show monitor, as well as maxadmin show monitor commands give much more information about the monitor configuration and enumerate only the servers included in the related service-Monitor. e.g the maxctrl show monitor does not list the state of the servers , while the command 'maxctrl list servers' does, so it's useful in that way. From the other hand the not included servers in any service monitor are given with the state 'Running' by 'maxctrl list servers' and that's the bug. Will edit the description and reopen the issue.
          markus makela markus makela added a comment -

          Yes, we can definitely change the default state of a server to Down, that makes perfect sense. But as this is a separate issue, could you open a separate bug for this?

          markus makela markus makela added a comment - Yes, we can definitely change the default state of a server to Down , that makes perfect sense. But as this is a separate issue, could you open a separate bug for this?

          People

            Unassigned Unassigned
            winstone Zdravelina Sokolovska (Inactive)
            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.