[MXS-2638] Unmonitored server shows up as "running" Created: 2019-08-13  Updated: 2019-10-18  Resolved: 2019-10-18

Status: Closed
Project: MariaDB MaxScale
Component/s: Monitor
Affects Version/s: 2.3.11
Fix Version/s: 2.5.0

Type: Bug Priority: Critical
Reporter: Anders Karlsson Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

Linux Centos 7.6



 Description   

When a server is defined, but is not registered with a monitor, for example if it has been forgotten, then maxctrl will show this server in the state "Running" always. The reasonable default could be "Down" or, even better, a separate "Unknown" status.
For example:

$ cat /etc/maxscale.cnf
[maxscale]
threads=1
 
[foobar]
type=server
address=www.google.com
port=3306
protocol=MariaDBBackend
$ maxctrl list servers
┌─────────┬────────────────┬───────┬─────────────┬─────────────────┬──────┐
│ Server  │ Address        │ Port  │ Connections │ State           │ GTID │
├─────────┼────────────────┼───────┼─────────────┼────────────────┼──────┤
│ foobar  │ www.google.com │ 3306  │ 0           │ Running         │      │
└─────────┴────────────────┴───────┴─────────────┴─────────────────┴──────┘



 Comments   
Comment by markus makela [ 2019-10-18 ]

The servers now start in the Down state.

Generated at Thu Feb 08 04:15:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.