Skip to content

envoy: Start listening on xDS socket only after endpoint restoration #36032

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

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

jrajahalme
Copy link
Member

@jrajahalme jrajahalme commented Nov 19, 2024

NOTE: This has been reverted on main, see #36060.

Envoy can successfully connect to a socket as soon as the socket is listening, regardless when the accept calls on the new connections are made.

Delay listening on the xDS socket until endpoints have regenerated so that the time gap between the successful xDS connection and the initial fetch of the xDS resources is less likely to hit the initial fetch timeout. This silences related warnings in the logs. Hopefully there will not be a flood of warning logs due to the increased time to successful xDS connections now.

Envoy can successfully connect to a socket as soon as the socket is
listening, regardless when the accept calls on the new connections are
made.

Delay listening on the xDS socket until endpoints have regenerated so
that the time gap between the successful xDS connection and the initial
fetch of the xDS resources is less likely to hit the initial fetch
timeout. This silences related warnings in the logs. Hopefully there will
not be a flood of warning logs due to the increased time to successful
xDS connections now.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme added kind/bug This is a bug in the Cilium logic. area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. release-note/bug This PR fixes an issue in a previous release of Cilium. labels Nov 19, 2024
@jrajahalme jrajahalme requested a review from a team as a code owner November 19, 2024 10:08
@jrajahalme jrajahalme requested a review from sayboras November 19, 2024 10:08
@jrajahalme
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 19, 2024
@jrajahalme jrajahalme added needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch affects/v1.14 This issue affects v1.14 branch affects/v1.15 This issue affects v1.15 branch labels Nov 19, 2024
@jrajahalme jrajahalme added this pull request to the merge queue Nov 19, 2024
Merged via the queue into cilium:main with commit 40ac5c3 Nov 19, 2024
70 checks passed
@jrajahalme jrajahalme deleted the envoy-start-listening-later branch November 19, 2024 12:09
@jrajahalme jrajahalme added backport/author The backport will be carried out by the author of the PR. backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. and removed needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch labels Nov 19, 2024
@jrajahalme jrajahalme removed kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. backport/author The backport will be carried out by the author of the PR. affects/v1.14 This issue affects v1.14 branch affects/v1.15 This issue affects v1.15 branch backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. labels Dec 1, 2024
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants