Skip to content

Conversation

marseel
Copy link
Contributor

@marseel marseel commented Jun 4, 2024

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

 32577 32630

marseel added 2 commits June 4, 2024 16:24
[ upstream commit 3e12e02 ]

[ Backporter's notes: no error handling in v1.14, different m.Iter part,
no health module. closeChan instead of context. ]

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 2019ebe ]

[ Backporter's notes: minor conflicts due to lack of context and
closeChan instead. ]

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 #32577

Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
@marseel marseel requested a review from giorio94 June 4, 2024 14:28
@maintainer-s-little-helper maintainer-s-little-helper bot added backport/1.13 kind/backports This PR provides functionality previously merged into master. labels Jun 4, 2024
@marseel
Copy link
Contributor Author

marseel commented Jun 4, 2024

/test-backport-1.13

@marseel marseel marked this pull request as ready for review June 4, 2024 16:10
@marseel marseel requested a review from a team as a code owner June 4, 2024 16:10
Copy link
Member

@giorio94 giorio94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm, thanks!

A couple of nits inline, given that I saw them. But feel free to ignore to avoid another CI round.

@marseel
Copy link
Contributor Author

marseel commented Jun 5, 2024

yea, I will skip that due to CI. Seems like Jenkins is having a tough time today.

@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 Jun 5, 2024
@qmonnet qmonnet merged commit 4c64c45 into v1.13 Jun 5, 2024
@qmonnet qmonnet deleted the backport_background_sync_1.13 branch June 5, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants