Allow setting the number of heat engine workers
This will allow scaling stack operations up on a single host. Change-Id: I8e9a3a7f86663fdda9b03c42e16b3e2189cbbfa5
This commit is contained in:
parent
322f61f5c7
commit
0bb12320f5
|
@ -62,6 +62,6 @@ if __name__ == '__main__':
|
|||
from heat.engine import service as engine
|
||||
|
||||
srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
|
||||
launcher = service.launch(srv)
|
||||
launcher = service.launch(srv, workers=cfg.CONF.num_engine_workers)
|
||||
notify.startup_notify(cfg.CONF.onready)
|
||||
launcher.wait()
|
||||
|
|
|
@ -75,7 +75,10 @@ service_opts = [
|
|||
help='Maximum raw byte size of any template.'),
|
||||
cfg.IntOpt('max_nested_stack_depth',
|
||||
default=3,
|
||||
help='Maximum depth allowed when using nested stacks.')]
|
||||
help='Maximum depth allowed when using nested stacks.'),
|
||||
cfg.IntOpt('num_engine_workers',
|
||||
default=1,
|
||||
help='Number of heat-engine processes to fork and run.')]
|
||||
|
||||
engine_opts = [
|
||||
cfg.StrOpt('instance_user',
|
||||
|
|
Loading…
Reference in New Issue