Skip to content

Envoy simplify listener setup #35642

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 2 commits into from
Oct 31, 2024

Conversation

jrajahalme
Copy link
Member

Rely on xDS cache for listener creation rather than reference counting. After this the listener reference counting is only used for deleting the listener when the reference count gets to zero.

Do not ignore xDS messages with invalid nonce, as that could lead to a stalled stream. Cancel the stream instead so that Envoy would reopen a new one.

Listeners are only created when first needed and deleted when not needed any more. Log these events so that they are visible without debug logs.

@jrajahalme jrajahalme added kind/cleanup This includes no functional changes. area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. area/servicemesh GH issues or PRs regarding servicemesh labels Oct 30, 2024
@jrajahalme jrajahalme requested review from a team as code owners October 30, 2024 09:16
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Oct 30, 2024
@jrajahalme jrajahalme added the release-note/misc This PR makes changes that have no direct user impact. label Oct 30, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Oct 30, 2024
@jrajahalme
Copy link
Member Author

/test

@jrajahalme jrajahalme added needs-backport/1.14 needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch labels Oct 30, 2024
Listeners are only created when first needed and deleted when not needed
any more. Log these events so that they are visible without debug logs.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Rely on xDS cache for listener creation rather than reference
counting. After this the listener reference counting is only used for
deleting the listener when the reference count gets to zero.

Do not ignore xDS messages with invalid nonce, as that could lead to a
stalled stream. Cancel the stream instead so that Envoy would reopen a
new one.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme force-pushed the envoy-simplify-listener-setup branch from 77d8fbf to a019e33 Compare October 30, 2024 20:58
@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 Oct 31, 2024
@jrajahalme jrajahalme requested a review from squeed October 31, 2024 09:45
@jrajahalme jrajahalme added this pull request to the merge queue Oct 31, 2024
Merged via the queue into cilium:main with commit 2b3b761 Oct 31, 2024
65 of 66 checks passed
@jrajahalme jrajahalme deleted the envoy-simplify-listener-setup branch October 31, 2024 09:55
@maintainer-s-little-helper maintainer-s-little-helper bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 31, 2024
@jrajahalme jrajahalme added 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 5, 2024
@jrajahalme jrajahalme added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 labels Nov 5, 2024
@jrajahalme jrajahalme added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 labels Nov 5, 2024
@github-actions github-actions bot added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Nov 6, 2024
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. area/servicemesh GH issues or PRs regarding servicemesh backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. kind/cleanup This includes no functional changes. 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