From d2f72599e43d0151e6005a7b032c4158a36bf497 Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Fri, 10 Mar 2017 09:14:10 +0100 Subject: [PATCH] Set neutron RPC workers and state report workers rpc_workers and rpc_state_report_workers are set to 1 by default in Neutron: https://github.com/openstack/neutron/blob/master/neutron/conf/service.py#L30 By design neutron-server is a central RPC service for all agents (L2 agents, L3 agents, Metadata agents, LB agents, VPN agents, ...). For a production ready cloud, these variables must be set to a greater value than 1. Change-Id: Ib39be32748c3ee8077941fd1659db12c9d80055c Closes-Bug: #1671734 --- ansible/group_vars/all.yml | 1 + ansible/roles/neutron/templates/neutron.conf.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 69cd251db4..1b07b18005 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -282,6 +282,7 @@ multiple_regions_names: - "{{ openstack_region_name }}" openstack_service_workers: "{{ [ansible_processor_vcpus, 5]|min if orchestration_engine == 'ANSIBLE' else '1'}}" +openstack_service_rpc_workers: "{{ [ansible_processor_vcpus, 3]|min if orchestration_engine == 'ANSIBLE' else '1'}}" # Optionally allow Kolla to set sysctl values set_sysctl: "yes" diff --git a/ansible/roles/neutron/templates/neutron.conf.j2 b/ansible/roles/neutron/templates/neutron.conf.j2 index 2980f3c41b..6ed349ff83 100644 --- a/ansible/roles/neutron/templates/neutron.conf.j2 +++ b/ansible/roles/neutron/templates/neutron.conf.j2 @@ -16,6 +16,8 @@ endpoint_type = internalURL api_workers = {{ openstack_service_workers }} metadata_workers = {{ openstack_service_workers }} +rpc_workers = {{ openstack_service_rpc_workers }} +rpc_state_report_workers = {{ openstack_service_rpc_workers }} # NOTE(SamYaple): We must specify this value here rather than the metadata conf # because it is used by the l3 and dhcp agents. The reason the path has 'kolla'