Re: [squid-users] Delay_pools does not work

2008-11-29 Thread Amos Jeffries

Mr Crack wrote:

Hi All,
I want to limit total download bandwidth to 30 kbps
and individual to 12 kbps
Here is my delay pools configuration and that does not work

acl download_time time 9:30-21:30
acl bfree url_regex -i 192.168.0.1
acl download url_regex -i /etc/all.txt


You should stay away from regex as much as possible in these uses.

try:
  acl bfree dst 192.168.0.1
or
  acl bfree dstdomain 192.168.0.1

the all.txt file needs to be re-evaluated to see if regex is truely 
needed for all its content too.




delay_pools 2

delay_class 1 2
delay_parameters 1  -1/-1  -1/-1
delay_access 1 allow bfree
delay_access 1 deny !bfree

delay_class 2 2
delay_parameters 2 3/7  12000/5
delay_access 2 allow all download_time download


This pool is only limiting to 7bps overall and 5bps individually 
at peak bursts.
This means only objects over that size are limited to your refresh rate. 
Avg web object size being under 30KB I'd expect this to allow most 
objects on the web through at full.


Try these: delay_parameters 2 3/3 12000/12000

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
  Current Beta Squid 3.1.0.2


[squid-users] Delay_pools does not work

2008-11-29 Thread Mr Crack
Hi All,
I want to limit total download bandwidth to 30 kbps
and individual to 12 kbps
Here is my delay pools configuration and that does not work

acl download_time time 9:30-21:30
acl bfree url_regex -i 192.168.0.1
acl download url_regex -i /etc/all.txt

delay_pools 2

delay_class 1 2
delay_parameters 1  -1/-1  -1/-1
delay_access 1 allow bfree
delay_access 1 deny !bfree

delay_class 2 2
delay_parameters 2 3/7  12000/5
delay_access 2 allow all download_time download