make max_num_load_retries configurable for the build-in model_server
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.
Can you please send a PR to add this flag, I can help review.
Thanks!
fixed in #1101, and available in latest 1.11 release too.