Skip to content

Increase the default backlog of listen() to net.core.somaxconn of Linux. - #2461

Open
wenjianhn wants to merge 1 commit into
apache:masterfrom
wenjianhn:feat/increase-listen-backlog
Open

wenjianhn wants to merge 1 commit into
apache:masterfrom
wenjianhn:feat/increase-listen-backlog

Conversation

@wenjianhn

Copy link
Copy Markdown

Another approach to fix ZOOKEEPER-974. Our use case is to handle 100k clients.

50 is a very small value. Google has been using 1024 for at least 21 years, and they increased this to 4096 after TCP listener rework has been completed, more than 11 years ago. They got no complain of this change breaking any legacy application. See
torvalds/linux@19f92a0

Another approach to fix ZOOKEEPER-974. Our use case is to handle 100k
clients.

50 is a very small value. Google has been using 1024 for at least 21
years, and they increased this to 4096 after TCP listener rework has
been completed, more than 11 years ago. They got no complain of this
change breaking any legacy application. See
torvalds/linux@19f92a0
@wenjianhn
wenjianhn force-pushed the feat/increase-listen-backlog branch from 3c3d864 to 86ac52b Compare September 24, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant