<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000000"><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif">Hi Maxim,</p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif">Thank you for this. Opened my eyes.</p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif">Not to sounds demanding, but do you have any examples (code) of proxy_store bring used as a CDN. What’s most important to me in the initial cache warming. I should be able to start a new machine with 30 GB of cache vs. a cold start.</p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif">Thanks once again.</p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">- Quintin</div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 7:46 AM Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
On Tue, Sep 11, 2018 at 04:45:42PM -0700, Quintin Par wrote:<br>
<br>
> I run a mini CDN for a static site by having Nginx cache machines (in<br>
> different locations) in front of the origin and load balanced by Cloudflare.<br>
> <br>
> Periodically I run rsync pull to update the cache on each of these<br>
> machines. Works well, except that I realized I need to restart Nginx and<br>
> reload isn’t updating the cache in memory.<br>
> <br>
> Really want to avoid the restart. Is this possible? Or maybe I am doing<br>
> something wrong here.<br>
<br>
You are not expected to modify cache contents yourself. Doing so <br>
will likely cause various troubles - including not using the new <br>
files placed into the cache after it was loaded from the disk, not <br>
maintaining configured cache max_size and so on.<br>
<br>
If you want to control cache contents yourself by syncing data <br>
across machines, you may have better luck by using proxy_store <br>
and normal files instead.<br>
<br>
-- <br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div>