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

Improve Requeue durations of LoadBalancer Reconciler #284

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

maboehm
Copy link
Collaborator

@maboehm maboehm commented Jan 24, 2024

The LB controller is careful before scaling down an old LBS, requiring the new LBS to have the keepalived master for at least two minutes. But during that "stability" wait period, it is likely that nothing will trigger another reconcile (LB&LBS are stable at this point), so the next time the reconciler is run is after 5 minutes.

With this change, the check function helper.LBSetHasKeepalivedMaster() also returns a duration after which it's worth checking again. We use that to determine our next reconcile, making sure to limit this to 5 minutes.

@maboehm maboehm force-pushed the feature/improve-lb-reconcile branch from 9f8dba2 to 841a051 Compare January 24, 2024 15:05
@dergeberl dergeberl merged commit 69cbb54 into main Feb 14, 2024
1 check passed
@dergeberl dergeberl deleted the feature/improve-lb-reconcile branch February 14, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants