<div dir="ltr">Thanks Roman! I tested it briefly and it looks good. Next days I think to test it in limited production environment with high traffic load (~10Gb).<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 7:00 PM, Roman Arutyunyan <span dir="ltr"><<a href="mailto:arut@nginx.com" target="_blank">arut@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm happy to publish the experimental Slice module. The module makes it<br>
possible to split a big upstream response into smaller parts and cache them<br>
independently.<br>
<br>
The module supports range requests. When a part of a file is requested,<br>
only the required slice upstream requests are made. If caching is enabled,<br>
future requests will only go to upstream for missing slices.<br>
<br>
The module adds<br>
<br>
- "slice" directive setting the slice size.<br>
<br>
- "$slice_range" variable, which must be added to the cache key<br>
expression and passed to upstream as the Range header value.<br>
The variable holds current slice range in the HTTP Range field format.<br>
<br>
<br>
Build<br>
-----<br>
<br>
Use the --with-http_slice_module configure script option.<br>
<br>
<br>
Example<br>
-------<br>
<br>
location / {<br>
slice 1m;<br>
<br>
proxy_cache cache;<br>
proxy_cache_key $uri$is_args$args$slice_range;<br>
proxy_set_header Range $slice_range;<br>
proxy_cache_valid 200 206 1h;<br>
proxy_pass <a href="http://127.0.0.1:9000" rel="noreferrer" target="_blank">http://127.0.0.1:9000</a>;<br>
}<br>
<br>
<br>
Known issues<br>
------------<br>
<br>
The module can lead to excessive memory and file handle usage.<br>
<br>
<br>
Thanks for testing.<br>
<br>
--<br>
Best wishes,<br>
Roman Arutyunyan<br>
<br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br></blockquote></div><br></div>