HLS issues came on Storage on Cache Ram & Playback problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

HLS issues came on Storage on Cache Ram & Playback problem

Vasanth Mathivanan

HI,

 

I writing on Remap rules on edge1 server and Storing cache on /dev/tmpfs cache.db when call I my client url “.m3u8”  running a video but particular time it will stopped. And cache also stopped and Live also stopped ……And I header rewrite rules are written  in DS …And hit will call continuously “.m3u8”

 

map     http://edge1.live.ivzapp.com/     http://streams1.evolutiondigital.com/ @plugin=header_rewrite.so @pparam=dscp/set_dscp_40.config @plugin=header_rewrite.so @pparam=hdr_rw_live.config @plugin=cache_range_requests.so@plugin=cache_range_requests.so

 

 

Thanks & Regards

 

Vasanth M

 

Sent from Mail for Windows 10

 

Reply | Threaded
Open this post in threaded view
|

Re: HLS issues came on Storage on Cache Ram & Playback problem

ezko
hi, i also have an HLS live setup.
what do your header rewrite parameter files look like ?

I use header rewrite with the following parameters.
Note: this is for a particular HLS source where the playlist has
#EXT-X-TARGETDURATION:4
and there are 15 segments in the playlist (4 seconds each) , so
Cache-Control max-age is set to expire the playlist and segments
accordingly.

cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{PATH} /\.m3u8/
cond %{STATUS} >199 [AND]
cond %{STATUS} <400
    rm-header Pragma
    rm-header Expires
    set-header Cache-Control "max-age=4, public"
cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{PATH} /\.ts/
cond %{STATUS} >199 [AND]
cond %{STATUS} <400
    rm-header Pragma
    rm-header Expires
    set-header Cache-Control "max-age=60, public"



Vasanth Mathivanan wrote

> HI,
>
> I writing on Remap rules on edge1 server and Storing cache on /dev/tmpfs
> cache.db when call I my client url “.m3u8”  running a video but particular
> time it will stopped. And cache also stopped and Live also stopped ……And I
> header rewrite rules are written  in DS …And hit will call continuously
> “.m3u8”
>
> map     http://edge1.live.ivzapp.com/   
> http://streams1.evolutiondigital.com/ @plugin=header_rewrite.so
> @pparam=dscp/set_dscp_40.config @plugin=header_rewrite.so
> @pparam=hdr_rw_live.config
> @plugin=cache_range_requests.so@plugin=cache_range_requests.so
>
>
> Thanks & Regards
>
> Vasanth M
>
> Sent from Mail&lt;https://go.microsoft.com/fwlink/?LinkId=550986&gt; for
> Windows 10





--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

RE: HLS issues came on Storage on Cache Ram & Playback problem

Vasanth Mathivanan

Hi ,

Thanks for your response ,And I config that values in header rewrite config but I get the output of like this

 

 

When calling the m3u8 make NONE hit otherwise ts file also hit based on DIRECT ?

 

Is this correct or Not ? can you fix this ?

 

Thanks & Regards

 

Vasanth M

Sent from Mail for Windows 10

 


From: ezko <[hidden email]>
Sent: Sunday, December 17, 2017 2:17:46 PM
To: [hidden email]
Subject: Re: HLS issues came on Storage on Cache Ram & Playback problem
 
hi, i also have an HLS live setup.
what do your header rewrite parameter files look like ?

I use header rewrite with the following parameters.
Note: this is for a particular HLS source where the playlist has
#EXT-X-TARGETDURATION:4
and there are 15 segments in the playlist (4 seconds each) , so
Cache-Control max-age is set to expire the playlist and segments
accordingly.

cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{PATH} /\.m3u8/
cond %{STATUS} >199 [AND]
cond %{STATUS} <400
    rm-header Pragma
    rm-header Expires
    set-header Cache-Control "max-age=4, public"
cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{PATH} /\.ts/
cond %{STATUS} >199 [AND]
cond %{STATUS} <400
    rm-header Pragma
    rm-header Expires
    set-header Cache-Control "max-age=60, public"



Vasanth Mathivanan wrote
> HI,
>
> I writing on Remap rules on edge1 server and Storing cache on /dev/tmpfs
> cache.db when call I my client url “.m3u8”  running a video but particular
> time it will stopped. And cache also stopped and Live also stopped ……And I
> header rewrite rules are written  in DS …And hit will call continuously
> “.m3u8”
>
> map     http://edge1.live.ivzapp.com/   
> http://streams1.evolutiondigital.com/ @plugin=header_rewrite.so
> @pparam=dscp/set_dscp_40.config @plugin=header_rewrite.so
> @pparam=hdr_rw_live.config
> @plugin=cache_range_requests.so@plugin=cache_range_requests.so
>
>
> Thanks & Regards
>
> Vasanth M
>
> Sent from Mail&lt;https://go.microsoft.com/fwlink/?LinkId=550986&gt; for
> Windows 10





--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

RE: HLS issues came on Storage on Cache Ram & Playback problem

ezko
Hi,
the picture is too small.
if you are getting a DIRECT hit on .ts , i think that's OK.
you might need to change the max-age for your .m3u8 base on your HLS
playlist


Hi ,

Thanks for your response ,And I config that values in header rewrite config
but I get the output of like this



[cid:image002.png@01D3780E.57A6C9A0]



When calling the m3u8 make NONE hit otherwise ts file also hit based on
DIRECT ?



Is this correct or Not ? can you fix this ?



Thanks & Regards



Vasanth M

Sent from Mail&lt;https://go.microsoft.com/fwlink/?LinkId=550986&gt; for
Windows 10






--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

RE: HLS issues came on Storage on Cache Ram & Playback problem

Vasanth Mathivanan

 

Hi ,

 

Thanks for your response ….can you pls  verify this log?

 

Thanks & Regards

 

Vasanth M

Sent from Mail for Windows 10

 


From: ezko <[hidden email]>
Sent: Monday, December 18, 2017 3:17:09 PM
To: [hidden email]
Subject: RE: HLS issues came on Storage on Cache Ram & Playback problem
 
Hi,
the picture is too small.
if you are getting a DIRECT hit on .ts , i think that's OK.
you might need to change the max-age for your .m3u8 base on your HLS
playlist


Hi ,

Thanks for your response ,And I config that values in header rewrite config
but I get the output of like this



[cid:image002.png@01D3780E.57A6C9A0]



When calling the m3u8 make NONE hit otherwise ts file also hit based on
DIRECT ?



Is this correct or Not ? can you fix this ?



Thanks & Regards



Vasanth M

Sent from Mail&lt;https://go.microsoft.com/fwlink/?LinkId=550986&gt; for
Windows 10






--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/

log.txt (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: HLS issues came on Storage on Cache Ram & Playback problem

ezko
Hi,
i think it will be easier to see statistics with traffic_top
did you try it ?


Hi ,



Thanks for your response ….can you pls  verify this log?



Thanks & Regards



Vasanth M

Sent from Mail&lt;https://go.microsoft.com/fwlink/?LinkId=550986&gt; for
Windows 10




--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/