Increase to 4 the default value for fixed capacity

This commit is contained in:
Raul Ochoa 2016-10-20 20:16:34 +02:00
parent 30e353ddb9
commit aa69bcf34c
5 changed files with 9 additions and 9 deletions

View File

@ -50,7 +50,7 @@ HostScheduler.prototype.getCapacityProvider = function(host) {
}
}
var fixedCapacity = global.settings.batch_capacity_fixed_amount || 2;
var fixedCapacity = global.settings.batch_capacity_fixed_amount || 4;
debug('Using strategy=fixed capacity=%d', fixedCapacity);
return new FixedCapacity(fixedCapacity);
};

View File

@ -41,8 +41,8 @@ module.exports.batch_capacity_strategy = 'fixed';
// Applies when strategy='fixed'.
// Number of simultaneous users running queries in the same host.
// It will use 1 as min.
// Default 2.
module.exports.batch_capacity_fixed_amount = 2;
// Default 4.
module.exports.batch_capacity_fixed_amount = 4;
// Applies when strategy='http-simple' or strategy='http-load'.
// HTTP endpoint to check db host load.
// Helps to decide the number of simultaneous users running queries in that host.

View File

@ -42,8 +42,8 @@ module.exports.batch_capacity_strategy = 'fixed';
// Applies when strategy='fixed'.
// Number of simultaneous users running queries in the same host.
// It will use 1 as min.
// Default 2.
module.exports.batch_capacity_fixed_amount = 2;
// Default 4.
module.exports.batch_capacity_fixed_amount = 4;
// Applies when strategy='http-simple' or strategy='http-load'.
// HTTP endpoint to check db host load.
// Helps to decide the number of simultaneous users running queries in that host.

View File

@ -42,8 +42,8 @@ module.exports.batch_capacity_strategy = 'fixed';
// Applies when strategy='fixed'.
// Number of simultaneous users running queries in the same host.
// It will use 1 as min.
// Default 2.
module.exports.batch_capacity_fixed_amount = 2;
// Default 4.
module.exports.batch_capacity_fixed_amount = 4;
// Applies when strategy='http-simple' or strategy='http-load'.
// HTTP endpoint to check db host load.
// Helps to decide the number of simultaneous users running queries in that host.

View File

@ -39,8 +39,8 @@ module.exports.batch_capacity_strategy = 'fixed';
// Applies when strategy='fixed'.
// Number of simultaneous users running queries in the same host.
// It will use 1 as min.
// Default 2.
module.exports.batch_capacity_fixed_amount = 2;
// Default 4.
module.exports.batch_capacity_fixed_amount = 4;
// Applies when strategy='http-simple' or strategy='http-load'.
// HTTP endpoint to check db host load.
// Helps to decide the number of simultaneous users running queries in that host.