serving icon indicating copy to clipboard operation
serving copied to clipboard

Tensorflow Serving should handle SIGTERM correctly

Open miguelvr opened this issue 3 years ago • 4 comments

TF Serving should terminate gracefully when SIGTERM is received.

This is especially important for docker / kubernetes use cases when a process is terminated gracefully or is killed have very different meanings for determinating a workload success status.

miguelvr avatar May 02 '21 10:05 miguelvr

Related issues :- #799,#498,#356.

arghyaganguly avatar May 03 '21 04:05 arghyaganguly

Related issues :- #799,#498,#356.

All closed and unsolved... I looked it up before

miguelvr avatar May 03 '21 06:05 miguelvr

What kind of server doesn't handle signals, it's basic functionality of any server. I was really surprised to find out that tensorflow-serving just ignores it.

Ideally SIGTERM should do a graceful shut down where all existing connections are served by shutting down.

Otherwise the relevant signal should be set in the Dockerfile.

vaskozl avatar Mar 23 '23 15:03 vaskozl

Bumping issue again. Are there any plans to support graceful shutdown for tensorflow-serving? As already been said - for hosting tensorflow_serving in k8s this is must have feature for easy & smooth deployments rollout and scale up/scale down events.

CC @nniuzft

sivukhin avatar Mar 05 '24 09:03 sivukhin