标签:address name cal mariadb etc error swap span adb
说明
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
成功
标签:address name cal mariadb etc error swap span adb
原文地址:https://www.cnblogs.com/zhangyy3/p/14358430.html