udp balancing

Frank Liu gfrankliu at gmail.com
Thu Jun 23 15:57:22 UTC 2016


That makes sense for udp (connection less).
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.

Frank

On Thursday, June 23, 2016, Maxim Konovalov <maxim at nginx.com> wrote:

> On 6/23/16 6:44 PM, Frank Liu wrote:
> > Hi,
> >
> > In the default stream/udp/proxy setup, will nginx round robin every
> > packet or will it remembers client and send all packets from same
> > client to same upstream?
> >
> The default is round-robin, yes.
>
> You can enable persistent-like behaviour though:
>
> https://www.nginx.com/resources/admin-guide/tcp-load-balancing/#hash
>
> --
> Maxim Konovalov
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org <javascript:;>
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160623/899abef2/attachment.html>


More information about the nginx mailing list