Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: ProxyPass Timeout |
|
Author |
|
szhark
Joined: 22 Jul 2015 Posts: 1 Location: us
|
Posted: Thu 23 Jul '15 19:24 Post subject: ProxyPass Timeout |
|
|
Hello,
I'm running Apache/2.2.3 on Centos 5, with proxy pass to tomcat via AJP. We're running into a situation where a request comes in, and due to database performance, the request takes a long time. For some reason, any more requests to that specific tomcat server just pile up behind it and wait. How can I tell mod_proxy to open up a new connection, or use another server in the cluster when a request takes a long time?
example config:
ProxyPass / balancer://mycluster nofailover=On maxattempts=3 lbmethod=byrequests
<Proxy balancer://mycluster>
BalancerMember ajp://10.30.99.62:8009 loadfactor=10 max=500
BalancerMember ajp://10.30.99.63:8009 loadfactor=10 max=500
BalancerMember ajp://10.30.99.64:8009 loadfactor=10 max=500
BalancerMember ajp://10.30.99.65:8009 loadfactor=10 max=500
</Proxy>
Any help is appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|