Videocache is no longer in development.

How do I know that hit_threshold is working properly?

by marlowbg on 31 Dec 2010

Hello Kulbir,

As I am testing the videocache with different options to achieve better effectiveness, I see that whatever I set the hit_threshold parameter I always have 800-900 youtube files appear each day in the /youtube/ cache folder.

From the Log I cannot see when the file will be downloaded (queued), I saw this only when the parameter hit_threshold = 1, but after I put =2 or =3 I no longer see when the file will be queued, and =1 is actually not good for effectivenes....

How do you (videocache software) count the video requests, and what is the way for us (admins) to be aware what is actually happening and if this threshold is working properly.

What is the suggested (recommended) setting for hit_threshold?

1 Answers

by Kulbir Saini on 5 Jan 2011


Videocache leaves a message with code SCHEDULED in the videocache log whenever a video is queued up. You can grep that code in the log file. A hit threshold of 2 or 3 is recommended. Anything above 3 will prevent videos from being cached and only a few videos will be cached. A value 1 will cache everything.

Let me know if you have any other questions.

Thank You!