From 108d60cb058ccda68f1facdbd7d9291f286461b3 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 26 Sep 2017 10:06:12 +0200 Subject: [PATCH] Support HiPE (High-Performance Erlang) in RabbitMQ role Change-Id: I6394475f14bb4875be6d924591e4aea533ac2eb6 Closes-bug: #1621404 Depends-on: Ifc4f1d0f1b59b1789011e33c649033eb3cf5b010 --- ansible/group_vars/all.yml | 1 + ansible/roles/rabbitmq/templates/rabbitmq.config.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 0dc8b26671..0012c8c6b9 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -443,6 +443,7 @@ enable_kibana: "{{ 'yes' if enable_central_logging | bool else 'no' }}" #################### # RabbitMQ options #################### +rabbitmq_hipe_compile: "no" rabbitmq_user: "openstack" rabbitmq_version: "rabbitmq_server-3.6/plugins/rabbitmq_clusterer-3.6.x.ez/rabbitmq_clusterer-3.6.x-667f92b0/ebin" outward_rabbitmq_user: "openstack" diff --git a/ansible/roles/rabbitmq/templates/rabbitmq.config.j2 b/ansible/roles/rabbitmq/templates/rabbitmq.config.j2 index 11f846ebf6..47b3905955 100644 --- a/ansible/roles/rabbitmq/templates/rabbitmq.config.j2 +++ b/ansible/roles/rabbitmq/templates/rabbitmq.config.j2 @@ -5,6 +5,9 @@ {inet_dist_listen_max, {{ role_rabbitmq_cluster_port }}} ]}, {rabbit, [ +{% if rabbitmq_hipe_compile|bool %} + {hipe_compile, true}, +{% endif %} {tcp_listeners, [ {"{{ api_interface_address }}", {{ role_rabbitmq_port }}} ]},