That makes sense for udp (connection less). <div>What about tcp? I assume when client initiate the connection , nginx will pick one upstream (rr) to make a connection and send all subsequent packets to the same upstream using the same connection.</div><div><br></div><div>Frank<span></span><br><br>On Thursday, June 23, 2016, Maxim Konovalov <<a href="mailto:maxim@nginx.com">maxim@nginx.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 6/23/16 6:44 PM, Frank Liu wrote:<br>
> Hi,<br>
><br>
> In the default stream/udp/proxy setup, will nginx round robin every<br>
> packet or will it remembers client and send all packets from same<br>
> client to same upstream?<br>
><br>
The default is round-robin, yes.<br>
<br>
You can enable persistent-like behaviour though:<br>
<br>
<a href="https://www.nginx.com/resources/admin-guide/tcp-load-balancing/#hash" target="_blank">https://www.nginx.com/resources/admin-guide/tcp-load-balancing/#hash</a><br>
<br>
--<br>
Maxim Konovalov<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'nginx@nginx.org')">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>