Skip to content

feat: add DisableTCPNoDelay#650

Merged
rueian merged 2 commits into
mainfrom
perf-no-nodelay-pipeline
Oct 20, 2024
Merged

feat: add DisableTCPNoDelay#650
rueian merged 2 commits into
mainfrom
perf-no-nodelay-pipeline

Conversation

@rueian

@rueian rueian commented Oct 18, 2024

Copy link
Copy Markdown
Collaborator

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 force-pushed the perf-no-nodelay-pipeline branch from 912f223 to dd258a9 Compare October 20, 2024 07:18
@rueian
rueian merged commit 28fba8c into main Oct 20, 2024
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