Search squid archive

Re: Re: Squid monitoring, access report shows upto 5 % to 7 % cache usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Augustus for the email 

my information is 

-------------------

[root@proxy squid]# squidclient -h 127.0.0.1 mgr:storedir
HTTP/1.0 200 OK
Server: squid/3.1.10
Mime-Version: 1.0
Date: Sun, 04 Aug 2013 07:01:30 GMT
Content-Type: text/plain
Expires: Sun, 04 Aug 2013 07:01:30 GMT
Last-Modified: Sun, 04 Aug 2013 07:01:30 GMT
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:3128
Via: 1.0 proxy (squid/3.1.10)
Connection: close

Store Directory Statistics:
Store Entries          : 13649421
Maximum Swap Size      : 583680000 KB
Current Store Swap Size: 250112280 KB
Current Capacity       : 43% used, 57% free

Store Directory #0 (aufs): /opt/var/spool/squid
FS Block Size 4096 Bytes
First level subdirectories: 32
Second level subdirectories: 256
Maximum Size: 583680000 KB
Current Size: 250112280 KB
Percent Used: 42.85%
Filemap bits in use: 13649213 of 16777216 (81%)
Filesystem Space in use: 264249784/854534468 KB (31%)
Filesystem Inodes in use: 13657502/54263808 (25%)
Flags: SELECTED
Removal policy: lru
LRU reference age: 44.69 days

--------------

and my squid.conf is as 

----------------------------------------------

always_direct allow all
cache_log           /opt/var/log/squid/cache.log
cache_access_log    /opt/var/log/squid/access.log

cache_swap_low 90
cache_swap_high 95

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

acl localnet src 172.16.5.0/24    # RFC1918 possible internal network
acl localnet src 172.17.0.0/22    # RFC1918 possible internal network
acl localnet src 192.168.20.0/24    # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
always_direct allow local-servers

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

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports


acl ipgroup src 172.16.5.1-172.16.5.255/32
acl ipgroup src 172.17.0.10-172.17.3.254/32
delay_pools 1
delay_class 1 2 
delay_parameters 1 2560000/3860000 140000/180000
delay_access 1 allow ipgroup
delay_access 1 deny all

http_access allow localnet
http_access allow localhost
http_access allow localnet
http_access allow localhost

http_access deny all

http_port 3128 transparent

hierarchy_stoplist cgi-bin ?

cache_dir aufs /opt/var/spool/squid 570000 32 256

coredump_dir /opt/var/spool/squid


maximum_object_size 4 GB


refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private

refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320

refresh_pattern ^ftp:        1440    20%    10080
refresh_pattern ^gopher:    1440    0%    1440
refresh_pattern -i (/cgi-bin/|\?) 0    0%    0
refresh_pattern .        0    40%    40320


visible_hostname proxy

icap_enable on
icap_preview_enable on
icap_preview_size 4096
icap_persistent_connections on
icap_send_client_ip on
icap_send_client_username on
icap_service qlproxy1 reqmod_precache bypass=0 icap://127.0.0.1:1344/reqmod
icap_service qlproxy2 respmod_precache bypass=0 icap://127.0.0.1:1344/respmod
adaptation_access qlproxy1 allow all
adaptation_access qlproxy2 allow all
------------------------------------------------------------------------
Guidance and advice requested

Thanks for the reply
Joseph John





----- Original Message -----
From: babajaga <augustus_meyer@xxxxxxxx>
To: squid-users@xxxxxxxxxxxxxxx
Cc: 
Sent: Thursday, 1 August 2013 2:11 PM
Subject:  Re: Squid monitoring, access report shows upto 5 % to 7 %  cache usage

The relatively low byte-hitrate gives the idea, that somewhere in your
squid.conf there is a limitation on the max. objects size to be cached. It
might be a good idea, to modify this one, to a larger value.
Caus it seems, you still have a lot of disk space available for caching.
So you might post your squid.conf here.

And, the output of
squidclient -h 127.0.0.1 mgr:storedir





--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-monitoring-access-report-shows-upto-5-to-7-cache-usage-tp4661301p4661399.html
Sent from the Squid - Users mailing list archive at Nabble.com.






[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux