我的HAProxy实例现在甚至没有任何严重的负载,但偶尔它会开始拒绝接受连接,即使后端服务器启动并运行良好。 我没有看到日志中的任何东西。 我错过了一些重要的configuration吗?
global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 chroot /var/lib/haproxy user haproxy group haproxy daemon #debug #quiet defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 frontend http-in bind *:80 acl host_staging hdr_end(host) -i staging.example.com acl host_prod hdr_end(host) -i example.com acl url_wiki url_beg /wiki acl url_go url_beg /greenapp use_backend kumquat if host_staging url_wiki use_backend kumquat if host_staging url_go use_backend cumberland if host_staging default_backend cumberland backend kumquat server kumquat kumquat.example.com:8080 maxconn 1000 backend cumberland server cumberland cumberland.example.com:80 maxconn 1000
事实certificate,我的问题与HAProxy无关。 我试过Nginx,遇到了同样的问题。 然后,我尝试运行一个不同的发行版:CentoOS,甚至在我closures旧的机器后,当CentOS启动时,它说IP地址仍在使用中。 我有另一个虚拟机,我忘了closures具有相同的IP地址。 openSUSE不会执行检查以确保networking中不存在具有相同IP的另一台计算机。 他们互相冲突。
那个盒子上还有什么东西可以消耗TCP连接,这可能会导致这种情况? 你可能不得不考虑转变你的TCP限制,这是一个可能或可能没有用的链接