serving icon indicating copy to clipboard operation
serving copied to clipboard

service ping

Open mazorigal opened this issue 9 years ago • 26 comments

Hi,

is there any option to ping tensorflow serving, in order to check if the service is up and running ? That is especially helpful in environments where each service monitored via ping and health endpoints.

Thanks,

mazorigal avatar Nov 27 '17 19:11 mazorigal

For anyone interested, I made a small tensorflow serving health probe. It communicates with tensorflow serving over grpc, calling the ModelService.GetModelStatus() rpc, and ensures a model status of AVAILABLE. It can be used as a kubernetes exec probe, similar to grpc_health_probe.

tfs_model_status_probe - TensorFlow Serving Model Status Probe https://github.com/codycollier/tfs-model-status-probe

codycollier avatar Dec 03 '20 05:12 codycollier

Hi @mazorigal

Could you kindly look at this PR and @codycollier's comment, please confirm if this issue can be closed? Thanks

pindinagesh avatar Apr 07 '22 05:04 pindinagesh

Hi @mazorigal

Closing this issue due to lack of inactivity. Please feel free to reopen if this still exists.Thanks

pindinagesh avatar Apr 25 '22 03:04 pindinagesh

Has a health check been added? If so can you point me to it? I think everyone on this issue agrees a health check is necessary. Why would the ticket be closed due to inactivity?

lsnetsinger avatar Jul 07 '22 22:07 lsnetsinger

As far as I know the tensorflow_model_server does not support a health check RPC as in

https://github.com/grpc/grpc/blob/master/doc/health-checking.md

What I've used instead in my project are GetModelMetadataRequest calls to the servers to check for liveness and model presence.

I am trying to do this but the GetModelMetadata succeeds event though the Predict doesn't. when I am making the service unavailable stub.Predict throws the following error: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNAVAILABLE However GetModelMetadata does not throw any error.

elina-israyelyan avatar Aug 25 '22 11:08 elina-israyelyan

Why is this closed? How is it that a flagship google product (tensorflow serving) doesn’t implement its own company’s health check protocol? Seems wild to me

jCrompton avatar Nov 16 '23 22:11 jCrompton