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