Welcome! Log In Create A New Profile

Advanced

Re: UDP load balancing and ephemeral ports

Maxim Dounin
July 17, 2018 08:42AM
Hello!

On Mon, Jul 16, 2018 at 08:27:07PM -0400, bwmetcalf@gmail.com wrote:

> A couple of questions regarding UDP load balancing. If a UDP listener is
> configured to expect a response from its upstream nodes, is it possible to
> have another IP outside of the pool of upstream nodes send a response to the
> ephemeral port where nginx is expecting a response? I'm pretty sure the
> answer is no and the response has to come from the IP where the request was
> forwarded, but wanting to verify. We have a use case where another part of
> our backend system could possibly send that response if coded to do so, but
> I'm pretty sure this simply will not work.

You are right, this won't work.

> Secondly, how long will nginx keep the ephemeral port open waiting for a
> response from the upstream node where the request is sent and is this
> configurable? It looks like proxy_responses might be helpful in quickly
> terminating a session after the desired number of responses are received?

The port is closed either on proxy_timeout, or per
proxy_responses. Details can be found here:

http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_timeout
http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_responses

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

UDP load balancing and ephemeral ports

bwmetcalf@gmail.com July 16, 2018 08:27PM

Re: UDP load balancing and ephemeral ports

Maxim Dounin July 17, 2018 08:42AM

Re: UDP load balancing and ephemeral ports

bwmetcalf@gmail.com July 17, 2018 10:13AM

Re: UDP load balancing and ephemeral ports

Maxim Dounin July 17, 2018 10:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
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