码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2021-02-02 11:13:27      阅读:0      评论:0      收藏:0      [点我收藏+]

标签: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 

成功

 

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

标签:address   name   cal   mariadb   etc   error   swap   span   adb   

原文地址:https://www.cnblogs.com/zhangyy3/p/14358430.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!