From cd06f94309ec23a94e3a50b39293f3cdcf4e04bc Mon Sep 17 00:00:00 2001 From: caoyuan Date: Mon, 23 Oct 2017 22:42:19 +0800 Subject: [PATCH] Add the api works num for watcher Number of workers for Watcher api service can not be configure, this patch to fix it. refer to https://github.com/openstack/watcher/blob/master/watcher/conf/api.py#L43 Change-Id: I2763b8e225ceb4b8e067d53b8d5f0ffba31563a6 --- ansible/roles/watcher/templates/watcher.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/watcher/templates/watcher.conf.j2 b/ansible/roles/watcher/templates/watcher.conf.j2 index 60411b78d2..d45edbbfe9 100644 --- a/ansible/roles/watcher/templates/watcher.conf.j2 +++ b/ansible/roles/watcher/templates/watcher.conf.j2 @@ -9,6 +9,7 @@ transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }} [api] host = {{ api_interface_address }} port = {{ watcher_api_port }} +workers = {{ openstack_service_workers }} {% endif %} [database]