Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make apache httpd load balancer sends to a member that is in Err.

126 views
Skip to first unread message

James Harrison

unread,
Jan 20, 2011, 8:45:50 AM1/20/11
to
Hello.
This is quite an urgent plea for help.

I am using apache httpd 2.2.17 on Windows 2008 server as a gateway to
our backend systems. The backend is IBM's Websphere Message Broker
(v7) system, that uses SOAP messages to send information back and
forth. There are two hosts (machines) running the Broker software in
an active-active configuration

There are two ports that are available for communication from the
httpd to the Broker, however, the actual services are URL based, so to
communicate I would use: https://{hostname}:7803/url/path and I would
get a response.

I have two major problems:
Broker services can switch from one machine to another at any time and
httpd doesn't know this until a request is sent and httpd returns
error code 404 and the SOAP request is lost.

I have the two communicating ports in a load balancer configuration
and I use (failonstatus) to check for backend errors. httpd still
sends SOAP requests to load balancer members in "Err"!

Here is my configuration for the load balancer and one of the
services:

Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/"
env=BALANCER_ROUTE_CHANGED

<Proxy balancer://mycluster nofailover=Off stickysession=ROUTEID
failonstatus=404,301,500>
BalancerMember https://10.2.57.181:7805 route=191_181_7805
redirect=191_180_7803 keepalive=on timeout=1200
BalancerMember https://10.2.57.180:7803 route=191_180_7803 status=+H
keepalive=on timeout=1200
ProxySet lbmethod=byrequests timeout=600
</Proxy>

# https://256.xx.xx.191/balancer-manager
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/

<location /GeographyServices/GeoSupportService_v1_0>
ProxyPass balancer://mycluster/
</Location>

<Location /balancer-manager>
SetHandler balancer-manager
Order Allow,Deny
Allow from all
</Location>

ErrorLog logs/VirtualHosterror.log
LogLevel error
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/VirtualHostaccess.log common


I hope someone can help.

Many thanks,
James Harrison

0 new messages