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

fix(runloop): use upstream status code in passive health check (#10325) #10516

Closed
wants to merge 1 commit into from

Conversation

locao
Copy link
Contributor

@locao locao commented Mar 17, 2023

We expect the upstream passive unhealthy healthcheck on HTTP status code should only mark the targets as "down" (not reachable or proxiable) using the returned HTTP status code from the target, and it should not be affected by the final HTTP status code set by Kong plugin, which is returned to the client.

So we change the passive health check implementation to use nginx var upstream_code, this will not be changed by any plugin.

FTI-4841
Fix #10281

(cherry picked from commit dbe8d94)

Summary

Checklist

Full changelog

  • [Implement ...]

Issue reference

Fix #[issue number]

We expect the upstream passive unhealthy healthcheck on HTTP status code should only mark the targets as "down" (not reachable or proxiable) using the returned HTTP status code from the target, and it should not be affected by the final HTTP status code set by Kong plugin, which is returned to the client.

So we change the passive health check implementation to use nginx var `upstream_code`, this will not be changed by any plugin.

FTI-4841
Fix #10281

(cherry picked from commit dbe8d94)
@locao locao closed this Mar 17, 2023
@locao locao deleted the backport-10325-to-release/3.0.x branch March 17, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants