-
Notifications
You must be signed in to change notification settings - Fork 7
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
[NET11250]Added fix for health check update for consul-dataplane #267
Conversation
When we update the consul-dataplane health status, we should take into account the service health status as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @abhishek-hashicorp
Thank you for working on this! I left a few comments for your consideration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for going through my comments @abhishek-hashicorp, I left 2 minor comments, but nothing blocking 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM
When we update the consul-dataplane health status, we should take into account the service health status as well
Changes proposed in this PR:
consul-dataplane
to take into account the service health as well during health-sync checksHow I've tested this PR:
Created an AWS ECS cluster with 2 services
frontend
andbackend
. The port for the backend health was misconfigured so that the service fails.Before the fix:
On accessing
curl 0:19000/clusters
from thefrontend
service, we found that the health forbackend
service was showing as healthy.After the fix:
The
curl 0:19000/clusters
was showingOnce the port was fixed, the
backend
service was again showing as healthy using thecurl 0:19000/clusters
endpoint fromfrontend
How I expect reviewers to test this PR:
👀
Checklist: