niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
Q: How to "force" HTTP 503 when Apache hits MaxClients
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
James W. Anderson
*nix forums beginner


Joined: 16 Oct 2005
Posts: 7

PostPosted: Mon Jul 10, 2006 3:34 am    Post subject: RE: Q: How to "force" HTTP 503 when Apache hits MaxClients Reply with quote

Does anyone happen to know what module this might be?

-----Original Message-----
From: Morgan Gangwere [mailto:0.fractalus@gmail.com]
Sent: Saturday, July 08, 2006 11:18 PM
To: users@httpd.apache.org; jwanderson@bellsouth.net
Subject: Re: Q: How to "force" HTTP 503 when Apache hits MaxClients

somewhere there is a module that will allow you to auto-redirect if a
certain variable (in this case "clients" or "numberClients") reaches
or exeeds a certain value (in this case, 191, 1 over the max, so that
when user number 191attempts connection, it kicks him, but user 190
can freely use the app). this was what I did to eliminate the
long-wait time on subeta.org: it shows that if the server load is 1%
or more over the max (200%, because its OK, but the apache
distribution is built from pure, altered, mangled source.)

On 7/8/06, James W. Anderson <jwanderson@bellsouth.net> wrote:
Quote:
I have an application front-ended by Apache 1.3, and the application cannot
handle more than roughly 200 concurrent requests. We throttled back Apache
by
setting MaxClients to 190 and that seems to regulate the load and prevent
the
application server from crashing. The problem is, if the number of requests
to
Apache exceeds 190 Apache queues those additional requests and users end up
seeing very long response times. Instead of having our users watch the
hourglass we'd like Apache to immediately return "server too busy" responses
(HTTP 503?) as soon as it reaches MaxClients. How can we do this?





--
"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
Back to top
Morgan Gangwere
*nix forums beginner


Joined: 14 Jun 2006
Posts: 5

PostPosted: Sun Jul 09, 2006 3:17 am    Post subject: Re: Q: How to "force" HTTP 503 when Apache hits MaxClients Reply with quote

somewhere there is a module that will allow you to auto-redirect if a
certain variable (in this case "clients" or "numberClients") reaches
or exeeds a certain value (in this case, 191, 1 over the max, so that
when user number 191attempts connection, it kicks him, but user 190
can freely use the app). this was what I did to eliminate the
long-wait time on subeta.org: it shows that if the server load is 1%
or more over the max (200%, because its OK, but the apache
distribution is built from pure, altered, mangled source.)

On 7/8/06, James W. Anderson <jwanderson@bellsouth.net> wrote:
Quote:
I have an application front-ended by Apache 1.3, and the application cannot
handle more than roughly 200 concurrent requests. We throttled back Apache
by
setting MaxClients to 190 and that seems to regulate the load and prevent
the
application server from crashing. The problem is, if the number of requests
to
Apache exceeds 190 Apache queues those additional requests and users end up
seeing very long response times. Instead of having our users watch the
hourglass we'd like Apache to immediately return "server too busy" responses
(HTTP 503?) as soon as it reaches MaxClients. How can we do this?





--
"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

---------------------------------------------------------------------
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
Back to top
James W. Anderson
*nix forums beginner


Joined: 16 Oct 2005
Posts: 7

PostPosted: Sat Jul 08, 2006 5:28 pm    Post subject: Q: How to "force" HTTP 503 when Apache hits MaxClients Reply with quote

I have an application front-ended by Apache 1.3, and the application cannot
handle more than roughly 200 concurrent requests. We throttled back Apache by
setting MaxClients to 190 and that seems to regulate the load and prevent the
application server from crashing. The problem is, if the number of requests to
Apache exceeds 190 Apache queues those additional requests and users end up
seeing very long response times. Instead of having our users watch the
hourglass we'd like Apache to immediately return "server too busy" responses
(HTTP 503?) as soon as it reaches MaxClients. How can we do this?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 2:40 am | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts realm is missing in HTTP authnetication Shai Halevi PHP 0 Fri Jul 21, 2006 1:52 pm
No new posts mod_rewrite to go from http to https and back sevans@bigskypenguin.com Apache 0 Fri Jul 21, 2006 5:12 am
No new posts I need to configure DHCP server to force client to obtain... malazc@gmail.com networking 1 Thu Jul 20, 2006 8:44 pm
No new posts Force linker to check all the implementation toton C++ 1 Thu Jul 20, 2006 6:08 am
No new posts freebsd with apache, php and mysql Yves Savoie FreeBSD 5 Wed Jul 19, 2006 11:39 pm

Free Ringtones | Loans | Mortgage Calculator | Mortgages | Buy PSP
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.8632s ][ Queries: 20 (0.7632s) ][ GZIP on - Debug on ]