diff --git a/batch/scheduler/host-scheduler.js b/batch/scheduler/host-scheduler.js index 5cd238bd..99526e81 100644 --- a/batch/scheduler/host-scheduler.js +++ b/batch/scheduler/host-scheduler.js @@ -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); }; diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 32bc65e8..0e2bce87 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -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. diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 527d6d63..2411a6bb 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -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. diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 82a52fc8..4fa2f10d 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -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. diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 17aa5e85..203e5e39 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -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.