From c1120aed0dd3e86fbbef6124707654ecff5d62b2 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 19 Jan 2016 13:31:39 +0100 Subject: [PATCH] Don't store events with Gnocchi Since we move the Gnocchi configuration in Ceilometer devstack plugin the event subsystem is enabled but unconfigured. So disable the event subsystem by default if Gnocchi is used like before. Change-Id: I33a6e962dcd01e12f828c4c126f6220439e5bfac --- devstack/plugin.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 542ef58f..eff0ab2b 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -248,6 +248,14 @@ function _ceilometer_configure_storage_backend { elif [ "$CEILOMETER_BACKEND" = 'gnocchi' ] ; then gnocchi_url=$(gnocchi_service_url) iniset $CEILOMETER_CONF DEFAULT meter_dispatchers gnocchi + # FIXME(sileht): We shouldn't load event_dispatchers if store_event is False + iniset $CEILOMETER_CONF DEFAULT event_dispatchers "" + iniset $CEILOMETER_CONF notification store_events False + # NOTE(gordc): set higher retry in case gnocchi is started after ceilometer on a slow machine + iniset $CEILOMETER_CONF storage max_retries 20 + # NOTE(gordc): set batching to better handle recording on a slow machine + iniset $CEILOMETER_CONF collector batch_size 10 + iniset $CEILOMETER_CONF collector batch_timeout 5 iniset $CEILOMETER_CONF dispatcher_gnocchi url $gnocchi_url iniset $CEILOMETER_CONF dispatcher_gnocchi archive_policy ${GNOCCHI_ARCHIVE_POLICY} if is_service_enabled swift && [[ "$GNOCCHI_STORAGE_BACKEND" = 'swift' ]] ; then