Welcome! Log In Create A New Profile

Advanced

One-Packet Scheduler

Posted by patrickb 
One-Packet Scheduler
August 17, 2018 11:08AM
Hello,

we are using Nginx to load-balance UDP-based DNS queries to a number of upstream servers. The client side, which is not under our control, often uses fixed UDP source ports to avoid overloading stateful firewalls.

Before version 1.15 of Nginx every query packet was usually forwarded to a different upstream, but with version 1.15 of Nginx this no longer seems to be possible because of this feature:

" *) Feature: now the stream module can handle multiple incoming UDP
datagrams from a client within a single session."

While we understand, that it is a great improvement for many UDP based applications, for us it is causing uneven distribution of DNS queries/work load to upstreams.

Our request would be to add a possibility to retain to the former behaviour. LVS/Ipvadm calls it "one-packet scheduler". The suggestion would be a configuration switch to modify the session behaviour, so that every request packet could be forwarded to a different upstream.

Thank you for providing this excellent software!

Best Regards,
Patrick Beckmann

tyntec GmbH, Germany
Re: One-Packet Scheduler
January 15, 2020 05:37AM
Just for the record: This has been implemented with the feature/directive "proxy_requests" in the Stream module in Nginx version 1.15.7. Thanks a lot!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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