-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
grpc server get stuck but clientHealthCheck do not report server unhealthy #5214
Comments
The client-side health checks (which must be enabled via the service config) interact with the server's health check service (go impl). The client also needs to import the health package. Are you sure you have both sides configured properly? |
Please also see the example: https://github.com/grpc/grpc-go/tree/master/examples/features/health |
@dfawley I am sure that healthcheck service works on both sides. Client-side got first
|
Can you try enabling keepalives on your client? https://github.com/grpc/grpc-go/tree/master/examples/features/keepalive for an example. |
GRPC keepalive works for me. Thanks for your help. @dfawley I will close this issue. |
What version of gRPC are you using?
version: v1.38.0
What version of Go are you using (
go version
)?golang: 1.17.4
What operating system (Linux, Windows, …) and version?
linux
What did you do?
I use
kill -19
to stop grpc server, butclientHealthCheck
do not report server unhealthy.What did you expect to see?
report server unhealthy
What did you see instead?
grpc server get stuck, but
clientHealthCheck
do not report server unhealthyThe text was updated successfully, but these errors were encountered: