Re: [squid-users] Maxconn Scenario

From: Lazuardi Nasution <mrxlazuardin@dont-contact.us>
Date: Wed, 10 May 2006 11:29:09 +0700

Regarding the 3rd scenario, how to count cache_peer_access/miss_access
connections per client ? I just want to limit only
cache_peer_access/miss_access connections but not total connections from each
client.

Quoting Henrik Nordstrom <henrik@henriknordstrom.net>:

> tis 2006-04-04 klockan 09:28 +0700 skrev Lazuardi Nasution:
>
> > a) Scenario 1:
> > http_access allow all !myMax
>
> Limits all connections, no matter if its a cache hit or miss..
>
> > b) Scenario 2:
> > http_reply_access allow all !myMax
>
> Dont do this.
>
> > c) Scenario 3:
> > cache_peer_access proxyA allow all !myMAx
> > cache_peer_access proxyB allow all !myMAx
> > cache_peer_access proxyC allow all !myMAx
>
> This sounds like a better match for what you want to do. Denies the user
> access to parents if he is having too many open connections to your
> Squid.
>
> You can do the same with the miss_access directive. Gives the user a
> slightly different error message.
>
> If you want to control the error message given to the client using
> deny_info then only scenario 1 is available.
>
> Regards
> Henrik
>

-- 
Lazuardi Nasution
Laboratorium Sistem Kendali & Komputer
LABTEK 8 Lantai 2 ITB
Ganesha 10 Bandung 40132
+628122142597
+622291230584
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
Received on Tue May 09 2006 - 21:59:42 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT