简体   繁体   English

apache mod_proxy_balancer随机停止向后端服务器发送流量,但没有错误

[英]apache mod_proxy_balancer randomly stops sending traffic to backend server, but no errors

I am using mod_proxy_balancer to load balance two back-end IIS servers. 我正在使用mod_proxy_balancer来负载平衡两个后端IIS服务器。 When monitoring the balancer-manager gui, I noticed that occasionally apache will stop sending traffic to one of the members. 当监视平衡器-管理器gui时,我注意到apache偶尔会停止向其中一个成员发送流量。 However, there are no errors present in the logs, and nothing to indicate that the server is unavailable. 但是,日志中没有错误,也没有任何迹象表明服务器不可用。 I have tried various lbmethods (bytraffic, bybusyness) and see the same result. 我尝试了各种lbmethods(交通拥堵),并看到了相同的结果。 I need to determine why traffic stops going to a member that is seemingly in good health and not returning errors. 我需要确定为什么流量停止流向看似健康且没有返回错误的成员。 This generally happens under heavy load, which results in performance issues as one server is handling all requests. 这通常在高负载下发生,导致性能问题,因为一台服务器正在处理所有请求。

Relevant config: 相关配置:

<Proxy balancer://cluster1>
    BalancerMember http://iis1:80 route=2 timeout=45 keepAlive=On
    BalancerMember http://iis2:80 route=1 timeout=45 keepAlive=On
    ProxySet stickysession=ROUTEID
</Proxy>

Figured this out - it's because we are using sticky sessions on both our hardware load balancer and apache balancer configs. 弄清楚了-这是因为我们在硬件负载平衡器和apache平衡器配置上都使用了粘性会话。 So when we run a load test using jMeter, all of the traffic goes to one server. 因此,当我们使用jMeter运行负载测试时,所有流量都流向一台服务器。 I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM