fabiorvs
(usa Slackware)
Enviado em 30/03/2009 - 21:41h
Boa noite pessoal,
Estou com problema no squid, chega uma hora que ele fica muito lento, tenho em torno de 800 computadores em rede, meu servidor é um HP ML350 dual Xeon Quad 1.6 com 2 Gb de RAM, tenho um link de 10 megas, mas esta muito lento, se tiro o squid e faço um NAT fica rapidinho, fiz varias alterações nele mas ainda não resolveu, por favor alguem me ajude.
Segue a parte principal do meu squid.conf
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
detect_broken_pconn on
pipeline_prefetch on
broken_vary_encoding allow apache
cache_mem 512 MB
cache_swap_low 95
cache_swap_high 98
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 16384 KB
maximum_object_size_in_memory 100 KB
#logformat MEU_LOG IP do cliente: %>a - Username: %un - Horario: [%tl] - Metodo: %rm - URL: %ru - Status HTTP: %Hs - Status Squid: %Ss
#access_log /var/log/squid/gerencia.log MEU_LOG
access_log /var/log/squid/access.log squid
#cache_dir diskd /var/spool/squid 2048 16 256
cache_dir diskd /var/spool/squid01 1024 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid02 1024 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid03 1024 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid04 1024 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid05 1024 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid06 1024 16 256 Q1=64 Q2=72
#dns_nameservers 172.17.0.1
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 SSL_ports port 443 81 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 81 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
############### Autenticacao ###########################
auth_param basic program /usr/lib/squid/msnt_auth
auth_param basic children 8
auth_param basic realm Lab. Info. Unicsul >> ENTRE COM SEU LOGIN E SENHA (O MESMO UTILIZADO PARA LOGAR NOS COMPUTADORES)
auth_param basic credentialsttl 5 minutes
acl limit_user max_user_ip -s 1
acl usr_usuario proxy_auth REQUIRED
################################### #####################
...
abs