From 752f261ab6dc986ca1e9b0f16189f20d7ab8a15d Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 31 Jul 2019 13:17:04 -0400 Subject: [PATCH] config: disable notifications by default We are currently pushing out notifications even if Ceilometer is not enabled resulting in huge queues. Let's not do that. Change-Id: Id4a70270d4032ff1c3f0089360e897e5c82c394b --- templates/neutron.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/neutron.conf.j2 b/templates/neutron.conf.j2 index 6cfbb984..0cab1854 100644 --- a/templates/neutron.conf.j2 +++ b/templates/neutron.conf.j2 @@ -227,7 +227,7 @@ rpc_conn_pool_size = {{ neutron_rpc_conn_pool_size }} {% set _ = notification_topics.append(neutron_notifications_designate) %} {% endif %} topics = {{ notification_topics | join(',') }} -driver = messagingv2 +driver = {{ (neutron_ceilometer_enabled | bool) | ternary('messagingv2', 'noop') }} transport_url = {{ neutron_oslomsg_notify_transport }}://{% for host in neutron_oslomsg_notify_servers.split(',') %}{{ neutron_oslomsg_notify_userid }}:{{ neutron_oslomsg_notify_password }}@{{ host }}:{{ neutron_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ neutron_oslomsg_notify_vhost }}{% if neutron_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %} # Concurrency (locking mechanisms)