<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">Hi,<br>
<br>
</div></div>The only option then for sticky sessions is ip_hash, not cookies.<br></blockquote><div><br></div><div>No, it&#39;s also possible to direct traffic to particular backend servers using cookies too.</div><div><br>
</div><div>In fact there are more ways of directing traffic to backends/clusters with Nginx than there are with HAProxy - in the sense of the number of ways of choosing a cluster (which could just be one server) - but AFAIK there are currently fewer ways of hashing / distributing over the servers in a particular cluster of backends with Nginx than HAProxy (even if you include the non-core modules).</div>
<div><br></div><div>If you did want high redundancy as well as sticky sessions, though, then you&#39;d probably want to store your key application data in something like memcached and get your backend application to quiz that.</div>
<div><br></div><div>Marcus.</div></div>