Browse code

Merge "enable multiple collector workers"

Jenkins authored on 2014/08/20 08:50:24
Showing 1 changed files
... ...
@@ -154,6 +154,7 @@ function configure_ceilometer {
154 154
 
155 155
     if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
156 156
         iniset $CEILOMETER_CONF database connection `database_connection_url ceilometer`
157
+        iniset $CEILOMETER_CONF DEFAULT collector_workers $(( ($(nproc) + 1) / 2 ))
157 158
     else
158 159
         iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
159 160
         configure_mongodb