luizcampos
(usa Red Hat)
Enviado em 11/11/2010 - 21:12h
Boa noite!!
Bom pessoal tenho squid instalado no centos 5 UP 5 64 bits, porém está muito lento...
Verifiquei que ele armazena em cache, porém não está sendo utilzado.
segue log:
1289516323.040 77 192.168.0.68 TCP_MISS/200 316 GET
http://201.29.244.64/din.aspx? - DIRECT/201.29.244.64 application/octet-stream
1289516323.383 327 192.168.0.68 TCP_MISS/200 342 GET
http://201.29.244.64/din.aspx? - DIRECT/201.29.244.64 application/octet-stream
1289516324.557 2492 192.168.0.96 TCP_MISS/200 5126 GET
http://www1.caixa.gov.br/imprensa/flash.asp - DIRECT/200.201.166.240 text/html
Configuração do squid.conf
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 1024 MB
cache_swap_low 85
cache_swap_high 95
cache_effective_user squid squid
maximum_object_size 150 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 500 KB
cache_dir ufs /usr/local/squid/var/cache 20480 16 128
#cache_replacement_policy heap LFUDA
#memory_replacement_policy heap GDSF
#dns_nameservers 200.252.235.100
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log
coredump_dir /usr/local/squid/var/cache
auth_param basic children 10
auth_param basic realm Dinamica - Web caching server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
cache_effective_user squid
cache_effective_group squid
#acl password proxy_auth REQUIRED
acl password proxy_auth REQUIRED
#acl all src 0.0.0.0/32
acl dinamica src 192.168.0.0/24
acl vip src "/usr/local/squid/etc/vip.txt"
acl block url_regex -i "/usr/local/squid/etc/block.txt"
acl free url_regex -i "/usr/local/squid/etc/free.txt"
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 25 # smtp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 110 # POP
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
1289516327.862 25183 192.168.0.164 TCP_MISS/200 283 GET
http://200.168.24.99/din.aspx? - DIRECT/200.168.24.99 application/octet-stream
1289516331.946 25 192.168.0.96 TCP_MISS/302 576 GET
http://www.caixa.gov.br/_newredirect/barra/r_IBC.asp - DIRECT/200.201.166.200 text/html
1289516340.236 22070 192.168.0.69 TCP_MISS/200 358 GET
http://200.162.107.148/din.aspx? - DIRECT/200.162.107.148 application/octet-stream
1289516344.249 25179 192.168.0.7 TCP_MISS/200 283 GET
http://187.53.154.131/din.aspx? - DIRECT/187.53.154.131 application/octet-stream
1289516348.550 25148 192.168.0.68 TCP_MISS/200 283 GET
http://201.29.244.64/din.aspx? - DIRECT/201.29.244.64 application/octet-stream
1289516353.054 25185 192.168.0.164 TCP_MISS/200 283 GET
http://200.168.24.99/din.aspx? - DIRECT/200.168.24.99 application/octet-stream
1289516358.367 22000 192.168.0.68 TCP_MISS/200 503 GET
http://talkgadget.google.com/talkgadget/channel/test? - DIRECT/74.125.229.1 text/plain
1289516359.799 1362 192.168.0.68 TCP_MISS/200 874 GET
http://talkgadget.google.com/talkgadget/channel/test? - DIRECT/74.125.229.1 text/html
1289516360.368 514 192.168.0.68 TCP_MISS/200 546 POST
http://talkgadget.google.com/talkgadget/channel/bind? - DIRECT/74.125.229.1 text/plain
1289516361.138 367 192.168.0.68 TCP_MISS/200 510 POST
http://talkgadget.google.com/talkgadget/channel/bind? - DIRECT/74.125.229.1 text/plain
1289516361.678 18624 192.168.0.96 TCP_MISS/000 0 GET
http://www.vivaolinux.com.br/artigo/Squid-2.6-+-HTBtools-com-cache-full? - DIRECT/www.vivaolinux.com.br -