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

SurgicalPool extension by the load balancing algorithm (the same way as the RoutePool) #460

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

Dariquest
Copy link
Contributor

Summary

Issue #458

LoadBalancing Algorithm was introduced for the RoutePool in the PR.
The load balancing algorithm is also needed to be passed to the SurgicalPool (included in the RouteOpts for the initialization).
Missing load balancing algorithm in the surgical pool leads to the error "invalid-pool-load-balancing-algorithm".
This error is intended validation for a pool load balancing algorithm. An additional log parameter was added for this error either.

Reproduction Steps

When I curl an app with an x-cf-app-instance header

curl -v "https://example-app.com/" -H "x-cf-app-instance: app_id:instance_id"

The same curl without the instance header works properly.

Backward Compatibility


Breaking Change? No

@Dariquest Dariquest requested a review from a team as a code owner December 17, 2024 16:06
@Dariquest
Copy link
Contributor Author

Adding reference to an issue #458

@peanball peanball merged commit 2dd96da into cloudfoundry:main Dec 17, 2024
1 check passed
@ameowlia
Copy link
Member

ameowlia commented Dec 19, 2024

Before you merge a PR, please make sure you run ALL of the tests via routing-release/scripts/test-in-docker.

This PR broke the tests because of a go fmt issue that would've been caught with the script. Also I am concerned that there were no tests for this PR...

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