Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to bind a new port for each process using SO_REUSEPORT(_LB) #1661

Open
graingert opened this issue Oct 2, 2024 · 0 comments
Open

Comments

@graingert
Copy link

graingert commented Oct 2, 2024

the linux kernel supports load balancing connections to a group of processes each using a new socket.bind using the SO_REUSEPORT flag. FreeBSD supports the same feature using SO_REUSEPORT_LB

supervisor should support an option to bind a new port for each process using this flag, as this would help improve performance for some workloads that require fair load balancing, that sharing a single socket between multiple processes does not.

see https://lwn.net/Articles/542629/ and where this issue was originally reported: encode/uvicorn#2467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant