+ Responder ao Tópico



  1. #1
    maverick_cba
    Visitante

    Padrão Cache do squid não para de crescer!!!

    Pessoal, seguinte preciso da ajuda de vocês. O que acontece é o seguinte, meu cache squid está muito louco, o seu cache vai crescendo como um bolo e não para. Tipo quando limpo todo a pasta do cache, fico com aproximadamente 17GB de espaço, depois de aproximadamente 2 meses ele para. Motivo: 17 GB de cache na pasta.

    Agora lhes pergunto porque isso ocorre, já que não tem nada a ver com log.

    Abaixo segue o meu squid.conf

    Código :
    http_port 3128
     
    hierarchy_stoplist cgi-bin ? php asp jsp cfm
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    cache_mem 128 MB
    maximum_object_size 3000 KB
     
    logfile_rotate 10
     
    cache_dir diskd /usr/local/squid/var/cache 35000 16 256 Q1=64 Q2=72
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log /var/log/squid/store.log
    cache_effective_user squid
    cache_effective_group squid
    pid_filename /var/run/squid.pid
     
    #emulate_httpd_log on
     
    refresh_pattern ^ftp:           1440    20%     10080
    refresh_pattern ^gopher:        1440    0%      1440
    refresh_pattern .               0       20%     4320
     
    acl minharede src 10.10.0.0/16
    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 563
    acl Safe_ports port 80          # http
    acl Safe_ports port 21          # ftp
    acl Safe_ports port 443 563     # https, snews
    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
    [http_access allow minharede
    http_access allow localhost
    http_access deny all
    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all
     
    http_reply_access allow all
     
    icp_access allow all
    cache_mgr [email][email protected][/email]
     
    visible_hostname meuproxy
     
    httpd_accel_port 80
    httpd_accel_host virtual
    httpd_accel_single_host off
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
    error_directory /usr/local/squid/share/errors/Portuguese

  2. #2
    cag
    Visitante

    Padrão Cache do squid não para de crescer!!!

    cache_dir diskd /usr/local/squid/var/cache 35000 16 256

    Seu cache está para 35gb.

    Diminui isso, depois crie o cache novamente.

    valeu

  3. #3
    eric_lc
    Visitante

    Padrão Cache do squid não para de crescer!!!

    Deixa a linha assim: cache_dir diskd /usr/local/squid/var/cache 10000 16 256
    Pra reduzir o cache pra 10GB

  4. #4
    maverick_cba
    Visitante

    Padrão Cache do squid não para de crescer!!!

    Valew galera, realmente não sabia desse macete do diskd. Muito obrigado a todos.