+ Responder ao Tópico



  1. Citação Postado originalmente por lfernandosg Ver Post
    blz...alvernepaiva,

    fiz uns testes no squid para ver o cache das páginas e estou achando algo estranho por exemplo acessei esse fórum depois fechei limpei o cache do meu navegador e acessei novamente e não pega nada do cache:

    1233235942.649 11 10.0.1.68 TCP_IMS_HIT/304 360 GET http://10.0.1.254/images_squid/nova.jpg - NONE/- image/jpeg
    1233235942.651 1 10.0.1.68 TCP_IMS_HIT/304 359 GET http://10.0.1.254/images_squid/gif.internet.gif - NONE/- image/gif
    1233235942.705 320 10.0.1.26 TCP_MISS/200 438 GET https://under-linux.org/forums/clear.gif fernando DIRECT/74.86.235.216 image/gif
    1233235942.714 318 10.0.1.26 TCP_MISS/200 451 GET https://under-linux.org/forums/image...or/menupop.gif fernando DIRECT/74.86.235.216 image/gif
    1233235942.987 272 10.0.1.26 TCP_MISS/200 591 GET https://under-linux.org/forums/image...createlink.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.080 342 10.0.1.26 TCP_MISS/200 545 GET https://under-linux.org/forums/image...nsertimage.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.090 352 10.0.1.26 TCP_MISS/200 518 GET https://under-linux.org/forums/images/editor/quote.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.199 461 10.0.1.26 TCP_MISS/200 494 GET https://under-linux.org/forums/image...r/spelling.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.221 234 10.0.1.26 TCP_MISS/200 456 GET https://under-linux.org/forums/image...r/resize_0.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.243 685 10.0.1.68 TCP_MISS/200 464 POST http://207.46.110.66/gateway/gateway...342.1988634634 marcossa DIRECT/207.46.110.66 application/x-msn-messenger
    1233235943.320 240 10.0.1.26 TCP_MISS/200 456 GET https://under-linux.org/forums/image...r/resize_1.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.333 242 10.0.1.26 TCP_MISS/200 523 GET https://under-linux.org/forums/image...switchmode.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.569 369 10.0.1.26 TCP_MISS/200 1470 GET https://under-linux.org/forums/image...ns/printer.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.570 348 10.0.1.26 TCP_MISS/200 1523 GET https://under-linux.org/forums/image...ndtofriend.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.571 250 10.0.1.26 TCP_MISS/200 1500 GET https://under-linux.org/forums/image.../subscribe.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.584 251 10.0.1.26 TCP_MISS/200 1678 GET https://under-linux.org/forums/image...g/rating_5.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.834 591 10.0.1.68 TCP_MISS/200 453 POST http://207.46.110.66/gateway/gateway...0342.832528555 marcossa DIRECT/207.46.110.66 application/x-msn-messenger
    1233235943.923 339 10.0.1.26 TCP_MISS/200 1588 GET https://under-linux.org/forums/image...g/rating_4.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.944 274 10.0.1.26 TCP_MISS/200 1487 GET https://under-linux.org/forums/image...g/rating_3.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.944 274 10.0.1.26 TCP_MISS/200 938 GET https://under-linux.org/forums/image...g/rating_1.gif fernando DIRECT/74.86.235.216 image/gif
    1233235943.949 278 10.0.1.26 TCP_MISS/200 992 GET https://under-linux.org/forums/image...g/rating_2.gif fernando DIRECT/74.86.235.216 image/gif


    isso aconteceu com outros sites que são muito acessados por aqui como bradesco, banco do brasil...só aparece TCP_MISS aparece muito pouco TCP_HIT

    Procure alguma documentação di squid que fale a respeito dos parâmetros cache_mem, maximum_object_size,minimun_object_size e maximun_object_size_in_memory.
    Isto pode ajudar a resolver esse problema e aumentar a eficiência do seu cache.

    Você pode ver esse uso do cache com o programa SARG , se não tiver instalado instale.Na colula IN-CACHE-OUT do relatório ele mostra quanto cada usuário usou de cache e quanto ele baixou no link e também quanto de um site específico veio do cache.

  2. eu já uso o sarg...abaixo segue meu squid:


    #NOME DO SERVIDOR#####################################################
    visible_hostname DebianLinux
    ######################################################################
    #IP+PORTA USADA ####################################################
    http_port 10.0.1.254:3128
    ######################################################################
    icp_port 0
    ######################################################################
    #CACHE USADO RAM)###########################################
    cache_mem 256 MB
    ######################################################################
    #Cache Swap###########################################################
    cache_swap_low 80
    cache_swap_high 90
    ######################################################################
    #OBJECT_SIZE##########################################################
    maximum_object_size 8192 KB
    minimum_object_size 0 KB
    #tamanho m�ximo dos objetos alocados na mem�ria.
    maximum_object_size_in_memory 256 KB
    ######################################################################
    #DIRETORIOS DO CACHE MULTIPLOS########################################
    cache_dir aufs /var/cachesquid1 5000 128 512
    #cache_dir aufs /var/cachesquid2 2900 128 512
    #cache_dir aufs /var/cachesquid3 2900 128 512
    #cache_dir aufs /var/cachesquid4 2900 128 512
    #cache_dir aufs /var/cachesquid5 2900 128 512
    # Resolve um problema com conex�es persistentes que ocorre com certos servidores,
    # e que provoca delays em nosso cache.
    detect_broken_pconn on

    # Provoca um ganho de performance ao usar conex�es Pipeline (requisi��es em
    # paralelo)
    pipeline_prefetch on

    #####################################################################
    #LOGS################################################################
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log none
    #####################################################################
    #REGRAS GERAIS###################################
    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 SSL_ports port 443 4243 563
    acl Safe_ports port 80 21 443 563 70 210 1025-65535
    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 allow localhost


    refresh_pattern ^ftp: 15 20% 2280
    refresh_pattern ^gopher: 15 0% 2280
    refresh_pattern . 15 20% 2280


    #ZPH cache FULL
    zph_local 0x60
    zph_mode tos
    zph_option 136
    zph_parent 0
    zph_sibling 0


    "aqui ficam os usuários autenticados"

    #LIBERAR AUTENTICACAO################################################
    acl autenticados proxy_auth REQUIRED
    http_access allow autenticados
    #####################################################################
    #BLOQUEIA TUDO#######################################################
    http_access deny all
    #####################################################################
    miss_access allow all
    cache_mgr root
    memory_pools on
    #####################################################################



    pela usa experiência o que eu poderia mudar visto que meu haradware é:

    P4 2.66Ghz/1GB/80GB sata

    # Resolve um problema com conex�es persistentes que ocorre com certos servidores,
    # e que provoca delays em nosso cache.
    detect_broken_pconn on

    # Provoca um ganho de performance ao usar conex�es Pipeline (requisi��es em
    # paralelo)
    pipeline_prefetch on
    essas linhas acima coloquei antes de ontem e hoje parei d epingar no ip externo do servidor e tive que reiniciar para voltar a funcionar...não sei se foi isso mas dizem que aumentar a peformace mas não notei diferença na peformace.


    abaixo um pedaço do meu sarg tirado hoje:


    Topsites Sites & Users Downloads Denied Authentication Failures
    NUM
    USERID CONNECT BYTES %BYTES IN-CACHE-OUT ELAPSED TIME MILISEC %TIME 1 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png georgy 1.44K 60.86M 44.00% 0.09% 99.91% 00:37:01 2,221,883 5.16% 2 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.76 577 21.47M 15.52% 0.44% 99.56% 00:22:04 1,324,576 3.07% 3 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png fernando 282 15.50M 11.21% 0.37% 99.63% 00:31:09 1,869,857 4.34% 4 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.1 716 13.25M 9.58% 48.20% 51.80% 00:09:24 564,364 1.31% 5 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.4 1.36K 8.45M 6.11% 0.86% 99.14% 00:09:02 542,043 1.26% 6 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png luiz.roma 722 3.32M 2.41% 11.57% 88.43% 00:04:07 247,049 0.57% 7 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png natasha 321 2.75M 1.99% 30.76% 69.24% 00:03:53 233,365 0.54% 8 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.50 194 2.28M 1.65% 42.32% 57.68% 00:08:38 518,837 1.20% 9 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png marcossa 97 2.17M 1.57% 1.96% 98.04% 00:22:05 1,325,473 3.08% 10 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.45 846 1.95M 1.41% 6.21% 93.79% 00:05:01 301,860 0.70% 11 https://under-linux.org/../images/graph.png https://under-linux.org/../images/datetime.png 10.0.1.110 130 1.08M 0.78% 24.33% 75.67% 00:07:37 457,638 1.06


    o IN-CACHE-OUT tem sempre valores maiores
    Última edição por lfernandosg; 30-01-2009 às 11:22.



  3. Estava tudo normal semana passada conseguir colocar o cache full e hoje coloquei mais 512mb de memória no servidor então ele iniciou normal mas depois de um tempo vi que a internet estava caindo e eu não conseguia mais pingar no ip interno do server e quando coloquei o monitor no servidor que que tinha vários erros relacionados a placa de rede externa do servidor:


    eth0: transmit error, TX status register ff.
    flasgs; bus-master 1, dirty 3448(8) current 3448(8)
    transmit list ffff vs. df 82e700
    eth0: host error, fifo diagnostic register ffff.

    o que pode ser isso pois mesmo desabilitando o script da placa de rede externa continuou ai tive que desabilitar o da placa de rede interna e até agora o problema não voltou mas o que tem isso haver se estava tudo normal com os scripts e rodando há alguns dias já até porque a placa de rede que está com cache full é a interna eth1.

  4. já resolvi o problema da placa..troquei por intel..sobre o squid.conf alguém pode me ajudar pois es'ta muito pouco o acesso ao cache das páginas.



  5. Talvez seja refresh_pattern, olha minhas regras e tenta ver como adaptar:

    refresh_pattern -i \.(gif|jpg|jpeg|bmp|png|ico)$ 0 99% 432000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private

    refresh_pattern -i \.(css|htm|html|js|jsp|xml)$ 0 99% 432000 override-expire override-lastmod reload-into-ims ignore-reload

    refresh_pattern ^http:// 30 40% 20160

    refresh_pattern ^ftp:// 30 50% 20160

    refresh_pattern ^gopher:// 30 40% 20160

    refresh_pattern -i \.swf$ 0 100% 999999 override-expire override-lastmod reload-into-ims ignore-reload
    refresh_pattern . 1440 100% 1440 override-expire override-lastmod reload-into-ims ignore-reload
    refresh_pattern -i \.flv$ 10080 90% 999999 override-expire ignore-no-cache ignore-private






Tópicos Similares

  1. Diferença com e sem ZPH
    Por Elliott no fórum Servidores de Rede
    Respostas: 7
    Último Post: 23-04-2008, 13:10
  2. hotspot qual o segredo?
    Por daniloacr no fórum Redes
    Respostas: 6
    Último Post: 11-03-2008, 00:48
  3. zph=tos_hit_tos + squid + htb
    Por megatek no fórum Servidores de Rede
    Respostas: 6
    Último Post: 09-06-2007, 01:15
  4. O segredo que ninguém fala... rssss
    Por adelsonbbg no fórum Servidores de Rede
    Respostas: 7
    Último Post: 06-03-2007, 10:36
  5. Link Dedicado Qual segredo ????
    Por adelsonbbg no fórum Redes
    Respostas: 6
    Último Post: 18-02-2007, 14:06

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L