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:
Clint Byrum 2014-05-14 17:49:28 -04:00
parent 322f61f5c7
commit 0bb12320f5
2 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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',