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 keepalived handling during updates #185

Merged
merged 29 commits into from
Jun 14, 2023

Conversation

dergeberl
Copy link
Member

Currently it can take some seconds until the new keepalived is taking over, because the old LoadbalancerMachine gets deleted and we relay on keepalived to quickly taking over.

This consists of multible parts:

  • add revision annotation also to loadbalancermachine on creation
  • add ContainsKeepalivedMaster condition on loadbalancerset to identify if there is a keepalived master in this set
  • yawollet is now increase the prio of the keepalived if the loadbalancermachine is from the current revision, so new loadbalancermachines have a higher prio.
  • yawol-controller, waits with scaledown of old loadbalancersets until the ContainsKeepalivedMaster condition on the lbs is true for 2 min

Copy link
Member

@timebertt timebertt left a comment

Choose a reason for hiding this comment

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

Great improvement, thanks!
I left some suggestions inline.

controllers/yawollet/loadbalancer_controller_test.go Outdated Show resolved Hide resolved
internal/helper/const.go Outdated Show resolved Hide resolved
internal/helper/loadbalancermachine.go Outdated Show resolved Hide resolved
internal/helper/yawollet.go Outdated Show resolved Hide resolved
internal/helper/const.go Outdated Show resolved Hide resolved
internal/helper/const.go Outdated Show resolved Hide resolved
@timebertt timebertt self-assigned this Jun 14, 2023
@dergeberl dergeberl force-pushed the feature/keepalivedDuringUpdate branch from 954a416 to 935cc9c Compare June 14, 2023 08:18
controllers/yawollet/loadbalancer_controller.go Outdated Show resolved Hide resolved
internal/helper/const.go Outdated Show resolved Hide resolved
timebertt
timebertt previously approved these changes Jun 14, 2023
@timebertt timebertt marked this pull request as ready for review June 14, 2023 09:38
@dergeberl dergeberl merged commit f7f9784 into main Jun 14, 2023
@dergeberl dergeberl deleted the feature/keepalivedDuringUpdate branch June 14, 2023 11:50
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.

4 participants