trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudheer Vinukonda <sudhe...@yahoo-inc.com>
Subject Re: Progressive download
Date Wed, 07 Oct 2015 05:09:29 GMT
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><div
id='yahoo__compose_area' style="background-color:white; display:block; font-family:HelveticaNeue-Regular,Helvetica;">Adding
dev@ and users@ - perhaps, someone else might have run into the same issue?<br><br><br><a
href="https://yho.com/footer0">Sent from Yahoo Mail for iPhone</a></div><div
id='yahoo__original_message' class='yQTDBase'><br><blockquote style="margin:0
0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex; ">On Oct 6, 2015, 10:04:26 PM,
Umamaheswari Muthu<umamaheswari.soft@gmail.com> wrote:<div dir="ltr">Hi Sudheer,<div><br
clear="none"></div><div>I compiled and installed the background_fetch plugin.
But when i restarted the ATS I am getting the FATAL error as <b>undefined symbol: _ZN13BgFetchConfig10readConfigEPKc
</b>unable to load background_fetch.so file.</div><div><b><br clear="none"></b></div><div><b>in
plugin.config added</b></div><div><b><br
 clear="none"></b></div><div>background_fetch.so --config /opt/ts/etc/trafficserver/background_fetch.config</div><div><b><br
clear="none"></b></div><div><b>and in background_fetch.config</b></div><div><br
clear="none"></div><div>include Content-Type video/mp4</div><div><br
clear="none"></div><div>Let me know if i have missed anything else.</div><div><br
clear="none"></div><div>Thanks</div></div><div class="gmail_extra"><br
clear="none"><div class="yQTDBase yqt6111494656" id="yqtfd74447"><div class="gmail_quote">On
Wed, Oct 7, 2015 at 7:12 AM, Sudheer Vinukonda <span dir="ltr"><<a rel="nofollow"
shape="rect" ymailto="mailto:sudheerv@yahoo-inc.com" target="_blank" href="javascript:return">sudheerv@yahoo-inc.com</a>></span>
wrote:<br clear="none"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td
colspan="1" rowspan="1" valign="top"><div
 style="background-color:white;display:block;font-family:HelveticaNeue-Regular, Helvetica;">Ah,
you are doing a progressive download (partial byte range request).<br clear="none"><br
clear="none">ATS doesn't support caching partial byte range responses, but it does support
serving byte range requests from an already cached object.<div><br clear="none"></div><div>You
may use background_fetch plugin which can automatically download the full object in the background
ln receiving a byte range response.</div><span class=""></span><div><br
clear="none"></div><div>Thanks,</div><div><br clear="none"></div><div>Sudheer<br
clear="none"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://yho.com/footer0">Sent
from Yahoo Mail for iPhone</a></div></div><div><div class="h5"><div><br
clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On
Oct 6, 2015, 6:34:52 PM, Umamaheswari Muthu<u></u> wrote:<div
 dir="ltr">Hi,<div><br clear="none"></div><div>I still see TCP_MISS,
even if i hit after some delay. And this issue happens only for .mp4 file which makes byte
range-request(206),</div><div>There are other .m3u8,xml,doc files those are getting
cached properly.Do i need to enable any other configuration for byte range request?</div><div><br
clear="none"></div><div>Thanks,</div></div><div><div class="gmail_extra"><br
clear="none"><div class="gmail_quote">On Wed, Oct 7, 2015 at 6:20 AM, Sudheer Vinukonda
<span dir="ltr"><<a rel="nofollow" shape="rect">sudheerv@yahoo-inc.com</a>></span>
wrote:<br clear="none"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:verdana,
helvetica, sans-serif;font-size:13px;"><div><span>What
 happens when you issue the requests with a small delay (a few seconds) in between? Are you
seeing a TCP_HIT then or still a TCP_MISS?</span></div><div><div>
 <br clear="none"><div><br clear="none"><br clear="none"></div><div
style="display:block;"> <div style="font-family:verdana, helvetica, sans-serif;font-size:13px;">
<div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px;"> <div dir="ltr"> <font size="2" face="Arial"> On
Tuesday, October 6, 2015 4:22 AM, Umamaheswari Muthu <<a rel="nofollow" shape="rect">umamaheswari.soft@gmail.com</a>>
wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none">
<div><div><div><div dir="ltr">Hi,<div><br clear="none"></div><div>Both
the request is exactly the same.</div><div><br clear="none"></div><div><a
rel="nofollow" shape="rect" target="_blank" href="http://10.10.26.78/Sample.mp4">http://10.10.26.78/Sample.mp4</a>
was hit from the browser in
 2 hits. Both the hits is giving TCP_MISS and fetching from the origin.</div><div><br
clear="none"></div><div>This is the response i get in custom_ats.log</div><div><br
clear="none"></div><div><div>1444108139.831 chi=10.27.4.10
phn=10.10.26.78 shn=10.10.26.77
url=<a rel="nofollow" shape="rect" target="_blank" href="http://10.10.26.78/Sample.mp4">http://10.10.26.78/Sample.mp4</a>
cqhm=GET cqhv=HTTP/1.1
pssc=<b>206</b>     ttms=5 b=1 sssc=206 sscl=1 cfsc=FIN pfsc=FIN crc=TCP_MISS
phr=DIRECT
uas="Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/45.0.2454.85 Safari/537.36"</div><div><br clear="none"></div><div>in
remap.config entry is </div><div><br clear="none"></div><div>map
<a rel="nofollow" shape="rect" target="_blank" href="http://10.10.26.78/">http://10.10.26.78</a>
<a rel="nofollow" shape="rect" target="_blank" href="http://10.10.26.77/">http://10.10.26.77/</a></div><div><br
clear="none"></div><div>records.config file is attached.</div><div><br
clear="none"></div><div><span style="font-size:12.8000001907349px;">Any
configuration am I missing? Is it possible to force ATS to retrieve an object from origin
server for only once for a cache-miss object? </span><br clear="none"></div><div><span
style="font-size:12.8000001907349px;"><br clear="none"></span></div><div><span
style="font-size:12.8000001907349px;">Thanks.</span></div></div></div><div><div><br
clear="none"><div>On Tue, Oct 6, 2015 at 2:59 PM, Sudheer Vinukonda <span dir="ltr"><<a
rel="nofollow"
 shape="rect">sudheerv@yahoo-inc.com</a>></span> wrote:<br clear="none"><blockquote
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0"
cellpadding="0" border="0"><tbody><tr><td colspan="1" rowspan="1" valign="top"><div
style="background-color:white;display:block;font-family:HelveticaNeue-Regular, Helvetica;">Are
both request URLs exactly identical? ATS by default uses the entire URL as the cache key,
so, even if the requests have different query params, they will be considered as two different
cache objects. You may need to strip the query params if that's the case (examples, cacheurl
plugin, or regex_remap plugin).<div><br clear="none"></div><div>Thanks,</div><div><br
clear="none"></div><div>Sudheer<br clear="none"><div><br clear="none"><br
clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://yho.com/footer0">Sent
from
 Yahoo Mail for iPhone</a></div></div></div><div><div><div><br
clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On
Oct 6, 2015, 2:10:14 AM, Umamaheswari Muthu<u></u> wrote:<div dir="ltr">Hi,<div><br
clear="none"></div><div><div>I am testing ATS 6.1.0 as a
 reverse proxy cache. </div><div>There are two client connections requesting the
same .mp4 object. I expect there shall be only one request to the origin server for one of
the objects. But each hit or each request is fetching the data from origin instead of ATS
cache. </div><div><br clear="none"></div><div>I have enabled
the Read While Writer option followed the guide:</div><div><br clear="none"></div><div>CONFIG
proxy.config.cache.enable_read_while_writer INT 1</div><div>CONFIG proxy.config.http.background_fill_active_timeout
INT 0</div><div>CONFIG proxy.config.http.background_fill_completed_threshold FLOAT
0.000000</div><div>CONFIG proxy.config.cache.max_doc_size INT 0</div><div><br
clear="none"></div><div>And also set the Open Read Retry Timeout:</div><div><br
clear="none"></div><div>CONFIG proxy.config.http.cache.max_open_read_retries
INT 10</div><div>CONFIG proxy.config.http.cache.open_read_retry_time INT 10</div><div><br
clear="none"></div><div>I
 have tried the proxy.config.http.cache.max_open_read_retries as -1
 or 100, but the results are the same.</div><div><br clear="none"></div><div>Any
configuration am I missing? Is it possible to force ATS to retrieve an object from origin
server for only once for a cache-miss object? </div></div><div><br clear="none"></div><div>Thanks,</div><div>Uma</div></div><div></div></blockquote></div></div></div></td></tr></tbody></table>
</blockquote></div><br clear="none"></div></div></div></div><br
clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></blockquote></div><br
clear="none"></div></div><div></div></blockquote></div></div></div></td></tr></tbody></table>
</blockquote></div><br clear="none"></div></div><div></div></blockquote></div></html></td></tr></table>

Mime
View raw message