Skip to content

Commit

Permalink
Tune concurrency options
Browse files Browse the repository at this point in the history
  • Loading branch information
uwburn committed Mar 19, 2019
1 parent ca5bfa5 commit 0908ea6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion worker/base/BaseSink.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = class BaseSink {
this.databaseOpts = databaseOpts;

this.queryConcurrency = parseInt(process.env.QUERY_CONCURRENCY) || queryConcurrency || 16;
this.recordConcurrency = parseInt(process.env.RECORD_CONCURRENCY) || recordConcurrency || 16;
this.recordConcurrency = parseInt(process.env.RECORD_CONCURRENCY) || recordConcurrency || 4;

this.latencyByType = {
INTERVAL_RANGE: 0,
Expand Down
2 changes: 1 addition & 1 deletion worker/couchbase/CouchbaseMachineSink.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function subtractValues(o1, o2) {
module.exports = class CouchbaseMachineSink extends BaseSink {

constructor(databaseOpts) {
super(databaseOpts, 16, 16);
super(databaseOpts, 16, 4);
}

async init() {
Expand Down
2 changes: 1 addition & 1 deletion worker/mongo/MongoMachineSink.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function chooseBucketTime(interval) {
module.exports = class MongoMachineSink extends BaseSink {

constructor(databaseOpts) {
super(databaseOpts, 64, 64);
super(databaseOpts, 16, 4);

this.timeComplexCollections = { };
this.intervalCollections = { };
Expand Down

0 comments on commit 0908ea6

Please sign in to comment.