test done with a fresh install [root@mariadc1 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬─────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Master, Running │ 1-1-428 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-428 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-428 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴─────────────────┴─────────┴─────────────────┘ # ======================================== # on mariadc1 VM - network disconnected # ======================================== [root@mariadc2 ~]# maxctrl show monitor MariaDB-Monitor | grep -e 'Diagnostics' -e '"primary"' -e 'lock_held' | uniq │ Monitor Diagnostics │ { │ │ │ "primary": false, │ │ │ "lock_held": null, │ │ │ "lock_held": false, │ [root@mariadc2 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Down │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴────────────────┴─────────┴─────────────────┘ [root@mariadc3 ~]# maxctrl show monitor MariaDB-Monitor | grep -e 'Diagnostics' -e '"primary"' -e 'lock_held' | uniq │ Monitor Diagnostics │ { │ │ │ "primary": false, │ │ │ "lock_held": null, │ │ │ "lock_held": false, │ [root@mariadc3 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Down │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴────────────────┴─────────┴─────────────────┘ # ======================================== # on mariadc1 VM - network connected back # ======================================== [root@mariadc1 ~]# maxctrl show monitor MariaDB-Monitor | grep -e 'Diagnostics' -e '"primary"' -e 'lock_held' | uniq │ Monitor Diagnostics │ { │ │ │ "primary": false, │ │ │ "lock_held": false, │ [root@mariadc1 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬─────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Master, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴─────────────────┴─────────┴─────────────────┘ [root@mariadc2 ~]# maxctrl show monitor MariaDB-Monitor | grep -e 'Diagnostics' -e '"primary"' -e 'lock_held' | uniq │ Monitor Diagnostics │ { │ │ │ "primary": false, │ │ │ "lock_held": false, │ [root@mariadc2 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬─────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Master, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴─────────────────┴─────────┴─────────────────┘ [root@mariadc3 ~]# maxctrl show monitor MariaDB-Monitor | grep -e 'Diagnostics' -e '"primary"' -e 'lock_held' | uniq │ Monitor Diagnostics │ { │ │ │ "primary": false, │ │ │ "lock_held": false, │ [root@mariadc3 ~]# maxctrl list servers ┌──────────┬───────────────┬──────┬─────────────┬─────────────────┬─────────┬─────────────────┐ │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc1 │ 192.168.56.74 │ 3306 │ 0 │ Master, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc2 │ 192.168.56.75 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ ├──────────┼───────────────┼──────┼─────────────┼─────────────────┼─────────┼─────────────────┤ │ mariadc3 │ 192.168.56.76 │ 3306 │ 0 │ Slave, Running │ 1-1-445 │ MariaDB-Monitor │ └──────────┴───────────────┴──────┴─────────────┴─────────────────┴─────────┴─────────────────┘ NOTE: as we can see none of the MaxScale instance has primary: true Attached the log for this test