<div dir="ltr"><div><div><div>Hello<br><br></div>One side question. Have you calculated a estimation of the expected life of a SSD disk when you are writing on it continously? I suppose that in such a situation it will die "quickly", due to the limited number of writes that the memory can support before getting damaged.<br>
<br></div>Greetings.<br><br></div>Oscar<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 19, 2014 at 9:14 AM, mojiz <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
I'm trying to setup a reverse proxy for some private downloads. Here is our<br>
setup:<br>
3 Storage servers with High capacity but slow HDDs running nginx<br>
1 loadbalancing server with SSD and high internet uplink.<br>
my file sizes are several hundred megabytes (500+ up to 2GB) running nginx<br>
downloaders are on slow connections with download managers with up to 16<br>
connections for each file<br>
<br>
here is what I want to do:<br>
a user sends a request to the SSD server, the ssd server requests the file<br>
from Slow servers and caches to response to its fast HDD and serving it to<br>
the client. But If I use the proxy_cache , the file serving has to wait till<br>
the file has been completly transfered and cache on the SSD disk wich (if<br>
several files are requested at the same time) results in a slow connection<br>
and timeout or other errors on the client side. so this is not an option.<br>
<br>
However I think proxy_buffering is answer to my problem, I think this means<br>
each part of the requested file (defined by ranges header) is cached<br>
independently.<br>
1. Am I right?<br>
If I'm right then<br>
2. how can I tell the nginx, to buffer like 5mb of requested part in memory<br>
(and the excess on the SSD disk) and serve the file to the client until the<br>
client has downloaded the part and then request another 5mb?<br>
I'm looking for a setting like output_buffers 1 5m; but for the proxied<br>
file.<br>
3. Is there a better solution?<br>
<br>
Regards<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,246586,246586#msg-246586" target="_blank">http://forum.nginx.org/read.php?2,246586,246586#msg-246586</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Oscar Fernandez Sierra<br><a href="mailto:oscaretu@gmail.com">oscaretu@gmail.com</a>
</div>