Enable mutable config in Cyborg

This patch makes sure Cyborg complies with the community
Rocky goal for mutable config.

Part of bp:mutable-config

Change-Id: I6dec0492f59ee45501b1bff73453b1335aafb62b
Signed-off-by: zhipengh <huangzhipeng@huawei.com>
This commit is contained in:
zhipengh 2018-04-06 17:39:03 +08:00
parent e68b5b49f0
commit 3b93fda114
4 changed files with 5 additions and 4 deletions

View File

@ -33,5 +33,5 @@ def main():
'AgentManager',
constants.AGENT_TOPIC)
launcher = service.launch(CONF, mgr)
launcher = service.launch(CONF, mgr, restart_method='mutate')
launcher.wait()

View File

@ -32,5 +32,6 @@ def main():
# Build and start the WSGI app
launcher = cyborg_service.process_launcher()
server = cyborg_service.WSGIService('cyborg_api', CONF.api.enable_ssl_api)
launcher.launch_service(server, workers=server.workers)
launcher.launch_service(server, workers=server.workers,
restart_method='mutate')
launcher.wait()

View File

@ -35,5 +35,5 @@ def main():
'ConductorManager',
constants.CONDUCTOR_TOPIC)
launcher = service.launch(CONF, mgr)
launcher = service.launch(CONF, mgr, restart_method='mutate')
launcher.wait()

View File

@ -89,7 +89,7 @@ def prepare_service(argv=None):
def process_launcher():
return service.ProcessLauncher(CONF)
return service.ProcessLauncher(CONF, restart_method='mutate')
class WSGIService(service.ServiceBase):