sandro.gomez
(usa RedHat)
Enviado em 24/09/2008 - 11:01h
Bom dia galera,
Seguinte. Tenho um servidor iptalbe\squid, esse cara possui 1,5Gb de RAM. Tenho notado que em alguns momentos o squid fica meio lento, percebi que acessando a net direto está mais rápido que pelo squid. Alguém teria alguma dica para melhorar a performace do meu servidor. Estou usuando GNU\Debian 4.0.
Segue a configuração do meu squid.conf
################### SERVIDOR PROXY #######################
http_port 3128
visible_hostname firewall02
################### CONFIGURCAO SQUID ####################
cache_mem 32 MB
maximum_object_size_in_memory 1000 KB
maximum_object_size 512 KB
minimum_object_size 0 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
half_closed_clients off
cache_swap_low 90
cache_swap_high 95
cache_dir diskd /var/spool/squid/squid01 100 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/squid02 100 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/squid03 100 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/squid04 100 16 256 Q1=64 Q2=72
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
##################### REGRAS DE ACESSO ###################
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl redelocal src 192.168.147.0/24
acl localhost src 127.0.0.1/255.255.255.255
http_access allow manager localhost
http_access allow manager
###################### BLOQUEIO DE SITES #################
acl proibidos dstdom_regex "/etc/squid/proibidos"
http_access deny proibidos
#################### LIBERACAO REDES #####################
http_access allow localhost
http_access allow redelocal
http_access deny all
Obrigado.