On Fri, May 25, 2012 at 9:26 PM, nick tailor <span dir="ltr"><<a href="mailto:nick.tailor@gmail.com" target="_blank">nick.tailor@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does anyone know. If you can have Varnish send traffic to multiple VIPS? I dont want to have to provision a separate pair of varnish servers for each HA cluster I have.<br><br>I have my services going through a LB which the varnish servers will sit in front of.<br>
<br>I want to be able to define separate VIP's in the default.vcl so that traffic on specific vips go to specific backends, is that possible?<br><br></blockquote><div><br></div><div>Hello,</div><div><br></div><div>Unless i'm mistaken, you just want to implement several backends or directors, then you can use server.ip and server.port (<a href="https://www.varnish-cache.org/docs/3.0/reference/vcl.html#varnish-configuration-language">https://www.varnish-cache.org/docs/3.0/reference/vcl.html#varnish-configuration-language</a>) in VCL to make the requests go to one specific backend (you need to make Varnish listen on several IP/Ports on the command-line, though).</div>
<div><br></div><div>You can then use your LB or even let the Varnish director of your choice handle the load-balancing - depending on your needs. If you have a single IP per cluster, you can use a single backend.</div><div>
<br></div><div>Regards, </div></div>-- <br>Aurélien Guillaume<div><div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="line-height:18px"><i><br></i></span></font></div></div><br>