From 9de0894fbd414b27a2c10d54960bcfb10cc990ca Mon Sep 17 00:00:00 2001 From: liyingjun Date: Mon, 10 Oct 2016 12:06:22 +0800 Subject: [PATCH] Make sahara api worker configurable Sahara api workers is hard-coded to 2 [1], it should be configurable as other services do. [1]: https://github.com/openstack/kolla/blob/master/ansible/roles/sahara/templates/sahara.conf.j2#L9 Change-Id: Iefb487275c4e0d02f58a198e3995ca096f5e9218 Closes-bug: 1631835 --- ansible/roles/sahara/templates/sahara.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/sahara/templates/sahara.conf.j2 b/ansible/roles/sahara/templates/sahara.conf.j2 index 9cf162daef..ad29407324 100644 --- a/ansible/roles/sahara/templates/sahara.conf.j2 +++ b/ansible/roles/sahara/templates/sahara.conf.j2 @@ -6,7 +6,7 @@ host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %} use_neutron = True -api_workers = 2 +api_workers = {{ openstack_service_workers }} use_floating_ips = False use_namespaces = True