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: Apache 2.4 Proxy Balancer Timeouts
Author
johannrenck



Joined: 25 Sep 2020
Posts: 1
Location: Chile, Santiago

PostPosted: Fri 02 Oct '20 16:10    Post subject: Apache 2.4 Proxy Balancer Timeouts Reply with quote

Hi everyone!, I am trying to understand how the different timeouts actually work when using the proxy balancer directive, the idea is to define a global timeout of 10 seconds and then be able to specify a longer timeout for certain contexts, for instance:

10 seconds
https://host/files/index.html

30 seconds
https://host/files/query

300 seconds
https://host/files/submit

An example configuration is the following:

Code:
Timeout 10
ProxyTimeout 10

<Proxy balancer://lb_s>
  BalancerMember ajp://lb.host:8009 ping=10 ttl=360 timeout=20
</Proxy>

<Proxy balancer://lb_m>
  BalancerMember ajp://lb.host:8009 ping=10 ttl=360 timeout=60
</Proxy>

<Proxy balancer://lb_l>
  BalancerMember ajp://lb.host:8009 ping=10 ttl=360 timeout=600
</Proxy>

ProxyPass /files balancer://lb_s//files timeout=10
ProxyPassReverse /files balancer://lb_s/files

ProxyPass /files/query balancer://lb_m/query timeout=30
ProxyPassReverse /files/query balancer://lb_m/query

ProxyPass /files/submit balancer://lb_l//files/submit timeout=300
ProxyPassReverse /files/submit balancer://lb_l/files/submit


So how would the directive apply the timeouts?, what would take presedence?

Thanks a lot!

Johann
Back to top
kswebdev



Joined: 17 Jul 2020
Posts: 8
Location: United States, Hill City, KS

PostPosted: Fri 02 Oct '20 20:53    Post subject: Apache Module mod_proxy Reply with quote

Take a look at some sample balancer setup examples.
Documentation can be found in the Apache docs - https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 05 Oct '20 10:20    Post subject: Reply with quote

If the same thing happening if you use it without the balancer setting.

like

Code:
 <Location />
        ProxyPass ajp://localhost:8009/
        ProxyPassReverse ajp://localhost:8009/
    </Location>
Back to top


Reply to topic   Topic: Apache 2.4 Proxy Balancer Timeouts View previous topic :: View next topic
Post new topic   Forum Index -> Apache