deliverJobConcurrency: 16, deliverJobPerSec: 1024, inboxJobConcurrency: 4
This commit is contained in:
parent
a0c93bbd4d
commit
ffd12d0539
6 changed files with 15 additions and 15 deletions
|
@ -164,8 +164,8 @@ id: 'aidx'
|
||||||
#clusterLimit: 1
|
#clusterLimit: 1
|
||||||
|
|
||||||
# Job concurrency per worker
|
# Job concurrency per worker
|
||||||
# deliverJobConcurrency: 128
|
# deliverJobConcurrency: 16
|
||||||
# inboxJobConcurrency: 16
|
# inboxJobConcurrency: 4
|
||||||
|
|
||||||
# Job rate limiter
|
# Job rate limiter
|
||||||
# deliverJobPerSec: 128
|
# deliverJobPerSec: 128
|
||||||
|
|
|
@ -230,14 +230,14 @@ id: 'aidx'
|
||||||
#clusterLimit: 1
|
#clusterLimit: 1
|
||||||
|
|
||||||
# Job concurrency per worker
|
# Job concurrency per worker
|
||||||
#deliverJobConcurrency: 128
|
#deliverJobConcurrency: 16
|
||||||
#inboxJobConcurrency: 16
|
#inboxJobConcurrency: 4
|
||||||
#relationshipJobConcurrency: 16
|
#relationshipJobConcurrency: 16
|
||||||
# What's relationshipJob?:
|
# What's relationshipJob?:
|
||||||
# Follow, unfollow, block and unblock(ings) while following-imports, etc. or account migrations.
|
# Follow, unfollow, block and unblock(ings) while following-imports, etc. or account migrations.
|
||||||
|
|
||||||
# Job rate limiter
|
# Job rate limiter
|
||||||
#deliverJobPerSec: 128
|
#deliverJobPerSec: 1024
|
||||||
#inboxJobPerSec: 32
|
#inboxJobPerSec: 32
|
||||||
#relationshipJobPerSec: 64
|
#relationshipJobPerSec: 64
|
||||||
|
|
||||||
|
|
|
@ -157,11 +157,11 @@ id: 'aidx'
|
||||||
#clusterLimit: 1
|
#clusterLimit: 1
|
||||||
|
|
||||||
# Job concurrency per worker
|
# Job concurrency per worker
|
||||||
# deliverJobConcurrency: 128
|
# deliverJobConcurrency: 16
|
||||||
# inboxJobConcurrency: 16
|
# inboxJobConcurrency: 4
|
||||||
|
|
||||||
# Job rate limiter
|
# Job rate limiter
|
||||||
# deliverJobPerSec: 128
|
# deliverJobPerSec: 1024
|
||||||
# inboxJobPerSec: 32
|
# inboxJobPerSec: 32
|
||||||
|
|
||||||
# Job attempts
|
# Job attempts
|
||||||
|
|
|
@ -178,11 +178,11 @@ id: "aidx"
|
||||||
#clusterLimit: 1
|
#clusterLimit: 1
|
||||||
|
|
||||||
# Job concurrency per worker
|
# Job concurrency per worker
|
||||||
# deliverJobConcurrency: 128
|
# deliverJobConcurrency: 16
|
||||||
# inboxJobConcurrency: 16
|
# inboxJobConcurrency: 4
|
||||||
|
|
||||||
# Job rate limiter
|
# Job rate limiter
|
||||||
# deliverJobPerSec: 128
|
# deliverJobPerSec: 1024
|
||||||
# inboxJobPerSec: 32
|
# inboxJobPerSec: 32
|
||||||
|
|
||||||
# Job attempts
|
# Job attempts
|
||||||
|
|
|
@ -70,7 +70,7 @@ export class HttpRequestService {
|
||||||
localAddress: config.outgoingAddress,
|
localAddress: config.outgoingAddress,
|
||||||
});
|
});
|
||||||
|
|
||||||
const maxSockets = Math.max(256, config.deliverJobConcurrency ?? 128);
|
const maxSockets = Math.max(256, config.deliverJobConcurrency ?? 16);
|
||||||
|
|
||||||
this.httpAgent = config.proxy
|
this.httpAgent = config.proxy
|
||||||
? new HttpProxyAgent({
|
? new HttpProxyAgent({
|
||||||
|
|
|
@ -250,9 +250,9 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
||||||
}, {
|
}, {
|
||||||
...baseQueueOptions(this.config, QUEUE.DELIVER),
|
...baseQueueOptions(this.config, QUEUE.DELIVER),
|
||||||
autorun: false,
|
autorun: false,
|
||||||
concurrency: this.config.deliverJobConcurrency ?? 128,
|
concurrency: this.config.deliverJobConcurrency ?? 16,
|
||||||
limiter: {
|
limiter: {
|
||||||
max: this.config.deliverJobPerSec ?? 128,
|
max: this.config.deliverJobPerSec ?? 1024,
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
|
@ -290,7 +290,7 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
||||||
}, {
|
}, {
|
||||||
...baseQueueOptions(this.config, QUEUE.INBOX),
|
...baseQueueOptions(this.config, QUEUE.INBOX),
|
||||||
autorun: false,
|
autorun: false,
|
||||||
concurrency: this.config.inboxJobConcurrency ?? 16,
|
concurrency: this.config.inboxJobConcurrency ?? 4,
|
||||||
limiter: {
|
limiter: {
|
||||||
max: this.config.inboxJobPerSec ?? 32,
|
max: this.config.inboxJobPerSec ?? 32,
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
|
|
Loading…
Reference in a new issue