//环境
# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# getsebool
getsebool: SELinux is disabled
# haproxy -v
HA-Proxy version 1.5.18 2016/05/10
Copyright 2000-2016 Willy Tarreau <willy@haproxy.org>
//现象
#
Message from syslogd@127.0.0.1 at Aug 15 16:16:36 ...
haproxy[11550]: backend web has no server available!
//原因:tcp连接返回错误
//分析:haproxy代理的原配置已经使用了一段时间,代理配置应该是没有问题的;然后分析业务架构,业务是 haproxy→web→mysql 构成,如果代理配置没有问题,那么检查web,尝试减少haproxy上的web数量,问题依旧。再然后检查mysql,发现是web对mysql中的其中一张表操作很慢导致大量的Session无法完成。
//解决:对该表添加索引,修改超时时间,重启一下web服务。业务正常。
Linux下haproxy报backend web has no server available!错误
最新推荐文章于 2023-07-07 15:26:37 发布