Skip to content

Commit 58f8f42

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "enable multiple collector workers"
2 parents b939cae + 80786e0 commit 58f8f42

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/ceilometer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function configure_ceilometer {
154154

155155
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
156156
iniset $CEILOMETER_CONF database connection `database_connection_url ceilometer`
157+
iniset $CEILOMETER_CONF DEFAULT collector_workers $(( ($(nproc) + 1) / 2 ))
157158
else
158159
iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
159160
configure_mongodb

0 commit comments

Comments
 (0)