Make Ceilometer notifications non-blocking
authorChristian Schwede <cschwede@redhat.com>
Mon, 31 Oct 2016 22:03:11 +0000 (23:03 +0100)
committerChristian Schwede <cschwede@redhat.com>
Fri, 18 Nov 2016 14:00:23 +0000 (15:00 +0100)
Ceilometer notifications can be sent in a background thread, unblocking
the Swift proxy in case the RabbitMQ is not processing notifications
quick enough or even unavailable.

There is a default queue size of 1000 notifications. If more messages
are added to the queue these will be discarded, and a warning log entry
will be emitted.

Change-Id: I98022dcbf661a5bb7425f49ba8525225d61212dc

puppet/services/swift-proxy.yaml

index ba1d99f..129f9b1 100644 (file)
@@ -77,6 +77,7 @@ outputs:
             swift::proxy::ceilometer::rabbit_user: {get_param: RabbitUserName}
             swift::proxy::ceilometer::rabbit_password: {get_param: RabbitPassword}
             swift::proxy::staticweb::url_base: {get_param: [EndpointMap, SwiftPublic, uri_no_suffix]}
+            swift::proxy::ceilometer::nonblocking_notify: true
             tripleo.swift_proxy.firewall_rules:
               '122 swift proxy':
                 dport: