Default to 2 jobs in fixed capacity.

This commit is contained in:
Raul Ochoa 2016-10-20 11:12:27 +02:00
parent 66cc137d04
commit 19def2f31e
5 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View File

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