From 667155199467b0fca03ddf31a9bb3225fe11f230 Mon Sep 17 00:00:00 2001 From: liyingjun Date: Thu, 17 Nov 2016 09:10:01 +0800 Subject: [PATCH] Disable notifications for cinder when no consumer Notifications for cinder is not disabled when there is no other consuming project, it's better to disable that to reduce some pressure for the message bus[1]. [1]: http://docs.openstack.org/developer/oslo.messaging/FAQ.html#i-don-t-need-notifications-on-the-message-bus-how-do-i-disable-them Change-Id: I41c16b4ef6437b0104d4f37daa8b8640db7fdd50 Closes-bug: #1642440 --- ansible/roles/cinder/templates/cinder.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index 6c888cec6c..5e714e7fda 100644 --- a/ansible/roles/cinder/templates/cinder.conf.j2 +++ b/ansible/roles/cinder/templates/cinder.conf.j2 @@ -60,6 +60,9 @@ transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }} [oslo_messaging_notifications] {% if enable_ceilometer | bool or enable_searchlight | bool %} driver = messagingv2 +topics = notifications +{% else %} +driver = noop {% endif %} [database]