Apache mod_proxy_balancer 动态停止将请求转发给超时成员
Apache mod_proxy_balancer
我正在尝试将 apache mod_proxy_balancer 配置为充当 HTTP VIP 并代表其后面的 2 个 IIS 服务器。
VIP 的配置方式如下:
<Proxy balancer://appcluster>
BalancerMember http://IP-IIS1:80 route=iis1 max=160 timeout=60
BalancerMember http://IP-IIS2:80 route=iis2 max=160 timeout=60
ProxySet stickysession=SERVERID
Order Allow,Deny
Allow from all
Deny from XXX.XXX.XXX.XXX
Deny from XXX.XXX.XXX.XXX
</Proxy>
有时我会安排在其中一台 IIS 服务器上执行的任务。它可以是其中任何一个。由于我无法将其绑定到其中一台服务器,因此它可以在任何 IIS 上启动,问题就来了:
当执行任务时,它会导致其中一台服务器处理传入请求的速度非常慢,因此需要很长时间服务 Apache 转发给它的请求的时间超过 Apache 中配置的 60 秒超时。
有没有办法让 mod_proxy_balancer 识别这种情况并停止将请求转发到慢速服务器,例如动态地将其从平衡池中取出?
Apache mod_proxy_balancer
I'm trying to gonfigure apache mod_proxy_balancer to act as HTTP VIP and represent 2 IIS servers behind it.
This how the VIP configured:
<Proxy balancer://appcluster>
BalancerMember http://IP-IIS1:80 route=iis1 max=160 timeout=60
BalancerMember http://IP-IIS2:80 route=iis2 max=160 timeout=60
ProxySet stickysession=SERVERID
Order Allow,Deny
Allow from all
Deny from XXX.XXX.XXX.XXX
Deny from XXX.XXX.XXX.XXX
</Proxy>
Sometimes I have scheduled task that executed on one of the IIS servers. It could be any one of them. Since I can't bind it to one of the servers it can start on any IIS, and here comes the problem:
When the task been executed it causes to one of the servers to be very slow on incoming requests serving so it takes it very long time to serve the requests that forwarded to it by the Apache, more that the timeout configured in Apache 60 sec.
Is there any way to make mod_proxy_balancer to recognize such condition and stop forwarding the requests to the slow server, e.g dynamicaly take it out from the balancing pool?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-> http://ceviri.belgeler.gen.tr/apache/htdocs /2.2/mod/mod_proxy_balancer.html
-> http://ceviri.belgeler.gen.tr/apache/htdocs/2.2/mod/mod_proxy_balancer.html