httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Isolating slow and fast connections using apache/modjk
Date Fri, 02 Jan 2009 09:59:35 GMT
Gerhardus.Geldenhuis@gta-travel.com wrote:
[...]
Not a real answer to your question, just some data.

VirtualHost's will use the same pool of Apache threads/children.
A VirtualHost is only a different "personality" that one Apache 
thread/child assumes temporarily to handle a request, depending on the 
"Host:" header of the request.  All threads/children are identical, and 
can handle any request for any VirtualHost at any one time, and it is 
not so that there is one separate thread/child per VirtualHost.

But a thread/child that at any one time is "impersonating" a given 
VirtualHost can re-direct a request to a different "worker", or set of 
workers, and thus possibly a different set of back-end servers (be they 
different Tomcat instances on the same host, or different Tomcats on 
different hosts).

It is not really clear in your question what you mean by "stack A or B 
misbehave".  I mean that if your "slow" back-end can handle 10 requests 
per second, and 20 requests come in, what would you really like to happen ?

Also, are "fast" and "slow" requests arriving on the same VirtualHost's 
(meaning hostnames), or is it so that there is one set of VirtualHosts 
that only receives "fast" requests and another that only receives "slow" 
requests ?


---------------------------------------------------------------------
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


Mime
View raw message