-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[feature] HTTP/2 and gRPC health-checks support #3073
Comments
It would be really great to have this addition. Right now we are using tcp health that creates Exception at the server side. One workaround is we can use script check. |
That would be fine + |
I was just wondering, what sort of form would this take? My proposal is that we would have a grpc service which takes empty message and returns something else (maybe even empty). If the return was OK, then the service is ok, otherwise it isn't. One issue would be how do we transmit information? Currently, we always return JSON, even in case of error, so that this is stored in Consul and we can diagnose any problems. Maybe metadata is the way to go for this? |
There is already an standard defined by GRPC. https://github.com/grpc/grpc/blob/master/doc/health-checking.md . It would great if we follow that. |
We just released https://github.com/ncbi/gprobe and going to use it with script check in Consul. Our plan is to contribute same feature into Consul codebase if @slackpad will be willing to accept such a PR |
Hey @ashald this looks like a simple addition - we'd welcome a PR fo it! |
Great! @edio already has it on his todo list! |
So will it be support in future version? |
I have feature implemented, however, there's issue with dependencies that blocks me from creating a PR TLDRvendored Long version:consul has a dependency to hashicorp/go-discover hashicorp/go-discover has gce provider, which vendors package
The same package is imported by grpc-go (not vendored). This, as far as I understand, leads to a situation, where the same
I'm not that familiar with the codebase to propose any solution. Just bringing this up for your attention and looking for any advice on resolving/workarounding this. |
just FYI, unvendoring |
Given the raising popularity of HTTP/2 and gRPC it'd be nice to be able to health-check such services natively with Consul.
The text was updated successfully, but these errors were encountered: