Skip to content

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

@graingert

Description

@graingert

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: Kludex/uvicorn#2467

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions