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(healthchecks) ensure health posted via cluster_events can be read #3464

Merged
merged 1 commit into from
May 17, 2018

Conversation

hishamhm
Copy link
Contributor

The problem was that when an upstream health update in propagated via cluster events, only the upstream name (and not the id) was being forwarded. This resulted in post_health having the correct behavior in the Kong node where the /healthy or /unhealthy endpoint was used, but the information wasn't propagated to the cluster as advertised.

(The problem doesn't happen at worker level because the healthchecker objects coordinate among themselves.)

This PR changes the balancer:post_health cluster events message to include upstream id data.

This PR includes a regression test. Also, replaced hardcoded port numbers with variables in the multi-node tests.

The problem was that when an upstream health update in propagated via cluster
events, only the upstream name (and not the id) was being forwarded. This
resulted in `post_health` having the correct behavior in the Kong node where the
`/healthy` or `/unhealthy` endpoint was used, but the information wasn't
propagated to the cluster as advertised.

This PR also includes a regression test (also, replaced hardcoded
port numbers with variables in the multi-node tests).
@thibaultcha thibaultcha merged commit b29710d into master May 17, 2018
@thibaultcha thibaultcha deleted the fix/post-health-propagation branch May 17, 2018 01:04
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