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

New header "X-Load-Balancing-Endpoint-Weight" returned by service health #27017

Merged
merged 1 commit into from Jul 28, 2023

Conversation

cezarygerard
Copy link
Contributor

@cezarygerard cezarygerard commented Jul 24, 2023

add new header "X-Load-Balancing-Endpoint-Weight" returned from service health. Value of the header is number of local endpoints. Header can be used in weighted load balancing. Parsing header for number of endpoints is faster than unmarshalling json from the content body, and it can be returned via HTTP HEAD method.

The header has been already added to kube-proxy service health code in kubernetes/kubernetes#118999 (will be released in kubernetes v1.28)

For services with `External Traffic Policy: Local` Service health returns http header "X-Load-Balancing-Endpoint-Weight" with number of local endpoints. The same information is still available in response body JSON payload.LocalEndpoints.

@cezarygerard cezarygerard requested a review from a team as a code owner July 24, 2023 12:27
@maintainer-s-little-helper
Copy link

Commit df8f288a3fcda1cbaab9167ca851360301e4dd2a does not contain "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Jul 24, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Jul 24, 2023
returned from service health. Value of the header is number of local endpoints.

Signed-off-by: Cezary Zawadka <czawadka@google.com>
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Jul 25, 2023
@cezarygerard
Copy link
Contributor Author

/label release-note/misc

@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Jul 25, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 25, 2023
@cezarygerard
Copy link
Contributor Author

@ysksuzuki @joestringer @alan-kut


Merging is blocked
The base branch restricts merging to authorized users.

Who should be able to merge this branch?

@joestringer
Copy link
Member

/test

@joestringer
Copy link
Member

All tests must pass and all codeowner reviews must be checked off, then typically there's a rotating hat for a committer to sweep through and merge PRs like this. I've kicked off the full testsuite to confirm the other requirement before merge.

@youngnick
Copy link
Contributor

Going to give the tests one more crack, I've seen some weird connectivity shenanigans in the last 24 hours.

@youngnick
Copy link
Contributor

/test

@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 Jul 28, 2023
@youngnick youngnick merged commit 276c556 into cilium:main Jul 28, 2023
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-contribution This was a contribution made by a community member. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants