From 69645670dbac91bbc6eff5846124fb68f6458c9f Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Fri, 13 Apr 2012 20:11:05 -0300 Subject: squid3 - merge squid3 and squid-reverse in one package --- config/squid-reverse/squid_cache.xml | 180 ++++++++++++++++++++--------------- 1 file changed, 103 insertions(+), 77 deletions(-) (limited to 'config/squid-reverse/squid_cache.xml') diff --git a/config/squid-reverse/squid_cache.xml b/config/squid-reverse/squid_cache.xml index beafa5dd..ce7bd585 100644 --- a/config/squid-reverse/squid_cache.xml +++ b/config/squid-reverse/squid_cache.xml @@ -50,21 +50,21 @@ Proxy server: Cache management squid.inc - + General /pkg_edit.php?xml=squid.xml&id=0 - Upstream Proxy + Upstream /pkg_edit.php?xml=squid_upstream.xml&id=0 - Cache Mgmt + Cache /pkg_edit.php?xml=squid_cache.xml&id=0 - Access Control + ACLs /pkg_edit.php?xml=squid_nac.xml&id=0 @@ -72,25 +72,86 @@ /pkg_edit.php?xml=squid_traffic.xml&id=0 - Reverse Settings - /pkg_edit.php?xml=squid_reverse.xml&id=0 - - - Auth Settings + Authentication /pkg_edit.php?xml=squid_auth.xml&id=0 - Local Users + Users /pkg.php?xml=squid_users.xml + + Sync + /pkg_edit.php?xml=squid_sync.xml + + + Squid Cache General Settings + listtopic + + + Cache replacement policy + cache_replacement_policy + The cache replacement policy decides which objects will remain in cache and which objects are replaced to create space for the new objects. The default policy for cache replacement is LFUDA. Please see the type descriptions specified in the memory replacement policy for additional detail. + select + heap LFUDA + + + + + + + + + Low-water-mark in % + cache_swap_low + Cache replacement begins when the swap usage is above the low-low-water mark and attempts to maintain utilisation near the low-water-mark. + input + 5 + 90 + + + High-water-mark in % + cache_swap_high + As swap utilisation gets close to the high-water-mark object eviction becomes more aggressive. + input + 5 + 95 + + + Do not cache + donotcache + Enter each domain or IP address on a new line that should never be cached. + textarea + 50 + 5 + base64 + + + Enable offline mode + enable_offline + Enable this option and the proxy server will never try to validate cached objects. The offline mode gives access to more cached information than the proposed feature would allow (stale cached versions, where the origin server should have been contacted). + checkbox + + + + External Cache-Managers + ext_cachemanager + Enter the IPs for the external Cache Managers to be allowed here, separated by semi-colons (;). + input + 60 + + + Squid Hard disk cacheSettings + listtopic + Hard disk cache size harddisk_cache_size This is the amount of disk space (in megabytes) to use for cached objects. input + 10 100 @@ -106,6 +167,22 @@ + + Level 1 subdirectories + level1_subdirs + Each level-1 directory contains 256 subdirectories, so a value of 256 level-1 directories will use a total of 65536 directories for the hard disk cache. This will significantly slow down the startup process of the proxy service, but can speed up the caching under certain conditions. + select + 16 + + + + + + + + + + Hard disk cache location harddisk_cache_location @@ -115,20 +192,13 @@ /var/squid/cache - - Memory cache size - memory_cache_size - This is the amount of physical RAM (in megabytes) to be used for negative cache and in-transit objects. This value should not exceed more than 50% of the installed RAM. The minimum value is 1MB. - input - - 8 - Minimum object size minimum_object_size Objects smaller than the size specified (in kilobytes) will not be saved on disk. The default value is 0, meaning there is no minimum. input + 10 0 @@ -137,32 +207,31 @@ Objects larger than the size specified (in kilobytes) will not be saved on disk. If you wish to increase speed more than you want to save bandwidth, this should be set to a low value. input + 10 4 + + Squid Memory Cache Settings + listtopic + + + Memory cache size + memory_cache_size + This is the amount of physical RAM (in megabytes) to be used for negative cache and in-transit objects. This value should not exceed more than 50% of the installed RAM. The minimum value is 1MB. + input + 10 + + 8 + Maximum object size in RAM maximum_objsize_in_mem Objects smaller than the size specified (in kilobytes) will be saved in RAM. Default is 32. input + 10 32 - - Level 1 subdirectories - level1_subdirs - Each level-1 directory contains 256 subdirectories, so a value of 256 level-1 directories will use a total of 65536 directories for the hard disk cache. This will significantly slow down the startup process of the proxy service, but can speed up the caching under certain conditions. - select - 16 - - - - - - - - - - Memory replacement policy memory_replacement_policy @@ -176,49 +245,6 @@ - - Cache replacement policy - cache_replacement_policy - The cache replacement policy decides which objects will remain in cache and which objects are replaced to create space for the new objects. The default policy for cache replacement is LFUDA. Please see the type descriptions specified in the memory replacement policy for additional detail. - select - heap LFUDA - - - - - - - - - Low-water-mark in % - cache_swap_low - Cache replacement begins when the swap usage is above the low-low-water mark and attempts to maintain utilisation near the low-water-mark. - input - 90 - - - High-water-mark in % - cache_swap_high - As swap utilisation gets close to the high-water-mark object eviction becomes more aggressive. - input - 95 - - - Do not cache - donotcache - Enter each domain or IP address on a new line that should never be cached. - textarea - 50 - 5 - base64 - - - Enable offline mode - enable_offline - Enable this option and the proxy server will never try to validate cached objects. The offline mode gives access to more cached information than the proposed feature would allow (stale cached versions, where the origin server should have been contacted). - checkbox - - if($_POST['harddisk_cache_size'] != $config['installedpackages']['squidcache']['config'][0]['harddisk_cache_size']) { -- cgit v1.2.3