Introduce Guru Meditation Reports into Heat
This commit integrates functionality from the `openstack.common.report` module into Heat. This enables Heat services to receive SIGUSR1 and print a Guru Meditation Report to stderr or file. The required modules were added to 'openstack-common.conf' as well. Change-Id: I36af98590e5556f012b0e9f79e21585e216b7280 Blueprint: guru-meditation-report Co-Authored-By: huangtianhua <huangtianhua@huawei.com>
This commit is contained in:
committed by
liu-sheng
parent
74fe413631
commit
1e49aad113
@@ -35,6 +35,7 @@ if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
|
||||
from oslo_config import cfg
|
||||
import oslo_i18n as i18n
|
||||
from oslo_log import log as logging
|
||||
from oslo_reports import guru_meditation_report as gmr
|
||||
from oslo_service import systemd
|
||||
import six
|
||||
|
||||
@@ -66,6 +67,7 @@ if __name__ == '__main__':
|
||||
LOG.info(_LI('Starting Heat API on %(host)s:%(port)s'),
|
||||
{'host': host, 'port': port})
|
||||
profiler.setup('heat-api-cfn', host)
|
||||
gmr.TextGuruMeditation.setup_autorun(version)
|
||||
server = wsgi.Server()
|
||||
server.start(app, cfg.CONF.heat_api_cfn, default_port=port)
|
||||
systemd.notify_once()
|
||||
|
||||
Reference in New Issue
Block a user