Merge "enable multiple collector workers"
This commit is contained in:
commit
58f8f429c8
@ -154,6 +154,7 @@ function configure_ceilometer {
|
|||||||
|
|
||||||
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
|
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
|
||||||
iniset $CEILOMETER_CONF database connection `database_connection_url ceilometer`
|
iniset $CEILOMETER_CONF database connection `database_connection_url ceilometer`
|
||||||
|
iniset $CEILOMETER_CONF DEFAULT collector_workers $(( ($(nproc) + 1) / 2 ))
|
||||||
else
|
else
|
||||||
iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
|
iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
|
||||||
configure_mongodb
|
configure_mongodb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user