Skip to content

Conversation

joamaki
Copy link
Contributor

@joamaki joamaki commented Aug 7, 2025

The 50ms minimum retry leads to very high load if there are many entries that do not fit into the LB BPF maps.

Since the probability of a BPF syscall failing without maps being full is very unlikely, raise default to 1 second to avoid excessive load in situations where BPF maps overflow.

This was found during benchmarking when I accidentally added ~150000 backends, so 90k more than fit in the map. If there's only few entries that overflow than even with the 50ms minimum retry the load is minimal, so it's more of a "fix for extremes". Marking for backport to v1.18 as this is still useful to change.

The 50ms minimum retry leads to very high load if there are many
entries that do not fit into the LB BPF maps.

Since the probability of a BPF syscall failing without maps being
full is very unlikely, raise default to 1 second to avoid excessive
load in situations where BPF maps overflow.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
@joamaki joamaki requested a review from a team as a code owner August 7, 2025 12:07
@joamaki joamaki added the release-note/misc This PR makes changes that have no direct user impact. label Aug 7, 2025
@joamaki joamaki requested a review from aditighag August 7, 2025 12:07
@joamaki
Copy link
Contributor Author

joamaki commented Aug 7, 2025

/test

@joamaki joamaki enabled auto-merge August 7, 2025 14:12
@joamaki joamaki added the needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch label Aug 7, 2025
@joamaki joamaki added this pull request to the merge queue Aug 8, 2025
@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 Aug 8, 2025
Merged via the queue into cilium:main with commit 8e2f55d Aug 8, 2025
74 checks passed
@joamaki joamaki deleted the pr/joamaki/lb-relax-retrying branch August 8, 2025 10:30
@YutaroHayakawa YutaroHayakawa mentioned this pull request Aug 11, 2025
10 tasks
@YutaroHayakawa YutaroHayakawa added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Aug 11, 2025
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. 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