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

v1.15 Backports - background node sync improvements #32748

Merged

Conversation

marseel
Copy link
Contributor

@marseel marseel commented May 28, 2024

Once this PR is merged, a GitHub action will update the labels of these PRs:

 32577 32630

[ upstream commit 1963879 ]

[ Backporter's notes: removed comment about race-condition, changed test
from testing to check package, changed health-module to cell, removed
indent of m.Iter ]

Before, depending on cluster-size we were triggering node update for
each node at fixed intervals depending on cluster-size. This resulted in
high cpu usage spike in agent. While the intent is to fix state that got
stale and shouldn't be the primary source of updates, it makes sense to
spread these updates over time to average out cpu usage.

Also, reenable backgroundSync test.

Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
[ upstream commit 598209e ]

During bootrstrap, we don't know number of nodes and new implementation
essentially was hot looping till fetched nodes. Also, in case of cluster
with single node, rate-limiter was not rate-limiting.

Fixes cilium#32577

Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
@marseel marseel added kind/backports This PR provides functionality previously merged into master. backport/1.15 This PR represents a backport for Cilium 1.15.x of a PR that was merged to main. labels May 28, 2024
@marseel marseel requested a review from tklauser May 28, 2024 09:29
@marseel
Copy link
Contributor Author

marseel commented May 28, 2024

/test-backport-1.15

@marseel marseel marked this pull request as ready for review May 28, 2024 13:30
@marseel marseel requested a review from a team as a code owner May 28, 2024 13:30
@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 May 28, 2024
@tklauser tklauser merged commit 2019ebe into cilium:v1.15 May 28, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.15 This PR represents a backport for Cilium 1.15.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
No open projects
Status: Released
Development

Successfully merging this pull request may close these issues.

None yet

3 participants