VideoCache
Videocache is no longer in development.

RPC server freeze

by imriz on 14 Dec 2008
Hi, Sometimes the RPC server stalls/freezes. During this time, the processes running with squid_part cannot query the server. Strace looks something like this (notice the 8 seconds delay at the recvfrom): Process 4515 attached with 4 threads - interrupt to quit [pid 4515] 0.000000 recvfrom(7, <unfinished ...> [pid 4507] 0.000041 connect(8, {sa_family=AF_INET, sin_port=htons(9100), sin_addr=inet_addr("127.0.0.1")}, 16 <unfinished ...> [pid 4506] 0.000047 recvfrom(6, ...

27 Answers

[Resolved] Cache directory size limiting is checked only before video is queued

by Anonymous on 14 Dec 2008
Hi :) Size limits are only being checked in cache_video, and not also in download_from_source - this means that if one limits the number of max_parallel_downloads, a video could be queued while the directory still has space, but actually downloaded when the directory is over the max size. -- imriz

6 Answers

http://www.watch-movies.net

by Anonymous on 14 Dec 2008
Hello, Can u posibly add http://www.watch-movies.net on ur next release? Can u posibly add http://www.watch-movies.net on ur next release?

7 Answers

Partial Content, Performance,

by Anonymous on 13 Dec 2008
Squid up to squid.head version doesn't support Partial Content caching. Do this scripts can possibly rewrite and cache it? Squid has store rewrite feature that will rewrite url when storing into cache. Question is does this has better performance vs store rewrite? by the way squid has already a url rewrite feature inside.

1 Answers

My statistics

by Anonymous on 13 Dec 2008
Date Day_Economy Base_Videos Day_Download 2008-11-30 6521MB 45G 6741MB 2008-12-01 6435MB 47G 4987MB 2008-12-02 4080MB 53G 5594MB 2008-12-03 6103MB 59G 5915MB 2008-12-04 6340MB 65G 6038MB 2008-12-05 6201MB 72G 7320MB 2008-12-06 7444MB 79G 7250MB 2008-12-07 5955MB 85G 5660MB 2008-12-08 6424MB 90G 5260MB 2008-12-09 6253MB 95G 5501MB 2008-12-10 7883MB 100G 4679MB 2008-12-11 4652MB 103G 3589MB 2008-12-12 9100MB 109G 5551MB I will increment this when I've more statistics. []'s Arlindo F. ...

1 Answers

Split the RPC server to an external daemon

by Anonymous on 13 Dec 2008
This should help making the project more robust and scaleable. You should also consider using somesort of external database+exclusive locks on the files, so multiple RPC servers could be used (again, more robust, and scaleable).

1 Answers

Make videocache log the PID of each process whenever logging a message to the logfile

by Anonymous on 13 Dec 2008
It really helps troubleshooting :)

3 Answers

[Resolved] RPC server cannot reuse port after squid restart

by Anonymous on 13 Dec 2008
Hi, After you gracefully stop squid, and immediatly start it again (AKA restart :) ), The RPC server cannot reattach to the port. setting SimpleXMLRPCServer.allow_reuse_address = 1 solves this issue.

8 Answers

program dies when RPC server is down

by Anonymous on 13 Dec 2008
Hi, When the RPC server is down or busy, the program will exit with such error: Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in "bootstrap self.run() File "/usr/share/videocache/videocache.py", line 792, in run squid_part() File "/usr/share/videocache/videocache.py", line 534, in squid_part video_id_pool.add(video_id) File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in ...

5 Answers

Statistics for a single user

by Anonymous on 7 Dec 2008
Report approximately from Wed Nov 19 13:02:09 2008 CACHE SUMMARY 933 videos cached 8399 MB of videos 3902 MB of bandwidth was saved SUMMARY BY WEBSITE NAME SIZE MB DOWNLOAD LAST WATCHED WATCHED SAVED MB redtube 0 none none 0 0 tmp 0 none none 0 0 dailymotion 0 none none 0 0 xtube 0 none none 0 0 vimeo 13 3.2 days ago 3.2 days ago 1 0 youtube 8386 17.4 days ago 12.0 min ago 902 3902 metacafe 0 none none 0 0 youporn 0 none none 0 0 soapbox 0 none none 0 0 google 0 none none 0 0 wrzuta 0 none ...

6 Answers