reduce limiter concurrent
This commit is contained in:
parent
3f1624cd8e
commit
0a06018f83
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ const STALE_ERROR_AGE = 7 * 24 * 60 * 60; // 7 days
|
||||||
|
|
||||||
const builder = new addonBuilder(dummyManifest());
|
const builder = new addonBuilder(dummyManifest());
|
||||||
const limiter = new Bottleneck({
|
const limiter = new Bottleneck({
|
||||||
maxConcurrent: process.env.LIMIT_MAX_CONCURRENT || 100,
|
maxConcurrent: process.env.LIMIT_MAX_CONCURRENT || 40,
|
||||||
highWater: process.env.LIMIT_QUEUE_SIZE || 120,
|
highWater: process.env.LIMIT_QUEUE_SIZE || 60,
|
||||||
strategy: Bottleneck.strategy.OVERFLOW
|
strategy: Bottleneck.strategy.OVERFLOW
|
||||||
});
|
});
|
||||||
const limiterOptions = { expiration: 2 * 60 * 1000 }
|
const limiterOptions = { expiration: 2 * 60 * 1000 }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue