Skip to content

Commit aa69bcf

Browse files
committed
Increase to 4 the default value for fixed capacity
1 parent 30e353d commit aa69bcf

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

batch/scheduler/host-scheduler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ HostScheduler.prototype.getCapacityProvider = function(host) {
5050
}
5151
}
5252

53-
var fixedCapacity = global.settings.batch_capacity_fixed_amount || 2;
53+
var fixedCapacity = global.settings.batch_capacity_fixed_amount || 4;
5454
debug('Using strategy=fixed capacity=%d', fixedCapacity);
5555
return new FixedCapacity(fixedCapacity);
5656
};

config/environments/development.js.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ module.exports.batch_capacity_strategy = 'fixed';
4141
// Applies when strategy='fixed'.
4242
// Number of simultaneous users running queries in the same host.
4343
// It will use 1 as min.
44-
// Default 2.
45-
module.exports.batch_capacity_fixed_amount = 2;
44+
// Default 4.
45+
module.exports.batch_capacity_fixed_amount = 4;
4646
// Applies when strategy='http-simple' or strategy='http-load'.
4747
// HTTP endpoint to check db host load.
4848
// Helps to decide the number of simultaneous users running queries in that host.

config/environments/production.js.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ module.exports.batch_capacity_strategy = 'fixed';
4242
// Applies when strategy='fixed'.
4343
// Number of simultaneous users running queries in the same host.
4444
// It will use 1 as min.
45-
// Default 2.
46-
module.exports.batch_capacity_fixed_amount = 2;
45+
// Default 4.
46+
module.exports.batch_capacity_fixed_amount = 4;
4747
// Applies when strategy='http-simple' or strategy='http-load'.
4848
// HTTP endpoint to check db host load.
4949
// Helps to decide the number of simultaneous users running queries in that host.

config/environments/staging.js.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ module.exports.batch_capacity_strategy = 'fixed';
4242
// Applies when strategy='fixed'.
4343
// Number of simultaneous users running queries in the same host.
4444
// It will use 1 as min.
45-
// Default 2.
46-
module.exports.batch_capacity_fixed_amount = 2;
45+
// Default 4.
46+
module.exports.batch_capacity_fixed_amount = 4;
4747
// Applies when strategy='http-simple' or strategy='http-load'.
4848
// HTTP endpoint to check db host load.
4949
// Helps to decide the number of simultaneous users running queries in that host.

config/environments/test.js.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ module.exports.batch_capacity_strategy = 'fixed';
3939
// Applies when strategy='fixed'.
4040
// Number of simultaneous users running queries in the same host.
4141
// It will use 1 as min.
42-
// Default 2.
43-
module.exports.batch_capacity_fixed_amount = 2;
42+
// Default 4.
43+
module.exports.batch_capacity_fixed_amount = 4;
4444
// Applies when strategy='http-simple' or strategy='http-load'.
4545
// HTTP endpoint to check db host load.
4646
// Helps to decide the number of simultaneous users running queries in that host.

0 commit comments

Comments
 (0)