AW: [squid-users] Howto Clear Cache Periodicaly

From: <Werner.Rost@dont-contact.us>
Date: Thu, 13 Apr 2006 08:44:37 +0200

Why are you debugging?

   debug_options ALL,1 33,2

I gues this is one reason for your preformance issues. You should comment out this line.

Mit freundlichem Gruß/Yours sincerely
Werner Rost
GMT-FIR - Netzwerk
 
ZF Boge Elastmetall GmbH
Friesdorfer Str. 175, 53175 Bonn, Deutschland/Germany
Telefon/Phone +49 228 3825 - 420
Telefax/Fax +49 228 3825 - 398
werner.rost@zf.com

>>-----Ursprüngliche Nachricht-----
>>Von: nonama [mailto:sotongtaz@yahoo.com]
>>Gesendet: Donnerstag, 13. April 2006 08:36
>>An: Matus UHLAR - fantomas; squid-users@squid-cache.org
>>Betreff: Re: [squid-users] Howto Clear Cache Periodicaly
>>
>>
>>Hi,
>>I did some testing on the cache, with the config
>>below. So I'm expecting when it reached 89% of cache
>>usage, which is about 2581000kb , the old data will be
>>replaced. How can I see that happening?, because at the
>>moment the cache used size is still increasing. and I also
>>experienced slowness during surfing.
>>
>>
>>Appreciate member's input on this matter. TQ.
>>
>>******************************************
>>[root@Squid squid]# du -ks cache
>>2582756 cache
>>********************************************
>>
>>config..
>>##########################################
>>#
>># Squid Configuration file. ##########################################
>>
>>httpd_accel_host virtual
>>httpd_accel_port 80
>>httpd_accel_with_proxy on
>>httpd_accel_uses_host_header on
>>
>>visible_hostname Main-Data-Server
>>cache_effective_user squid
>>cache_effective_group squid
>>cache_mgr root@Main-Data-Server
>>cache_store_log /var/log/squid/store.log
>>
>>cache_access_log /var/log/squid/access.log
>>cache_log /var/log/squid/cache.log
>>pid_filename /var/run/squid.pid
>>
>>debug_options ALL,1 33,2
>>
>>http_port 2020
>>icp_port 0
>>acl QUERY urlpath_regex cgi-bin \?
>>no_cache deny QUERY
>>cache_mem 8 MB
>>cache_dir ufs /var/spool/squid/cache 2900 16 256
>>cache_swap_low 88
>>cache_swap_high 89
>>redirect_rewrites_host_header off
>>acl localhost src 127.0.0.1/255.255.255.255
>>acl Safe_ports port 20 21 70 80 119 210 443 1025-65535
>>acl CONNECT method CONNECT
>>acl all src 0.0.0.0/0.0.0.0
>>acl snmppublic snmp_community public
>>
>>#http_access deny Dangerous_ports
>>
>># No caching for local servers
>>#no_cache deny Local_servers
>>
>>#acl dmz_servers dst 192.168.200.0 255.255.255.0
>>#no_cache deny dmz_servers
>>
>>
>>$
>>#always_direct allow FTP-PROTO
>>
>># SNMP
>>
>>acl ftp proto ftp
>>snmp_port 3401
>>#snmp_access allow snmppublic localnet
>>snmp_access deny all
>>
>>snmp_incoming_address 0.0.0.0
>>snmp_outgoing_address 0.0.0.0
>>
>>
>>acl Client_Access src 10.21.1.1-10.21.1.254
>>10.21.3.1-10.21.3.254 10.21.2.1-10.21.2.254
>>
>>## No caching for pss.msctc.com.my
>>#acl pss.msctc.com.my url_regex
>>^http://pss.msctc.com.my/$
>>#no_cache deny pss.msctc.com.my
>>
>>## mail.com
>>#acl mail.com url_regex ^http://.mail.com/$
>>#http_access allow mail.com
>>
>>http_access allow ftp
>>
>>## Deny user from accessing certain www
>>#acl Censored dstdomain dvrplayer.com playboy.com
>>www.dvrplayer.com www.playboy.com #http_access deny Censored
>>
>>
>>#acl mail.com dstdomain .mail.com
>>
>>http_access allow localhost
>>http_access allow Safe_ports
>>http_access deny CONNECT
>>http_access allow Client_Access
>>http_access deny all
>>
>>#acl someserver dstdomain .someserver.com
>>#no_cache deny someserver
>>
>>log_icp_queries off
>>buffered_logs on
>>
>>
>>#acl all src 0.0.0.0/0.0.0.0
>>never_direct allow all
>>
>>
>>--- Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote:
>>
>>> On 11.04.06 20:59, nonama wrote:
>>> > Based on the below, how does it actually removed
>>> the
>>> > old data when the cache hit the low_swap value.
>>>
>>> no, squid removes old data when the cache fill
>>> percentage hits
>>> cache_swap_high value and stops when it hits
>>> cache_swap_low value.
>>>
>>> > WIll it remove only selected old data in the cache
>>> (can we monitor this)
>>>
>>> look at cache_replacement_policy
>>>
>>> > and is there any impact to the users i.e slow
>>> performance?
>>>
>>> No, unless there's something wrong with your system.
>>>
>>> > Sorry, I' also a newbie in SQUID and reading from
>>> the
>>> > FAQ make me more confused. Really need more
>>> > experienced person to explain it.
>>>
>>> did you try reading default config file first?
>>>
>>> --
>>> Matus UHLAR - fantomas, uhlar@fantomas.sk ;
>>> http://www.fantomas.sk/
>>> Warning: I wish NOT to receive e-mail advertising to
>>> this address.
>>> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek
>>> reklamnu postu.
>>> How does cat play with mouse? cat /dev/mouse
>>>
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam? Yahoo! Mail has the best spam
>>protection around
>>http://mail.yahoo.com
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam? Yahoo! Mail has the best spam protection around
>>http://mail.yahoo.com
>>
Received on Thu Apr 13 2006 - 00:44:51 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT