logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: ProxyPass Timeout
Author
szhark



Joined: 22 Jul 2015
Posts: 1
Location: us

PostPosted: Thu 23 Jul '15 19:24    Post subject: ProxyPass Timeout Reply with quote

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

PostPosted: Fri 24 Jul '15 18:02    Post subject: Reply with quote

You can use connectiontimeout=5 and timeout=30

see http://httpd.apache.org/docs/2.4/mod/mod_proxy.html and search for BalancerMember parameters

if you still have a question please ask again.
Back to top


Reply to topic   Topic: ProxyPass Timeout View previous topic :: View next topic
Post new topic   Forum Index -> Apache