You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem the feature is intended to solve
I'm using a docker container on an edge device and would like to be able to shut it down if it becomes unresponsive.
Describe the solution
Inside the docker file add a HEALTHCHECK section. I'll leave it up to the TensorFlow team to decide how it should be checked. Just checking the container is alive would be a start, actually checking that it can return predictions would be even better.
For checking if it is alive, I use this in Jupyter notebooks. This isn't a complete solution, but just an idea.
curl http://10.0.0.10:8501/v1/models/my_model
For checking if predictions can be returned, I would be happy with a prediction from the half plus two model that is used when testing the dockerfile.
This is an exert from the linked Docker documentation on how to add health checks.
None yet. Open to suggestions on how to restart a contain started with systemd
Additional context
I'm using rootless Podman and Ubuntu 24.04 on an edge device. I'd like to use the health checking built into Podman to be able to kill the container, and then have systemd bring up a fresh container. I have no problems starting and using TensorFlow Serving with Podman, but monitoring does not currently work for me.
The text was updated successfully, but these errors were encountered:
Feature Request
Add a health check to the Dockerfile
Describe the problem the feature is intended to solve
I'm using a docker container on an edge device and would like to be able to shut it down if it becomes unresponsive.
Describe the solution
Inside the docker file add a HEALTHCHECK section. I'll leave it up to the TensorFlow team to decide how it should be checked. Just checking the container is alive would be a start, actually checking that it can return predictions would be even better.
For checking if it is alive, I use this in Jupyter notebooks. This isn't a complete solution, but just an idea.
For checking if predictions can be returned, I would be happy with a prediction from the half plus two model that is used when testing the dockerfile.
This is an exert from the linked Docker documentation on how to add health checks.
HEALTHCHECK --interval=5m --timeout=3s \ [CMD](https://docs.docker.com/reference/dockerfile/#cmd) curl -f http://localhost/ || exit 1
Describe alternatives you've considered
None yet. Open to suggestions on how to restart a contain started with systemd
Additional context
I'm using rootless Podman and Ubuntu 24.04 on an edge device. I'd like to use the health checking built into Podman to be able to kill the container, and then have systemd bring up a fresh container. I have no problems starting and using TensorFlow Serving with Podman, but monitoring does not currently work for me.
The text was updated successfully, but these errors were encountered: