Attn: Maksim:
delay pool class 4 & 5 are only added to Squid-3.x. They are not
available in 2.7.
Amos
nyoman karna wrote:
Dear Maksim,
first of all you'll need to attach your squid.conf
without that we can only guess.
but this is a simple example for delay pool i used,
it create 2 pools, 1 for faculty (BW@32kbps) and
1 for students (BW@128kbps):
acl faculty src 172.16.1.0/255.255.255.0
acl students src 172.16.0.0/255.255.224.0
delay_pools 2
delay_class 1 2
delay_class 2 2
delay_access 1 allow faculty
delay_access 1 deny all
delay_access 2 allow students
delay_access 2 deny all
delay_parameters 1 256000/256000 4000/4000
delay_parameters 2 256000/256000 16000/16000
------------------------------
Nyoman Bogi Aditya Karna
IM Telkom
http://www.imtelkom.ac.id
------------------------------
--- On Fri, 3/27/09, Maksim Filenko <maksim.filenko@xxxxxxxxxxxxxxxxxxx> wrote:
From: Maksim Filenko <maksim.filenko@xxxxxxxxxxxxxxxxxxx>
Subject: delay_pools
To: squid-users@xxxxxxxxxxxxxxx
Date: Friday, March 27, 2009, 10:35 AM
Hi everyone!
I've stuck with shaping issues.
squid.exe -v
Squid Cache: Version
2.7.STABLE4
configure options:
--enable-win32-service --enable-storeio='ufs
aufs null coss'
--enable-default-hostsfile=none
--enable-removal-policies='heap
lru' --enable-snmp --enable-htcp
--disable-wccp --disable-wccpv2
--enable-useragent-log
--enable-referer-log
--enable-cache-digests --enable-auth='basic
ntlm digest negotiate'
--enable-basic-auth-helpers='LDAP NCSA
mswin_sspi'
--enable-negotiate-auth-helpers=mswin_sspi
--enable-ntlm-auth-helpers='mswin_sspi fakeauth'
--enable-external-acl-helpers='mswin_lm_group ldap_group'
--enable-large-cache-files
--enable-digest-auth-helpers='password LDAP eDirectory'
--enable-forw-via-db
--enable-follow-x-forwarded-for
--enable-delay-pools
--enable-arp-acl --prefix=c:/squid
Compiled as Windows System
Service.
Here's what I've got in log:
2009/03/27 15:00:20|
Reconfiguring Squid Cache (version
2.6.STABLE19)...
2009/03/27 15:00:20| FD 11
Closing HTTP connection
2009/03/27 15:00:20| FD 16
Closing SNMP socket
2009/03/27 15:00:20| FD 14
Closing ICP connection
2009/03/27 15:00:20| FD 15
Closing HTCP socket
2009/03/27 15:00:20| FD 17
Closing SNMP socket
2009/03/27 15:00:20| Cache dir
'c:/squid/var/cache' size remains
unchanged at 102400 KB
2009/03/27 15:00:20|
parseConfigFile: line 2972 unrecognized:
'delay_pools 5'
2009/03/27 15:00:20|
parseConfigFile: line 2974 unrecognized:
'delay_class 1 1'
2009/03/27 15:00:20|
parseConfigFile: line 2975 unrecognized:
'delay_class 2 1'
2009/03/27 15:00:20|
parseConfigFile: line 2976 unrecognized:
'delay_class 3 2'
2009/03/27 15:00:20|
parseConfigFile: line 2977 unrecognized:
'delay_class 4 1'
2009/03/27 15:00:20|
parseConfigFile: line 2978 unrecognized:
'delay_class 5 1'
2009/03/27 15:00:20|
parseConfigFile: line 2980 unrecognized:
'delay_access 1 allow media'
2009/03/27 15:00:20|
parseConfigFile: line 2981 unrecognized:
'delay_access 1 deny all'
2009/03/27 15:00:20|
parseConfigFile: line 2982 unrecognized:
'delay_access 2 allow
leechers'
2009/03/27 15:00:20|
parseConfigFile: line 2983 unrecognized:
'delay_access 2 deny all'
2009/03/27 15:00:20|
parseConfigFile: line 2984 unrecognized:
'delay_access 3 allow limited'
2009/03/27 15:00:20|
parseConfigFile: line 2985 unrecognized:
'delay_access 3 deny all'
2009/03/27 15:00:20|
parseConfigFile: line 2986 unrecognized:
'delay_access 4 allow
office_net'
2009/03/27 15:00:20|
parseConfigFile: line 2987 unrecognized:
'delay_access 4 deny all'
2009/03/27 15:00:20|
parseConfigFile: line 2988 unrecognized:
'delay_access 5 allow
unlim_ip'
2009/03/27 15:00:20|
parseConfigFile: line 2989 unrecognized:
'delay_access 5 deny all'
2009/03/27 15:00:20|
parseConfigFile: line 2991 unrecognized:
'delay_parameters 1
16000/16000'
2009/03/27 15:00:20|
parseConfigFile: line 2992 unrecognized:
'delay_parameters 2
16000/16000'
2009/03/27 15:00:20|
parseConfigFile: line 2993 unrecognized:
'delay_parameters 3 32000/32000
8000/8000'
2009/03/27 15:00:20|
parseConfigFile: line 2994 unrecognized:
'delay_parameters 4
128000/128000 # 1Mbit to all'
2009/03/27 15:00:20|
parseConfigFile: line 2995 unrecognized:
'delay_parameters 5 -1/-1 #
2Mbit to all'
2009/03/27 15:00:20| User-Agent
logging is disabled.
2009/03/27 15:00:20| Referer
logging is disabled.
2009/03/27 15:00:20| DNS Socket
created at 0.0.0.0, port 48960,
FD 10
2009/03/27 15:00:20| Adding
nameserver 192.168.1.1 from
squid.conf
2009/03/27 15:00:20| Accepting
proxy HTTP connections at
0.0.0.0, port 3128, FD 11.
2009/03/27 15:00:20| Accepting
ICP messages at 0.0.0.0, port
3130, FD 14.
2009/03/27 15:00:20| Accepting
HTCP messages on port 4827, FD
15.
2009/03/27 15:00:20| Accepting
SNMP messages on port 3401, FD
16.
2009/03/27 15:00:20| Outgoing
SNMP messages on port 3401, FD 17.
2009/03/27 15:00:20| Loaded
Icons.
2009/03/27 15:00:20| Ready to
serve requests.
I'll be appreciated for any help!
--
Please be using
Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
Current Beta Squid 3.1.0.6