[FUG-BR] RES: Problemas com cache usando Lusca e freebsd 8.0 64bts

João Luiz Pedrosa Viana jviana em vespanet.com.br
Quarta Maio 5 09:27:42 BRT 2010


Bom dia,

Quanto de memoria tem essa maquina?

João Luiz Pedrosa Viana
http://www.vespanet.com.br
http://www.jviana.eti.br
MSN: jviana em bsdmail.com
Skype: jviana
(31)8661-4232


Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial e seu conteúdo é para
conhecimento exclusivo do destinatário. O seu uso, divulgação, reprodução
e/ou cópia são proibidos.


This message is intended only for the individual or organization to which it
is addressed and contains confidential and privileged
information. Any retransmission, dissemination or other use of this
information by anyone other than the intended recipient is prohibited.
 


-----Mensagem original-----
De: freebsd-bounces em fug.com.br [mailto:freebsd-bounces em fug.com.br] Em nome
de Joao Pedro Paula Pannain Souza
Enviada em: terça-feira, 4 de maio de 2010 21:23
Para: freebsd em fug.com.br
Assunto: [FUG-BR] Problemas com cache usando Lusca e freebsd 8.0 64bts

Boa noite,
por favor me ajudem. instalei e configurei um servidor de cache. Durante o
dia quando a carga de trabolho é pequena ele funciona muito bem.
Porém quando muitos usuarios fazem requisiçoes ele vem demostrando um
comportamento anormal gerando muita lentidao na rede.
Acompanhando o trafego na placa de rede percebemos q ele vai de 30 mb a 1 mb
e vouta a subir em menos de 5 segundos.
 Segue minha configuraçao  = squid.conf
acl all src all
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
acl Safe_ports port 80          # 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 CONNECT method CONNECT
acl provedor src 192.168.0.0/16
acl provedor src 10.0.0.0/8
acl provedor src 127.0.0.1/32

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow provedor
http_access deny all
icp_access allow provedor
icp_access deny all
# htcp_access allow provedor
# htcp_access deny all
# miss_access allow all
http_port 3128 transparent
zph_mode tos
zph_local 0x10
# zph_sibling 0
# zph_parent 0
cache_mem 3072 MB
maximum_object_size_in_memory 150 KB
cache_replacement_policy heap LFUDA
cache_dir aufs /cache/hd1 100000 16 256
cache_dir aufs /cache/hd2 100000 16 256
cache_dir aufs /cache/hd3 100000 16 256
cache_dir aufs /cache/hd4 100000 16 256
cache_dir aufs /cache/hd5 100000 16 256
cache_dir aufs /cache/hd6 100000 16 256
maximum_object_size 700 MB
access_log none
logfile_daemon /usr/local/lusca/libexec/logfile-daemon
cache_log /var/log/squid/cache.log
cache_store_log none
logfile_rotate 10
pid_filename /usr/local/lusca/squid.pid
debug_options ALL,1
log_fqdn off
client_netmask 255.255.255.255
netdb_filename /usr/local/lusca/netdb/netdb.state
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_effective_user squid
cache_effective_group squid
httpd_suppress_version_string on
coredump_dir /usr/local/lusca
visible_hostname xxxxxxxxxxxxxx
icp_port 0
htcp_port 0
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd



Mais detalhes sobre a lista de discussão freebsd