Welcome! Log In Create A New Profile

Advanced

Re: udp balancing

Frank Liu
June 23, 2016 03:00PM
Yes, thanks :)


On Thu, Jun 23, 2016 at 10:42 AM, Pratyush Kumar <pratyush@hostindya.com>
wrote:

> "To summarize:
>
> TCP balancing decision is on every new connection.
>
> TCP balancing decision is on every packet since it is connectionless."
>
> I think there is a typo there
> Last line should be
>
> "*UDP* balancing decision is on every packet since it is connectionless"
> On 23-Jun-2016 22:38, Frank Liu <gfrankliu@gmail.com> wrote:
>
> To summarize:
> TCP balancing decision is on every new connection.
> TCP balancing decision is on every packet since it is connectionless.
>
> On Thu, Jun 23, 2016 at 9:08 AM, Maxim Konovalov <maxim@nginx.com> wrote:
>
> On 6/23/16 6:57 PM, Frank Liu wrote:
> > 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.
> >
> Not sure I understand your request.
>
> For tcp nginx balances new connections based on the configured load
> balancing discipline (rr by default).
>
> > Frank
> >
> > On Thursday, June 23, 2016, Maxim Konovalov <maxim@nginx.com
> > <mailto:maxim@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@nginx.org <javascript:;>
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
>
>
> --
> Maxim Konovalov
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

udp balancing

Frank Liu June 23, 2016 11:46AM

Re: udp balancing

Maxim Konovalov June 23, 2016 11:50AM

Re: udp balancing

Frank Liu June 23, 2016 11:58AM

Re: udp balancing

Maxim Konovalov June 23, 2016 12:10PM

Re: udp balancing

Frank Liu June 23, 2016 01:10PM

Re: udp balancing

Valentin V. Bartenev June 23, 2016 12:32PM

Re: udp balancing

Pratyush Kumar June 23, 2016 01:44PM

Re: udp balancing

Frank Liu June 23, 2016 03:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready