<div dir="ltr">Andrei:<div><br></div><div>Why do you care that the cache is synchronized between each remote DC?</div><div><br></div><div>The simple way would be to do your any-cast'd IPs be your front end, and have them all talk to a centralized 'private' varnish which fronts the actual service.</div><div><br></div><div>This would allow the individual servers to have a more relevant to their queries cache, and the centralized version would handle any duplication of requests from making it back to the true backend.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 18, 2017 at 4:28 AM, Andrei <span dir="ltr"><<a href="mailto:lagged@gmail.com" target="_blank">lagged@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>(dubbing this over from the mod_auth thread for relevance due to my mistake earlier)</div><div><br></div>Out of curiosity, has anyone done a CDN of Varnish servers? I have 4 Varnish servers in different datacenters around the world, and use anycast IPs to direct traffic based on the region. I managed to do cache replication using a "fanout" method for new cache hits to be replicated through an intermediary server to the related group of Varnish servers, but was wondering if anyone had a better method of load balancing with cache replication.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 8:47 AM, Rodney Bizzell <span dir="ltr"><<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_1174397131040218617m_-7119767658955909167WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Guillaume Quintard [mailto:<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-soft<wbr>ware.com</a>]
<br>
<b>Sent:</b> Friday, March 17, 2017 9:34 AM<br>
<b>To:</b> Rodney Bizzell <<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>><br>
<b>Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> Re: load-balancing<u></u><u></u></span></p><div><div class="m_1174397131040218617h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">The docs have this: <a href="http://varnish-cache.org/docs/5.0/reference/vcl.html" target="_blank">
http://varnish-cache.org/docs/<wbr>5.0/reference/vcl.html</a> (you are interested in bereq.backend and req.backend_hint) and
<a href="http://varnish-cache.org/docs/5.0/reference/vmod_directors.generated.html" target="_blank">
http://varnish-cache.org/docs/<wbr>5.0/reference/vmod_directors.g<wbr>enerated.html</a><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">And there is a couple of articles about it:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://info.varnish-software.com/blog/backends-load-balancing" target="_blank">https://info.varnish-software.<wbr>com/blog/backends-load-balanci<wbr>ng</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://info.varnish-software.com/blog/backends-load-balancing-part-2" target="_blank">https://info.varnish-software.<wbr>com/blog/backends-load-balanci<wbr>ng-part-2</a><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">-- <u></u><u></u></p>
</div>
<p class="MsoNormal">Guillaume Quintard<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Mar 17, 2017 at 1:48 PM, Rodney Bizzell <<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello,
<u></u><u></u></p>
<p class="MsoNormal">In the documentation is there a section on setting-up load-balancing between two varnish servers.<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><br>
This email (including any attachments) may contain confidential information intended solely for acknowledged recipients. If you think you have received this information in error, please reply to the sender and delete all copies from your system. Please note
that unauthorized use, disclosure, or further distribution of this information is prohibited by the sender. Note also that we may monitor email directed to or originating from our network. Thank you for your consideration and assistance. |</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div><br></div>