I am running 1.9.3 and now getting these errors.
2010-04-02 07:04:48,284 24981 X.X.X.X qP4Rb5B9yQA CACHE_FULL YOUTUBE Cache directory '/opt/squid5/videocache1/' has reached the disk availability threshold.
/dev/sdf1 140489876 133357600 0 100% /opt/squid5
enable_video_cache = 1 cache_host = X.X.X.X:38080 proxy = http://X.X.X.X:3128/ proxy_username = proxy_password = hit_threshold = 1 base_dir = /opt/videocache/:100000 disk_avail_threshold = 100 temp_dir = tmp max_parallel_downloads = 30 enable_videocache_cleaner = 1 video_lifetime = 30 logdir = /opt/videocache/log max_logfile_size = 1024 max_logfile_backups = 8 rpc_host = X.X.X.X rpc_port = 9100
I have it set to 100G of storage and I have a 140G disk drive. It seems to just fill the drive up and stops caching.
Anyone have any ideas?
We don't limit cache size anymore because cache size calculation is a CPU intensive process and it can really choke your CPU if we start calculating cache size every one in a while (because in the long run there will be few hundred thousand videos in cache directories). Instead we use disk_avail_threshold which is the space in that particular partition on hard drive that should be empty all the time.
Please let me know if you more queries.
I wiped all three production servers and set them to this:
disk_avail_threshold = 10000
That should keep the drives from filling up completely.
You can use vccleaner for efficient cleanup. Or even set a cron job for vccleaner. That'll work better :)