httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54657] DNS lookup failure for load balancer member does not stop affected member from receiving and failing requests
Date Fri, 08 Nov 2013 16:11:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54657

--- Comment #2 from abiacco@formatdynamics.com ---
I can confirm this happens on my 2.2.24 also.
The app-03.local member listed below has no entry in my hosts file.
My member numbers also vary based on environment.

centos 6.4
kernel 2.6.32-358.14.1.el6.x86_64
httpd 2.2.24
apr 1.4.6
apr-util 1.5.2


Sch    Host    Stat    Route    Redir    F    Set    Acc    Wr    Rd
ajp    app-03.local    Ok    app-03        1    0    2     0     0

[08/Nov/2013:08:59:14 -0700] GET /XXX 502 Sz 17 BR 246 BS 166 TMSec 12412 TSec
0 Bal balancer://loadbalancer SessWrk - RealWrk app-03 WrkName
ajp://app-03.local:8009 PID 31861 TID 140004374312704 UID
Un0KUgoKCtMAAHx1OF8AAAAM VHost XXX

<IfModule mod_proxy_balancer.c>
        ProxyPass /balancer-manager !
        ProxyPass /XXX balancer://loadbalancer/XXX
        ProxyPassReverse /XXX balancer://loadbalancer/XXX
</IfModule>

<IfModule mod_proxy.c>

        ProxyRequests off
        ProxyStatus On
        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
        # Set to one of: Off | On | Full | Block
        ProxyVia Off
        ProxyPreserveHost On

<IfModule mod_proxy_balancer.c>

<Proxy balancer://loadbalancer>
# Max is equal to the max threads a single tomcat can handle, devided by the
number of tomcats being balanced
# So if a single tomcat is configured for 300 max threads and there are 3
tomcats, you would set Max to 100 for each balancer member
BalancerMember ajp://app-01.local:8009 route=app-01 loadfactor=1 max=200
acquire=2000 connectiontimeout=2 disablereuse=off keepalive=off ping=2
timeout=60 retry=60 ttl=120 flushpackets=on
BalancerMember ajp://app-02.local:8009 route=app-02 loadfactor=1 max=200
acquire=2000 connectiontimeout=2 disablereuse=off keepalive=off ping=2
timeout=60 retry=60 ttl=120 flushpackets=on
BalancerMember ajp://app-03.local:8009 route=app-03 loadfactor=1 max=200
acquire=2000 connectiontimeout=2 disablereuse=off keepalive=off ping=2
timeout=60 retry=60 ttl=120 flushpackets=on

ProxySet stickysession=JSESSIONID|jsessionid
ProxySet lbmethod=bybusyness
ProxySet scolonpathdelim=On
# Balancer timeout in seconds. If set this will be the maximum time to wait for
a free worker
# Default is not to wait. (Acquire time * number of workers) / 1000?
ProxySet timeout=6
# A single or comma-separated list of HTTP status codes. If set this will force
the worker
# into error state when the backend returns any status code in the list.
ProxySet failonstatus=500,503,502
</Proxy>

</IfModule>
# end mod_proxy_balancer

</IfModule>
# end mod_proxy

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message