Search squid archive

Fwd: Re: Time-based shift of bandwidth from delay pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/19/2011 12:51 AM, Amos Jeffries wrote:

 On 19/03/11 07:37, Dayo Adewunmi wrote:
 Hi

 I've got a number of delay pools,one of which is only really used during
 daytime.
 Is there anyway for me to take the bandwidth allocated to that daytime
 pool and assign it to the other pools?

 Not as such. Pools do not "hold" any particular bandwidth. They are
 simply speed-caps on what a particular request may used for its
 duration (some milliseconds).

 It sounds like you want one set of pools during daytime and one set
 during non-daytime.

 Amos

So, I've tried using two sets of delay pools and it causes squid to
crash. Found this error in cache.log:
assertion failed: delay_pools.c:411: "i<  NET_MAP_SZ"

Here are my pools:

acl academic01 time MTWHF 07:00-18:00

acl lan-servers src 172.20.0.0/24       # Servers
acl lan-unknown src 172.20.1.0/24       # Unknown
acl lan-known1 src 172.20.2.0/24        # Knowns
acl lan-known2 src 172.20.3.0/24        # Knowns
acl lan-staff src 172.20.5.0/24         # Staff desktops
acl lan-cc-admins src 172.20.4.1-172.20.4.20 # CC admins

acl local_dest dst 172.20.0.2/32   # Destination fileserver
acl html_pages url_regex -i .html .htm .css .gif .jpe .jpeg .jpg .png .pdf
acl text_pages rep_mime_type -i ^text/ ^image/ ^application/pdf$
^application/xml$

acl hires dstdomain "/etc/squid/hires.dat"
acl hires2 dstdomain "/etc/squid/hires2.dat"


delay_pools 9
delay_initial_bucket_level 100

# Academic time pools
# servers
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 deny lan-unknown
delay_access 1 deny hires
delay_access 1 deny hires2
delay_access 1 deny hogs1
delay_access 1 deny hogs2
delay_access 1 deny hogs3
delay_access 1 deny hogs4
delay_access 1 deny hogs5
delay_access 1 deny hogs6
delay_access 1 allow local_dest
delay_access 1 allow html_pages !lan-unknown
delay_access 1 allow text_pages !lan-unknown
delay_access 1 allow lan-servers !lan-unknown
delay_access 1 deny all

# unknown
delay_class 2 2
delay_parameters 2 10500/10500 3000/5000
delay_access 2 deny hogs1
delay_access 2 deny hogs2
delay_access 2 deny hogs3
delay_access 2 deny hogs4
delay_access 2 deny hogs5
delay_access 2 deny hogs6
delay_access 2 allow lan-unknown
delay_access 2 deny hires
delay_access 2 allow hires2
delay_access 2 deny local_dest
delay_access 2 deny html_pages
delay_access 2 deny text_pages
delay_access 2 deny all

# hogs
delay_class 3 2
delay_parameters 3 800/800 200/300
delay_access 3 deny hires2
delay_access 3 allow hogs1
delay_access 3 allow hogs2
delay_access 3 allow hogs3
delay_access 3 allow hogs4
delay_access 3 allow hogs5
delay_access 3 allow hogs6
delay_access 3 allow hires
delay_access 3 deny all

# known
delay_class 4 3
delay_parameters 4 40000/40000 20000/20000 7000/8000
delay_access 4 deny lan-unknown
delay_access 4 deny hogs1
delay_access 4 deny hogs2
delay_access 4 deny hogs3
delay_access 4 deny hogs4
delay_access 4 deny hogs5
delay_access 4 deny hogs6
delay_access 4 deny hires

delay_access 4 deny hires2
delay_access 4 deny local_dest
delay_access 4 deny html_pages
delay_access 4 deny text_pages
delay_access 4 allow lan-known1 academic01
delay_access 4 allow lan-known2 academic01
delay_access 4 deny all

# staff
delay_class 5 2
delay_parameters 5 71700/71700 8000/100000
delay_access 5 deny lan-unknown
delay_access 5 deny hogs1
delay_access 5 deny hogs2
delay_access 5 deny hogs3
delay_access 5 deny hogs4
delay_access 5 deny hogs5
delay_access 5 deny hogs6
delay_access 5 deny hires
delay_access 5 deny hires2
delay_access 5 deny local_dest
delay_access 5 deny html_pages
delay_access 5 deny text_pages
delay_access 5 allow lan-staff academic01
delay_access 5 deny all

# cc-admins
delay_class 6 2
delay_parameters 6 8072/8072 3500/4036
delay_access 6 deny lan-unknown
delay_access 6 deny lan-known1
delay_access 6 deny lan-known2
delay_access 6 deny lan-staff
delay_access 6 deny hogs1
delay_access 6 deny hogs2
delay_access 6 deny hogs3
delay_access 6 deny hogs4
delay_access 6 deny hogs5
delay_access 6 deny hogs6
delay_access 6 deny hires
delay_access 6 deny hires2
delay_access 6 deny local_dest
delay_access 6 deny html_pages
delay_access 6 deny text_pages
delay_access 6 allow lan-cc-admins academic01
delay_access 6 deny all

# Non-academic time pools
# lan-known non-academic
delay_class 7 3
delay_parameters 4 60000/60000 30000/30000 8000/9000
delay_access 7 deny lan-unknown
delay_access 7 deny hogs1
delay_access 7 deny hogs2
delay_access 7 deny hogs3
delay_access 7 deny hogs4
delay_access 7 deny hogs5
delay_access 7 deny hogs6
delay_access 7 deny hires
delay_access 7 deny hires2
delay_access 7 deny local_dest
delay_access 7 deny html_pages
delay_access 7 deny text_pages
delay_access 7 allow lan-known1 !academic01
delay_access 7 allow lan-known2 !academic01
delay_access 7 deny all

# staff non-academic
delay_class 8 2
delay_parameters 8 41700/41700 8000/100000
delay_access 8 deny lan-unknown
delay_access 8 deny hogs1
delay_access 8 deny hogs2
delay_access 8 deny hogs3
delay_access 8 deny hogs4
delay_access 8 deny hogs5
delay_access 8 deny hogs6
delay_access 8 deny hires
delay_access 8 deny hires2
delay_access 8 deny local_dest
delay_access 8 deny html_pages
delay_access 8 deny text_pages
delay_access 8 allow lan-staff !academic01
delay_access 8 deny all

# cc-admins non-academic
delay_class 9 2
delay_parameters 9 18072/18072 5000/9036
delay_access 9 deny lan-unknown
delay_access 9 deny lan-known1
delay_access 9 deny lan-known2
delay_access 9 deny lan-staff
delay_access 9 deny hogs1
delay_access 9 deny hogs2
delay_access 9 deny hogs3
delay_access 9 deny hogs4
delay_access 9 deny hogs5
delay_access 9 deny hogs6
delay_access 9 deny hires
delay_access 9 deny hires2
delay_access 9 deny local_dest
delay_access 9 deny html_pages
delay_access 9 deny text_pages
delay_access 9 allow lan-cc-admins !academic01
delay_access 9 deny all

Thanks

Dayo



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux