serving icon indicating copy to clipboard operation
serving copied to clipboard

make max_num_load_retries configurable for the build-in model_server

Open yuzheng21 opened this issue 8 years ago • 2 comments

Describe the problem the feature is intended to solve

In current build-in model_server, there is no way to config max_num_load_retries of basic_manager. max_num_load_retries is only exposed in server_core.h, but not instantiated in model_servers/main.cc.

Describe the solution

Add a flag to main.cc like

tensorflow::Flag("max_num_load_retries", &max_num_load_retries,
                 "maximum number of times it retries loading a model "
                 "after the first failure, before giving up."),

System information

  • TensorFlow Serving installed from: docker image
  • TensorFlow Serving version: 1.10.0

Describe the problem

In my use case, retrying model loading is unnecessary. I am doing dynamically load / reload with the official tensorflow/serving docker image. This retry behavior blocks 5 mins for each invalid model in the reconfig request. I want to switch it off (set max_num_load_retries = 0) without forking and building my own docker image.

yuzheng21 avatar Sep 18 '18 20:09 yuzheng21

Can you please send a PR to add this flag, I can help review.

Thanks!

netfs avatar Sep 18 '18 22:09 netfs

fixed in #1101, and available in latest 1.11 release too.

netfs avatar Oct 09 '18 04:10 netfs