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

Implement providing configuration for TCP_USER_TIMEOUT to linkerd-proxy #13024

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

UsingCoding
Copy link
Contributor

Implement providing configuration for LINKERD2_PROXY_INBOUND_ACCEPT_USER_TIMEOUT and LINKERD2_PROXY_OUTBOUND_CONNECT_USER_TIMEOUT to linkerd-proxy. Default values for 30s will be enough to linux TCP-stack completes about 7 packages retransmissions, after about 7 retransmissions RTO (retransmission timeout) will rapidly grows and do not make much sense to wait for too long. Setting TCP_USER_TIMEOUT between linkerd-proxy and wild world is enough, since connections to containers in same pod is more stable and reliable

Fixes #13023

Implement providing configuration for LINKERD2_PROXY_INBOUND_ACCEPT_USER_TIMEOUT and LINKERD2_PROXY_OUTBOUND_CONNECT_USER_TIMEOUT to linkerd-proxy. Default values for 30s will be enough to linux TCP-stack completes about 7 packages retransmissions, after about 7 retransmissions RTO (retransmission timeout) will rapidly grows and do not make much sense to wait for too long. Setting TCP_USER_TIMEOUT between linkerd-proxy and wild world is enough, since connections to containers in same pod is more stable and reliable

Fixes linkerd#13023

Signed-off-by: UsingCoding <[email protected]>
@UsingCoding UsingCoding requested a review from a team as a code owner September 4, 2024 20:41
@UsingCoding
Copy link
Contributor Author

@olix0r olix0r enabled auto-merge (squash) October 3, 2024 15:02
@olix0r olix0r merged commit 005a3a4 into linkerd:main Oct 3, 2024
36 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.

Implement TCP_USER_TIMEOUT to detect half-opened TCP connections leading to 15min of dangling connections
2 participants