VideoCache

One Youtube's video is requested twice making hit_threshold useless!

by Anonymous on 7 May 2009

Hello ,

Let me show you the logs, I just requested ONE video:

2009-05-07 18:41:38,460 30558 10.0.0.146 - REQUEST - http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669
2009-05-07 18:41:38,460 30558 10.0.0.146 a50b4a9c31a1c669 URL_HIT YOUTUBE http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669
2009-05-07 18:41:38,461 30558 10.0.0.146 a50b4a9c31a1c669 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-05-07 18:41:38,463 30558 10.0.0.146 a50b4a9c31a1c669 NEW_URL YOUTUBE http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669
2009-05-07 18:41:39,011 30558 10.0.0.146 - REQUEST - http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669&redirect_counter=1
2009-05-07 18:41:39,011 30558 10.0.0.146 a50b4a9c31a1c669 URL_HIT YOUTUBE http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669&redirect_counter=1
2009-05-07 18:41:39,011 30558 10.0.0.146 a50b4a9c31a1c669 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-05-07 18:41:39,014 30558 10.0.0.146 a50b4a9c31a1c669 NEW_URL YOUTUBE http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=34&ip=213.30.137.18&signature=BCCA23E41D8104D9C94CCC54B68E9472B392DE81.1ABBB8AEC739426BB50F12E5372E2629C1F60EA6&sver=3&expire=1241736098&key=yt1&ipbits=0&id=a50b4a9c31a1c669&redirect_counter=1
2009-05-07 18:43:04,422 30567 10.0.0.146 a50b4a9c31a1c669 SCHEDULED YOUTUBE Video scheduled for download.
2009-05-07 18:44:22,132 27818 10.0.0.146 a50b4a9c31a1c669 DOWNLOAD YOUTUBE 3320055 Video was downloaded and cached.

As you can notice, one youtube video results in 2 requests, which make hit_threshold parameter useless for youtube. What can I do ? It is eating all my bandwidth !

Regards,
Mr Lejeune

EDIT: In addition to that, if the user seeks a video while caching (youporn for instance), it triggers one more request each time, that makes 1 initial requests + one more requests each time the video is seeked, which make hit_threshold a little bit tricky.

0 Answers

You need to sign in. Please sign in to add answer to this question.