maxscale 配置后不生效warning: [mariadbmon] The current master server 'xx' is no longer valid because it has been down over 5 (failcount) monitor updates

说明

maxscale 配置没有问题,但是就是不好使。

报错如下:

warning: [mariadbmon] The current master server 'server1' is no longer valid because it has been down over 5 (failcount) monitor updates and it does not have any running slaves, but there is no valid alternative to swap to.

具体表现是:

maxctl list servers;中server 的state 为down.

原因:

mariadb 所在的机器会有错误(/var/log/syslog):

 IP address '192.168.8.86' could not be resolved: Temporary failure in name resolution

解决方法

```
skip-host-cache
skip-name-resolve
```
添加到 mariadb 的 /etc/mysql/mariadb.conf.d/50-server.cnf

重起mariadb 

成功

 

posted on 2021-02-01 18:44  cococooder  阅读(327)  评论(0)    收藏  举报