[squid-users] delay pools and ident users

From: Yuri Vorobyev <vorob_at_yamalfin.ru>
Date: Wed, 2 Sep 2009 12:24:49 +0600

Hello.

It is possible to limit bandwidth to users, based on ident acl's?
I'm upgraded to version 3.0.18 and trying this:

acl ident_aware_hosts src 10.10.10.10/255.255.255.255
ident_lookup_access allow ident_aware_hosts
ident_lookup_access deny all
ident_timeout 10 seconds

acl vip src "/usr/local/etc/squid/acls/vip"
acl reg src "/usr/local/etc/squid/acls/reg"
acl ident_vip ident "/usr/local/etc/squid/acls/ident_vip"
acl ident_reg ident "/usr/local/etc/squid/acls/ident_reg"

delay_pools 2
delay_class 1 4
delay_access 1 allow reg
delay_access 1 allow ident_reg
delay_access 1 deny all
delay_parameters 1 32000/32000 -1/-1 -1/-1 8000/8000

delay_class 2 4
delay_access 2 allow vip
delay_access 2 allow ident_vip
delay_access 2 deny all
delay_parameters 2 64000/64000 -1/-1 -1/-1 16000/16000

Test user in group ident_vip. I'm getting 33-35 KB/s (with almost no other
activity) on test file.
This is strange, because Aggregate limit is 64 KB/s.
As far I see in cachemgr, user limit does not apply

        Per User:
                Max: 16000
                Restore: 16000
                Current: Not used yet.
Received on Wed Sep 02 2009 - 06:24:57 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 02 2009 - 12:00:01 MDT