02 December 2009

Performa My Squid on Mandriva Linux

[root@speedy box]# squidclient mgr:info |grep Hit
Request Hit Ratios: 5min: 23.1%, 60min: 37.0%
Byte Hit Ratios: 5min: 30.9%, 60min: 31.8%
Request Memory Hit Ratios: 5min: 9.1%, 60min: 13.5%
Request Disk Hit Ratios: 5min: 68.0%, 60min: 70.3%
Cache Hits: 0.00562 0.00865
Near Hits: 0.15888 0.72387
[root@speedy box]#

squid.conf

---------

http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 64 MB
maximum_object_size 256 MB
minimum_object_size 0 KB

memory_pools off

ipcache_size 2048
ipcache_low 98
ipcache_high 99


cache_dir diskd /var/spool/squid 15000 16 256
cache_store_log none
#cache_access_log /var/log/squid/access.log
cache_access_log none

#cache_mgr bayu
#cachemgr_passwd bayuart

half_closed_clients off

cache_swap_high 99%
cache_swap_low 98%

log_mime_hdrs off
forwarded_for off


quick_abort_min -1 KB
quick_abort_max 0
quick_abort_pct 98

dns_nameservers 127.0.0.1

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours


refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320


refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 0% 4320


half_closed_clients off
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost

#acl browser
acl badbrowser browser MSIE; ^Gator; DAP^
http_access deny badbrowser

acl mynetwork src 10.10.10.0/255.255.255.0
http_access allow mynetwork
http_access allow localnet
http_access allow localhost
http_reply_access allow all
icp_access allow all
visible_hostname Server@kopegtel.net
err_html_text bayuart@gmail.com
deny_info ERR_CUSTOM_ACCESS_DENIED all
memory_pools off
coredump_dir /var/spool/squid
ie_refresh off

#redirect_program /usr/local/adzap/scripts/wrapzap
----------

1 comment:

siaziz said...

mau dunk info nya mas..

[root@aries13 ~]# squidclient mgr:info |grep Hit
Request Hit Ratios: 5min: 3.5%, 60min: 0.8%
Byte Hit Ratios: 5min: 0.3%, 60min: 0.3%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
Request Disk Hit Ratios: 5min: 100.0%, 60min: 84.8%
Cache Hits: 0.00405 0.00179
Near Hits: 0.00000 0.03066

jelek yah hit nya ?
more info pls..