Re: [squid-users] No anwser? Advanced Speed Limiting???

From: Joe Cooper <joe@dont-contact.us>
Date: Sun, 17 Nov 2002 13:33:33 -0600

dumpmail@gmx.net wrote:

> Hi,
>
> i have several questions about limiting bandwidth in squid.
>
> First of all i want to limit the total bandwidth to 190 kb/s
> I added these lines to squid.conf:
>
> delay_pools 1
> delay_class 1 1
>
> delay_access 1 allow all
>
> delay_parameters 1 190000/190000
>
> This seems to work.
>
> Now i want the clients to share the speed like:
>
> 1 client = 190 kb/s max
> 2 clients = 95 kb/s each max
> 3 clients = 63 kb/s each max
> 4 clients = 47 kb/s each max
>
> and so on...
>
> Is this possible?

Yes. It is roughly automatic. If your aggregate limit is 190kb/s, then
users will be divided amongst that bandwidth, roughly evenly--though
heavy users will get more bandwidth overall than light users. You could
use a class type 2 if you wanted more precision, and fairness, in
dividing up the individuals. Read the relevant documentation, in the
squid.conf file, and in discussions on this and other mailing lists, and
it will become clear how delay pools work.

> Another very important thing is to limit FTP bandwidth usage like:
>
> 190 kb/s total bandwidth max
> 100 kb/s FTP bandwidth max (so 90 kb/s garanteed for HTTP traffic).
>
> Is there any solution from this and can i execlude special USERS (not
> ips) from these limitations=

The answer to both questions is: ACLs can be applied to delay pools.

-- 
Joe Cooper <joe@swelltech.com>
Web caching appliances and support.
http://www.swelltech.com
Received on Thu Nov 21 2002 - 10:00:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:28 MST