Merge "Revert "Default engine workers to the number of CPUs""

This commit is contained in:
Jenkins 2014-05-20 20:07:15 +00:00 committed by Gerrit Code Review
commit fd658d72c6
2 changed files with 3 additions and 9 deletions

View File

@ -21,7 +21,6 @@ which then calls into this engine.
import eventlet
eventlet.monkey_patch()
import multiprocessing
import os
import sys
@ -62,11 +61,7 @@ if __name__ == '__main__':
from heat.engine import service as engine
num_workers = cfg.CONF.num_engine_workers
if num_workers == -1:
num_workers = multiprocessing.cpu_count()
srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
launcher = service.launch(srv, workers=num_workers)
launcher = service.launch(srv, workers=cfg.CONF.num_engine_workers)
notify.startup_notify(cfg.CONF.onready)
launcher.wait()

View File

@ -77,9 +77,8 @@ service_opts = [
default=3,
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. -1'
' will spawn a worker for each CPU on the machine')]
default=1,
help='Number of heat-engine processes to fork and run.')]
engine_opts = [
cfg.StrOpt('instance_user',