httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Quick <Edward.Qu...@igindex.co.uk>
Subject RE: [users@httpd] RE: mod_proxy_balancer back end status check
Date Tue, 09 Mar 2010 23:01:08 GMT
Further testing showed this succeeded when the server was busy. The balancer marked the member's
status as Err.
However later after firing continuous requests, the backend ran out of memory, causing it
to return a 500, and then the balancer marked it up again, sigh!

I'm considering writing a script to check the backend and disable the members via a curl call
to the balancer-manager page, but that  seems a bit crude. Is there anything else I can add
to the configuration below which might handle a code 500?


-----Original Message-----
From: Edward Quick [mailto:Edward.Quick@igindex.co.uk]
Sent: 09 March 2010 22:08
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE: mod_proxy_balancer back end status check

Thanks Phil,

That worked a treat.

<Proxy balancer://tomcat>
 BalancerMember ajp://localhost:8009 route=jvm001 redirect=jvm002 keepalive=On ping=1  BalancerMember
ajp://localhost:8010 route=jvm002 keepalive=On status=-H ping=1 </Proxy>



-----Original Message-----
From: Philip Wigg [mailto:phil@philipwigg.co.uk]
Sent: 09 March 2010 19:57
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE: mod_proxy_balancer back end status check

On 9 March 2010 17:47, Edward Quick <Edward.Quick@igindex.co.uk> wrote:
> Here's my configuration. After the 15 seconds timeout, the back end
> server (listening on port 8080 here)  returns a 502 page. Is there any
> configuration I can add to detect that beforehand, and get the
> balancer to redirect my request to the other server member?
>
> Timeout 15
>
> ProxyPass /HelloWorld/ balancer://tomcat/HelloWorld/ ProxyPassReverse
> /HelloWorld/ balancer://tomcat/HelloWorld/
>
> <Proxy balancer://tomcat>
>  BalancerMember http://localhost:8080 route=jvm001 redirect=jvm002
> BalancerMember http://localhost:8082 route=jvm002 </Proxy>

You could try using AJP instead of HTTP between Apache and Tomcat, and use the ping parameter.
Search for 'ping' here:-

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

-- Phil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


The information contained in this email is strictly confidential and for the use of the addressee
only, unless otherwise indicated. If you are not the intended recipient, please do not read,
copy, use or disclose to others this message or any attachment. Please also notify the sender
by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email
and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a
company registered in England and Wales under number 01190902. VAT registration number 761
2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised
and regulated by the Financial Services Authority. FSA Register number 114059.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


The information contained in this email is strictly confidential and for the use of the addressee
only, unless otherwise indicated. If you are not the intended recipient, please do not read,
copy, use or disclose to others this message or any attachment. Please also notify the sender
by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email
and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a
company registered in England and Wales under number 01190902. VAT registration number 761
2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised
and regulated by the Financial Services Authority. FSA Register number 114059.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message