Search squid archive

Re: Two questions about stored objects

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

 



Amos, your answer was very helpful. Purge looks exactly like the solution I'm looking for, but I might be not using it correctly. I'm getting loads of 404s like these ones:

purge -p localhost:3080 -c /etc/squid/squid.conf -e '.*video\.squidinternal.*' -P 1

/cache/2/00/E9/0000E95B 404 321477 http://video.squidinternal/140/6584817-6905732/1CSDuPCBf10 /cache/1/00/E9/0000E93E 404 1790312 http://video.squidinternal/135/89497600-91287551/o01E_GZ1_mM /cache/2/00/E9/0000E9A3 404 123367 http://video.squidinternal/251/377034-499838/dl_yFFX8xk0


Is that 404 code ok? Is squid deleting the object? I don't know how to interpretate the output


Thanks again
Sebastian


El 08/07/15 a las 18:33, Amos Jeffries escribió:
On 9/07/2015 5:17 a.m., Sebastian Goicochea wrote:
Hello everyone, I have been making some modifications (size, object max
size) in some cache dirs and I have a couple of questions:

1) If I lower de maximum object size for a certain cache_dir and
reconfigure (I did a squid -z without squid running), what happens to
the files that are no longer in the cache_dir size limits but are
already stored?
No. It only affects new objects being stored to disk.

There is one caveat however. Sometimes objects get "promoted" from disk
to memory caching. When those cycle back to disk they will not go to the
original cache_dir. Which may leave you with an un-deleted but nolonger
indexed file on disk.

2) If I change the min and max times in refresh_patterns, what happens
to the objects that are already stored? Where they stored with the "old"
times or are they going to be re-evaluated the next time they are
requested by a user?
Have no effect except on active traffic. That does include "active" in
the sense of being saved to disk. But not objects just sitting there
already.


Overall, if you change settings like these the state does slowly
migrates to the new values as cached content expires. But that is not
fast, could take minutes or weeks depending on your initial state.

To make immediate administrative changes to on-disk AUFS/UFS/diskd cache
content use the squid-purge tool which is bundled with recent Squid
versions.

Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




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

  Powered by Linux