-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Support SO_REUSEPORT #13808
Copy link
Copy link
Open
Labels
component/serverfeature/acceptedThis feature request is accepted by product managersThis feature request is accepted by product managershelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.priority/P1The issue has P1 priority.The issue has P1 priority.type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Milestone
Metadata
Metadata
Assignees
Labels
component/serverfeature/acceptedThis feature request is accepted by product managersThis feature request is accepted by product managershelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.priority/P1The issue has P1 priority.The issue has P1 priority.type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature Request
Is your feature request related to a problem? Please describe:
Describe the feature you'd like:
Support SO_REUSEPORT for TiDB
After Linux version 3.9, TCP and UDP support for the SO_REUSEPORT socket option; that support was implemented in a series of patches by Tom Herbert. The new socket option allows multiple sockets on the same host to bind to the same port, and is intended to improve the performance of multithreaded network server applications running on top of multicore systems.
Benefits:
Describe alternatives you've considered:
tidb-ansiblemay need to be modified because it's waiting for the port oftidb-serverlistening to make sure the process is started. After supporting SO_REUSEPORT, eachtidb-serveron a same machine may be listening to a same port.Teachability, Documentation, Adoption, Migration Strategy: