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

[release-1.31] Fix issue with loadbalancer failover to default server #11324

Merged

Conversation

brandond
Copy link
Member

Proposed Changes

The loadbalancer should only fail over to the default server if all other server have failed, and it should force fail-back to a preferred server as soon as one passes health checks.

The loadbalancer tests have been improved to ensure that this occurs.

Types of Changes

bugfix

Verification

See linked issue

Testing

yes

Linked Issues

User-Facing Change


Further Comments

The loadbalancer should only fail over to the default server if all other server have failed, and it should force fail-back to a preferred server as soon as one passes health checks.

The loadbalancer tests have been improved to ensure that this occurs.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond requested a review from a team as a code owner November 14, 2024 10:24
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 13.85%. Comparing base (52caaab) to head (32428f3).
Report is 5 commits behind head on release-1.31.

Files with missing lines Patch % Lines
pkg/agent/loadbalancer/servers.go 78.94% 4 Missing ⚠️
pkg/util/apierrors.go 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (52caaab) and HEAD (32428f3). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (52caaab) HEAD (32428f3)
inttests 11 0
e2etests 7 0
Additional details and impacted files
@@                Coverage Diff                @@
##           release-1.31   #11324       +/-   ##
=================================================
- Coverage         46.49%   13.85%   -32.65%     
=================================================
  Files               179      176        -3     
  Lines             18555    18494       -61     
=================================================
- Hits               8628     2562     -6066     
- Misses             8608    15635     +7027     
+ Partials           1319      297     -1022     
Flag Coverage Δ
e2etests ?
inttests ?
unittests 13.85% <73.91%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brandond brandond merged commit 53d4dd8 into k3s-io:release-1.31 Nov 14, 2024
30 checks passed
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.

3 participants