<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>You could do that but it would be bad. Nginx' great performance is based on serving files from a local Fisk and the behavior of a Linux page cache. If you serve from a shared (nfs) filsystem then every request is slower. You shouldn't slow down the common case just to increase cache hit rate.<br><br>Sent from my iPhone</div><div><br>On Jul 7, 2017, at 9:24 AM, Frank Dias <<a href="mailto:frank.dias@prodea.com">frank.dias@prodea.com</a>> wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<div dir="auto">Have you thought about using a shared file system for the cache. This way all the nginx 's are looking at the same cached content.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Jul 7, 2017 5:30 AM, Joan Tomàs i Buliart <<a href="mailto:joan.tomas@marfeel.com">joan.tomas@marfeel.com</a>> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:10pt">
<div>Hi Lucas<br>
<br>
On 07/07/17 12:12, Lucas Rolff wrote:<br>
> Instead of doing round robin load balancing why not do a URI based <br>
> load balancing? Then you ensure your cached file is only present on a <br>
> single machine behind the load balancer.<br>
<br>
Yes, we considered this option but it forces us to deploy and maintain <br>
another layer (LB+NG+AppServer). All cloud providers have round robin <br>
load balancers out-of-the-box but no one provides URI based load <br>
balancer. Moreover, in our scenario, our webservers layer is quite <br>
dynamic due to scaling up/down.<br>
<br>
Best,<br>
<br>
Joan<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">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div>
</span></font></div>
</blockquote>
</div>
<br>
</div>
This message is confidential to Prodea unless otherwise indicated or apparent from its nature. This message is directed to the intended recipient only, who may be readily determined by the sender of this message and its contents. If the reader of this message
 is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient:(a)any dissemination or copying of this message is strictly prohibited; and(b)immediately notify the sender by return message and destroy
 any copies of this message in any form(electronic, paper or otherwise) that you have.The delivery of this message and its information is neither intended to be nor constitutes a disclosure or waiver of any trade secrets, intellectual property, attorney work
 product, or attorney-client communications. The authority of the individual sending this message to legally bind Prodea is neither apparent nor implied,and must be independently verified.


</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></span><br><span><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></span></div></blockquote></body></html>