model_server icon indicating copy to clipboard operation
model_server copied to clipboard

Dynamically change configuration file

Open golisandeep3 opened this issue 7 years ago • 5 comments

How can we dynamically add or delete new models without restarting the service ?

golisandeep3 avatar Jun 28 '19 18:06 golisandeep3

Hi,

Once you start a service with desired models you won't be able to add or delete models without restarting a service. Models paths and version policies set at the beginning and cannot be changed after server starts.

The only way to change what's served is with model versions. For example if you have a model in /opt/model with version 1 i.e. (/opt/model/1), then you can place another model in let's say /opt/model/2. In this situation, depending on that model's version policy you can:

  • have both versions served - for model version policy all
  • only version 2 - for model version policy latest

Server detects adding and removing versions and updates to match model version policy For more details on model version policy check out https://github.com/IntelAI/OpenVINO-model-server/blob/master/docs/docker_container.md#model-version-policy

mzegla avatar Jul 01 '19 08:07 mzegla

@mzegla Are there any plans to support this feature ? I see that some apis are compatible with Tensorflow serving, it has this dynamic reconfiguration api.

golisandeep3 avatar Jul 01 '19 23:07 golisandeep3

Hi @golisandeep3,

I am the product manager for OpenVINO Model Server. We have not enabled this feature yet. If you would like to discuss this more, please send me an email [email protected]. It is possible for us to enable, but will require time to develop and implement. I would like to understand your use case.

Thank you,

Ryan

ghost avatar Jul 02 '19 21:07 ghost

@golisandeep3 The functionality for adding or removing the models is now added to new OVMS version 2021.1. With this new release you can just edit the config file. OVMS will detect the changes and apply the needed updates without restarting the service and impacting its availability.

dtrawins avatar Oct 06 '20 22:10 dtrawins

Request implemented.

rasapala avatar Oct 29 '20 13:10 rasapala