This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How often should I clear my squid cache?

I have had squid running for a couple months and my squid partition looks like it is starting to filling up. Will squid start cleaning the cache by itself if I leave it alone, or will squid die and crap out if the partition becomes full??


Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda8             10240464   6990984   2720900  72% /var/chroot-squid


How often should I clear my cache?


Thanks!
    


This thread was automatically locked due to age.
Parents
  • Looks like I might have found my answer:
    What is the setting on the astaro config?

    http://www1.hu.squid-cache.org/Doc/FAQ/FAQ-12.html
    12.12 What is the ``Storage LRU Expiration Age?'' 
    For example: 

            Storage LRU Expiration Age:      4.31 days


    The LRU expiration age is a dynamically-calculated value. Any objects which have not been accessed for this amount of time will be removed from the cache to make room for new, incoming objects. Another way of looking at this is that it would take your cache approximately this many days to go from empty to full at your current traffic levels. 


    As your cache becomes more busy, the LRU age becomes lower so that more objects will be removed to make room for the new ones. Ideally, your cache will have an LRU age value in the range of at least 3 days. If the LRU age is lower than 3 days, then your cache is probably not big enough to handle the volume of requests it receives. By adding more disk space you could increase your cache hit ratio. 


    The configuration parameter reference_age places an upper limit on your cache's LRU expiration age.
      
Reply
  • Looks like I might have found my answer:
    What is the setting on the astaro config?

    http://www1.hu.squid-cache.org/Doc/FAQ/FAQ-12.html
    12.12 What is the ``Storage LRU Expiration Age?'' 
    For example: 

            Storage LRU Expiration Age:      4.31 days


    The LRU expiration age is a dynamically-calculated value. Any objects which have not been accessed for this amount of time will be removed from the cache to make room for new, incoming objects. Another way of looking at this is that it would take your cache approximately this many days to go from empty to full at your current traffic levels. 


    As your cache becomes more busy, the LRU age becomes lower so that more objects will be removed to make room for the new ones. Ideally, your cache will have an LRU age value in the range of at least 3 days. If the LRU age is lower than 3 days, then your cache is probably not big enough to handle the volume of requests it receives. By adding more disk space you could increase your cache hit ratio. 


    The configuration parameter reference_age places an upper limit on your cache's LRU expiration age.
      
Children