heat/bin
Steven Hardy 507555a585 Move Engine initialization into service start()
Currently we create the ThreadGroupManager and EngineListener
objects in the service constructor, which is not necessarily
going to work if multiple worker processes are specified in
the config file (which fork multiple workers after the constructor).

The ThreadGroupManager appears to work, even when it is created before
the fork, but this is due to some magic in the oslo ProcessLauncher
implementation which decouples parent/child use of the eventlet hub.

So instead, we move all service startup code into the start() method,
which is the entry point for services, triggered via the oslo Services
class run_service method:

- Don't create anything common to the workers in the constructor
- Move ThreadGroup and EngineListener creation into start()
- Create the periodic tasks from bin/heat-engine, which means
  the periodic tasks will only be created by the parent, not
  duplicated in every worker process.

These changes should mean we work correctly with both the ServiceLauncher
(num_engine_workers==1) and ProcessLauncher(num_engine_workers>1) oslo
abstractions, and solves the issues observed when running multiple
workers with the impl_qpid rpc_backend.

Change-Id: If3a11050a03660560a364dec871f85c4b56c1c25
Closes-Bug: #1321303
2014-06-01 08:20:49 +01:00
..
cinder-keystone-setup Change install scripts to use cinder 2013-02-04 14:33:36 -05:00
heat-api all non debug log messages should be translated 2014-05-29 11:11:46 +02:00
heat-api-cfn all non debug log messages should be translated 2014-05-29 11:11:46 +02:00
heat-api-cloudwatch all non debug log messages should be translated 2014-05-29 11:11:46 +02:00
heat-db-setup Create heat database with default character set utf-8 2014-02-05 17:26:25 -08:00
heat-engine Move Engine initialization into service start() 2014-06-01 08:20:49 +01:00
heat-keystone-setup Fix misspellings in heat 2014-02-11 08:29:37 +08:00
heat-keystone-setup-domain Use oslo.config for heat-keystone-setup-domain 2014-05-20 23:38:03 -07:00
heat-manage Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00