You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Nagele <wi...@gmail.com> on 2009/05/14 21:26:48 UTC

[users@httpd] Limiting Connections for a Virtual Host

We run a service that handles tens of thousands of virtual hosts
across a bunch of servers. We recently ran in to a problem where one
customer was hitting a server, with over 7000 connection attempts in a
3 - 4 hour period.

The way it is setup now, each customer has its own virtual host in
Apache. We shard Apache instances across many servers to handle load
and reduce restart times. Is there an easy way to limit the number of
connections for each virtual host? Or maybe even per IP? We want to
avoid the situation above in the future.

Thanks,
Chris

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


Re: [users@httpd] Limiting Connections for a Virtual Host

Posted by Chris Nagele <wi...@gmail.com>.
> Check out mod_limitipconn. You can limit globally or per virtual host
> (whether the "IP address pool" it tracks is virtual host specific, I'm, not
> sure).
>
> http://www.dominia.org/djao/limitipconn.html

Thanks Justin. We will check this out.

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


Re: [users@httpd] Limiting Connections for a Virtual Host

Posted by Justin Pasher <ju...@newmediagateway.com>.
Chris Nagele wrote:
> We run a service that handles tens of thousands of virtual hosts
> across a bunch of servers. We recently ran in to a problem where one
> customer was hitting a server, with over 7000 connection attempts in a
> 3 - 4 hour period.
>
> The way it is setup now, each customer has its own virtual host in
> Apache. We shard Apache instances across many servers to handle load
> and reduce restart times. Is there an easy way to limit the number of
> connections for each virtual host? Or maybe even per IP? We want to
> avoid the situation above in the future.
>   

Check out mod_limitipconn. You can limit globally or per virtual host 
(whether the "IP address pool" it tracks is virtual host specific, I'm, 
not sure).

http://www.dominia.org/djao/limitipconn.html

-- 
Justin Pasher

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