|
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 │ │
|
└─────────┴────────────────┴───────┴─────────────┴─────────────────┴──────┘
|
|