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: add DisableTCPNoDelay #650

Merged
merged 2 commits into from
Oct 20, 2024
Merged

feat: add DisableTCPNoDelay #650

merged 2 commits into from
Oct 20, 2024

Conversation

rueian
Copy link
Collaborator

@rueian rueian commented Oct 18, 2024

We found that turning on Nagle's algorithm (DisableTCPNoDelay=true) may improve performance depending on the network condition and workloads, especially when all your requests are small and your network interfaces are relatively slow.

Benchmark results on 2 GCP n2-highcpu-2 machines (client and redis server):

PipelineMultiplex=-1 (1 connection):
image

PipelineMultiplex=1 (2 connections):
image

PipelineMultiplex=2 (4 connections):
image

@rueian rueian changed the title perf: turn off TCP NoDelay on pipeline mode feat: add DisableTCPNoDelay Oct 20, 2024
@rueian rueian marked this pull request as ready for review October 20, 2024 07:15
@rueian rueian merged commit 28fba8c into main Oct 20, 2024
54 checks passed
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