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

feat(server): Add backlog flag for listen() #2456

Merged
merged 2 commits into from
Jan 23, 2024
Merged

feat(server): Add backlog flag for listen() #2456

merged 2 commits into from
Jan 23, 2024

Conversation

chakaz
Copy link
Collaborator

@chakaz chakaz commented Jan 22, 2024

Fixes #1643

@chakaz chakaz requested a review from romange January 22, 2024 20:02
kostasrim
kostasrim previously approved these changes Jan 22, 2024
@@ -73,6 +73,8 @@ ABSL_FLAG(bool, force_epoll, false,
ABSL_FLAG(bool, version_check, true,
"If true, Will monitor for new releases on Dragonfly servers once a day.");

ABSL_FLAG(uint16_t, backlog, 128, "TCP listen(2) backlog parameter.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets make it closer to redis name, i.e. tcp_backlog. Also clearer to what it refers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. done.

@romange romange enabled auto-merge (squash) January 23, 2024 08:01
@romange romange merged commit b777d31 into main Jan 23, 2024
10 checks passed
@romange romange deleted the listen-backlog branch January 23, 2024 08:19
@ice-cronus
Copy link

ice-cronus commented Jan 23, 2024

Hi guys! Which version it supposed to be released?

@romange
Copy link
Collaborator

romange commented Jan 23, 2024

Do you use docker or binary?

@ice-cronus
Copy link

Binary

@romange
Copy link
Collaborator

romange commented Jan 23, 2024

it's gonna be released in v1.15 next month.

@iagoalonsomrf
Copy link

@romange What about Docker releases?

@romange
Copy link
Collaborator

romange commented Jan 24, 2024

@cyppe
Copy link

cyppe commented Mar 27, 2024

I don't see it's available as option in helm chart yet.

I guess it also should increase this value in the container when we will set the param when available through helm?

Current values inside container running 15.1 through helm chart.

> cat /proc/sys/net/core/somaxconn
1024

> sysctl net.ipv4.tcp_max_syn_backlog
net.ipv4.tcp_max_syn_backlog = 1024

At least according to redis docs:

CleanShot 2024-03-27 at 12 41 23@2x

@romange
Copy link
Collaborator

romange commented Mar 27, 2024

yeah, the helm chart was not updated, our default value is 128. If you need Helm chart support feel free to open a PR

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.

add tcp-backlog config
6 participants