devstack: Allow to change the processing delay

This change allows to change the processing delay of metricd.

And set the default to 5 seconds since devstack is for testing.

Change-Id: I80eac6726a3841514b4f9c8bb9d2fc2d9b16a103
This commit is contained in:
Mehdi Abaakouk 2017-03-01 10:58:32 +01:00
parent 1975a9799c
commit cbbcc987eb
2 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,7 @@ function configure_gnocchi {
# Configure logging
iniset $GNOCCHI_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
iniset $GNOCCHI_CONF metricd metric_processing_delay "$GNOCCHI_METRICD_PROCESSING_DELAY"
# Set up logging
if [ "$SYSLOG" != "False" ]; then

View File

@ -11,6 +11,7 @@ GNOCCHI_AUTH_CACHE_DIR=${GNOCCHI_AUTH_CACHE_DIR:-/var/cache/gnocchi}
GNOCCHI_WSGI_DIR=${GNOCCHI_WSGI_DIR:-/var/www/gnocchi}
GNOCCHI_DATA_DIR=${GNOCCHI_DATA_DIR:-${DATA_DIR}/gnocchi}
GNOCCHI_COORDINATOR_URL=${GNOCCHI_COORDINATOR_URL:-redis://localhost:6379}
GNOCCHI_METRICD_PROCESSING_DELAY=${GNOCCHI_METRICD_PROCESSING_DELAY:-5}
# GNOCCHI_DEPLOY defines how Gnocchi is deployed, allowed values:
# - mod_wsgi : Run Gnocchi under Apache HTTPd mod_wsgi