User Tools

Site Tools


misc:2015brainstormpress

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
misc:2015brainstormpress [2015/02/20 15:22]
tschulz [Other Squid configs]
misc:2015brainstormpress [2015/02/20 15:40]
tschulz [Cache Setup]
Line 23: Line 23:
   * Squid 3.4 or higher (3.5.1 compiled/​sorry no package:))   * Squid 3.4 or higher (3.5.1 compiled/​sorry no package:))
   * recommend setting up cache server as transparent proxy (enable IPv4 packet forwarding, forward port 80 to squid)   * recommend setting up cache server as transparent proxy (enable IPv4 packet forwarding, forward port 80 to squid)
 +  * ZFS raidz works really well for cache store
  
 ===== Squid notable config changes ===== ===== Squid notable config changes =====
-  * <​file>​http_port 3129 intercept</​file>​ +  * Enable Transparent Proxying<​file>​http_port 3129 intercept</​file>​ 
-  * <​file>​maximum_object_size 5000 MB+  * Set Max Object Size to something large<​file>​maximum_object_size 5000 MB
 range_offset_limit -1 range_offset_limit -1
 quick_abort_min -1 KB quick_abort_min -1 KB
 </​file>​ </​file>​
-  * <​file>​cache_dir ufs /​var/​spool/​squid 50000 16 256</​file>​ +  * Set a large cache store<​file>​cache_dir ufs /​var/​spool/​squid 50000 16 256</​file>​ 
-  * <​file>​acl updatesites dstdom_regex "/​etc/​squid/​updatesites.txt"​+  * Only allow caching from update sites<​file>​acl updatesites dstdom_regex "/​etc/​squid/​updatesites.txt"​
  
 cache allow updatesites cache allow updatesites
 cache deny all</​file>​ cache deny all</​file>​
-  * <​file>​store_id_access allow updatesites+  * Setup store_id for CDN Matching<​file>​store_id_access allow updatesites
 #​store_id_access allow steamcdn #​store_id_access allow steamcdn
 store_id_access deny all store_id_access deny all
 store_id_program /​usr/​lib/​squid/​storeid_file_rewrite /​etc/​squid/​storeid_rewrite.conf store_id_program /​usr/​lib/​squid/​storeid_file_rewrite /​etc/​squid/​storeid_rewrite.conf
 store_id_children 10 startup=3 idle=1 concurrency=0</​file>​ store_id_children 10 startup=3 idle=1 concurrency=0</​file>​
-  * <​file>​refresh_pattern ([^.]+.|)adobe.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overr+  * Override Cache timeouts and other cache HTTP headers<​file>​refresh_pattern ([^.]+.|)adobe.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overr
 refresh_pattern ([^.]+.|)java.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overri refresh_pattern ([^.]+.|)java.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overri
 refresh_pattern ([^.]+.|)sun.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overrid refresh_pattern ([^.]+.|)sun.com/​.*\.(zip|exe) 43200 100% 43200 reload-into-ims ignore-reload ignore-no-store override-expire overrid
Line 86: Line 87:
 ...</​file>​ ...</​file>​
  
 +
 +===== Detailed Caching Install Notes =====
 +[[web_services:​squid_update_cache|Squid Based Update Cache (Ubuntu 12.04)]]
    
misc/2015brainstormpress.txt · Last modified: 2015/02/20 15:41 by tschulz