-
Notifications
You must be signed in to change notification settings - Fork 189
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
Multiple services check support #92
Comments
The Check(serviceName) is a standard RPC defined by gRPC. We just mirror that in this tool and so far this never came up, that's why I am inclined to wait for more priority this. In the meantime, you can use GNU Parallel or a similar bash script equivalent to achieve the same task? |
I understand that grpc check supports single service check. My proposition is to loop over passed/discovered services names and call the check for each service. |
I am inclined to say that you can probably do that loop yourself in a little wrapper script. It's mostly a philosophical question as to whether CLI tools should support multiple arguments instead of making the caller write that loop. Some tools like One can also make an argument that since you control the implementation of the I'll keep this issue open, but I highly doubt we'd implement something that discovers services and loop over them. |
No need to implement |
I think adding something like this requires more thought. Not all gRPC servers offer reflection (it's a minority that I'd say allows reflection API in practice), furthermore even the HealthService itself is included in the reflection. Furthermore, I am not sure why this can't be implemented in the server by leaving the |
If user passes |
@ahmetb wrote:
If you're shipping your application in a shell-free image like gcr/distroless, the typical for/in/do/done shell scripts won't work -- there is literally no So, my two cents: |
If you're using Kubernetes, I recommend giving this feedback to the builtin grpc health probe in Kubernetes. This project is largely in maintenance mode at this point. |
We're not on 1.23 yet, so we're stuck with maintenance mode :) |
like
-service=service1,service2
Another option is to support
-discoverServices
flag that will use reflection API to discover services and then runscheck
for each discovered service.The text was updated successfully, but these errors were encountered: