Re: How to setup in Apache/mod_proxy an upper bound on the number of concurrent forwarded requests?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Igor,

Thank you for the response. (Sometimes one need to be told RTFM!)

So I gather you would use the max=n parameter on each BalancerMember
in your cluster. Now, what happens when each member in the cluster has
reached their max and a new connection comes in? Or what happens if a
request that has been pinned to a given server (through
stickysession), and that server has reached its maximum number of
connection? In that case, I don't want users to get a 503, but rather
the request to be queued. Is this what mod_proxy does by default?

Alex

On Mon, Jul 5, 2010 at 7:22 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
>
> read the ProxyPass section.
>
> On Tue, Jul 6, 2010 at 10:37 AM, Alessandro Vernet <avernet@xxxxxxxx> wrote:
>>
>> I have a fairly standard setup where a front-end Apache server
>> forwards requests to Tomcat through mod_proxy/AJP. How can I setup
>> Apache/mod_proxy so it only forwards at most N (say, N=4) concurrent
>> requests to Tomcat? Other concurrent requests coming into Apache
>> should not be rejected, and should instead be queued to later be sent
>> to Tomcat.
>>
>> PS 1: I know this is something you can do this at the Tomcat level
>> with the maxThreads attribute, but I prefer to handle this at the
>> Apache level.
>>
>> PS 2: I see that Apache has a MaxClients configuration, which seems to
>> be doing what I am looking for. But it is not clear to me how to have
>> a MaxClient per server mod_proxy forwards to, rather than MaxClient
>> per Apache. I.e. if Apache forward requests to a cluster of 4 Tomcat
>> machine, I'd like Apache to limit the number of concurrent requests
>> forwarded to any given Tomcat to N (say, N=4).
>>
>> Alex
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>> ---------------------------------------------------------------------
>> 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@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>
>



-- 
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux