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?
Thanks
Frank
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?
Thanks
Frank
On 6/23/16 6:44 PM, Frank L. 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:
–
Maxim K.
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 6/23/16 6:57 PM, Frank L. 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).
> packet or will it remembers client and send all packets from same
–
Maxim K.
To summarize:
TCP balancing decision is on every new connection.
TCP balancing decision is on every packet since it is connectionless.
On Thursday 23 June 2016 08:57:22 Frank L. 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.
Right.
wbr, Valentin V. Bartenev
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs