<div dir="ltr">Thanks Andrei!<div><br></div><div>Mark, one simple solution would be to simply use the hash director, and give it the client.ip as string. This way, the same ip will always go to the same backend.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 28, 2017 at 3:11 PM, 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">Oh yeah, Guillaume also has a great post on it @ <a href="https://info.varnish-software.com/blog/sticky-session-with-cookies" target="_blank">https://info.varnish-<wbr>software.com/blog/sticky-<wbr>session-with-cookies</a> :D</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 6: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">Hi Mark,<div><br></div><div>I suggest going over the following blog post for the changes you're looking for. Good luck moving forward :D</div><div><br></div><div><a href="https://info.varnish-software.com/blog/proper-sticky-session-load-balancing-varnish" target="_blank">https://info.varnish-software.<wbr>com/blog/proper-sticky-session<wbr>-load-balancing-varnish</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3124013717792154851h5">On Tue, Mar 28, 2017 at 4:52 AM, Mark Hanford <span dir="ltr"><<a href="mailto:mark@hanfordonline.co.uk" target="_blank">mark@hanfordonline.co.uk</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3124013717792154851h5"><div dir="ltr">Hi folks. I'm in the process of trying to upgrade our current v3 config to v4+ for upgrading to Varnish 5. <div><br></div><div>In my old v3 config, I use the XFF header to change the client.identity if it is present.</div><div><br></div><div><div> # For session-persistence, set a client identity.</div><div> # We're using the client's IP for this to ensure server-persistence.</div><div> if (req.http.X-Forwarded-For) {</div><div> set client.identity = req.http.X-Forwarded-For;</div><div> } else {</div><div> set client.identity = client.ip;</div><div> }</div></div><div><br></div><div>It is important that a request from one remote client goes to the same backend every time, when possible. Do I still need to deal with this, or will this be handled transparently in some way?</div><div><br></div><div>I suspect I'll have more questions as I go along, so I apologise in advance for the spam :)</div><div><br></div><div>thanks,</div><div><br></div><div>Mark</div></div>
<br></div></div>______________________________<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>
</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>