我的SQUID设置

2009-05-13 07:18:31来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

http_port 218.26.203.203:80
httpd_accel_host 10.129.28.80
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_with_proxy off
httpd_accel_uses_host_header off
visible_hostname CNC_Garden
cache_mgr
cnc_garden@126.com
maximum_object_size 32768 KB
maximum_object_size_in_memory 128 KB # Cache在memory中最大Object的大小
memory_pools_limit 21 MB # 小对象内存池的大小
cache_dir null /tmp
cache_mem 64 MB
cache_effective_user squid
cache_effective_group squid
acl all src 0.0.0.0/0
acl cnc src 218.26.203.192/28
http_access allow cnc
http_access deny all
cache_access_log /var/log/squid-access.log
cache_log /var/log/squid-cache.log
cache_store_log /var/log/squid-store.log
error_directory /usr/local/etc/squid/errors/Simplify_Chinese
pid_filename /var/run/squid.pid
# Timeouts
read_timeout 5 seconds
half_closed_clients off
connect_timeout 5 seconds
memory_pool_limit并不是小对象池的大小,相当于malloc的cache,squid并不直接对释放的对象调用free操作,而是等到这个大小超过到这个大小超过memory_pool_limit才会真正释放. 感觉比较合适的大小是cache_mem + memory_pool_limit


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32980/showart_258980.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FreeBSD6.2的安装和配置

下一篇:Socket中的TIME_WAIT状态