Difference between revisions of "SQUID Delay Pool Bandwidth"

From MS Computech
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
SQUID Bandwidth control tested on squid 3.1 --[[User:Snifer|Snifer]] 15:27, 10 May 2016 (ICT)
 
SQUID Bandwidth control tested on squid 3.1 --[[User:Snifer|Snifer]] 15:27, 10 May 2016 (ICT)
 
<pre># Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s
 
<pre># Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s
delay_pools 2
+
delay_pools 1
 
delay_class 1 1
 
delay_class 1 1
 
#delay_parameters 2 512000/512000
 
#delay_parameters 2 512000/512000
Line 10: Line 10:
  
 
ทดสอบ
 
ทดสอบ
<pre>[root@sppfw ~]# squidclient -h localhost mgr:delay
+
<pre>[root@1234 ~]# squidclient -h localhost mgr:delay
 
HTTP/1.0 200 OK
 
HTTP/1.0 200 OK
 
Server: squid/3.1.23
 
Server: squid/3.1.23
Line 18: Line 18:
 
Expires: Tue, 10 May 2016 08:25:45 GMT
 
Expires: Tue, 10 May 2016 08:25:45 GMT
 
Last-Modified: Tue, 10 May 2016 08:25:45 GMT
 
Last-Modified: Tue, 10 May 2016 08:25:45 GMT
X-Cache: MISS from spp
+
X-Cache: MISS from 1234
X-Cache-Lookup: MISS from spp:3128
+
X-Cache-Lookup: MISS from 1234:3128
Via: 1.0 spp (squid/3.1.23)
+
Via: 1.0 1234 (squid/3.1.23)
 
Connection: close
 
Connection: close
  
Delay pools configured: 2
+
Delay pools configured: 1
  
 
Pool: 1
 
Pool: 1
Line 32: Line 32:
 
Restore: 32000
 
Restore: 32000
 
Current: -33796915
 
Current: -33796915
 
Misconfigured pool.
 
  
 
Memory Used: 280 bytes
 
Memory Used: 280 bytes
 
</pre>
 
</pre>

Latest revision as of 13:44, 12 May 2016

SQUID Bandwidth control tested on squid 3.1 --Snifer 15:27, 10 May 2016 (ICT)

# Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s
delay_pools 1
delay_class 1 1
#delay_parameters 2 512000/512000
delay_parameters 1 32000/32000
acl YOUTUBE dstdomain .googlevideo.com .dl-one2up.com .4shared.com .mediafire.com
delay_access 1 allow YOUTUBE

ทดสอบ

[root@1234 ~]# squidclient -h localhost mgr:delay
HTTP/1.0 200 OK
Server: squid/3.1.23
Mime-Version: 1.0
Date: Tue, 10 May 2016 08:25:45 GMT
Content-Type: text/plain
Expires: Tue, 10 May 2016 08:25:45 GMT
Last-Modified: Tue, 10 May 2016 08:25:45 GMT
X-Cache: MISS from 1234
X-Cache-Lookup: MISS from 1234:3128
Via: 1.0 1234 (squid/3.1.23)
Connection: close

Delay pools configured: 1

Pool: 1
	Class: 1

	Aggregate:
		Max: 32000
		Restore: 32000
		Current: -33796915

Memory Used: 280 bytes