Disable ceilometer middleware by default

ceilometer in swift proxy can generate lot of data and put extreme load.
Lets disable this by default. We did the same in tripleo in this patch
I40f47d46fdb06f31a739b590bf653bca71e33f61

Change-Id: I800dba738e4511824b509170f06d1da0f1e6cbe2
This commit is contained in:
Pradeep Kilambi 2017-08-17 12:59:12 -04:00
parent c2f8d6b19c
commit 420133dd0e
4 changed files with 18 additions and 2 deletions

View File

@ -1055,6 +1055,9 @@ Ceilometer Config parameters
**CONFIG_CEILOMETER_METERING_BACKEND**
Backend driver for Telemetry's metering backend configuration. ['database', 'gnocchi']
**CONFIG_ENABLE_CEILOMETER_MIDDLEWARE**
Whether to enable ceilometer middleware in swift proxy. By default this should be false to avoid unnecessary load.
MONGODB Config parameters
-------------------------

View File

@ -104,6 +104,17 @@ def initConfig(controller):
"USE_DEFAULT": False,
"NEED_CONFIRM": False,
"CONDITION": False},
{"CONF_NAME": "CONFIG_ENABLE_CEILOMETER_MIDDLEWARE",
"CMD_OPTION": "enable-ceilometer-middleware",
"PROMPT": ("Enable ceilometer middleware in swift proxy"),
"OPTION_LIST": ["y", "n"],
"VALIDATORS": [validators.validate_options],
"DEFAULT_VALUE": "n",
"MASK_INPUT": False,
"USE_DEFAULT": True,
"NEED_CONFIRM": False,
"CONDITION": False},
],
"MONGODB": [

View File

@ -11,7 +11,8 @@ class packstack::swift::proxy ()
include '::packstack::memcached'
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' and
hiera('CONFIG_ENABLE_CEILOMETER_MIDDLEWARE') == 'y' {
$swift_pipeline = [
'catch_errors',
'bulk',

View File

@ -128,7 +128,8 @@ if hiera('CONFIG_SWIFT_INSTALL') == 'y' {
include '::packstack::swift::ringbuilder'
include '::packstack::swift::proxy'
include '::packstack::swift::storage'
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' and
hiera('CONFIG_ENABLE_CEILOMETER_MIDDLEWARE') == 'y' {
include '::packstack::swift::ceilometer'
}
}