From 6a0affcec10088ff60ab725f2564e7df7f0eaf17 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 27 Aug 2019 05:33:24 +0900 Subject: Tune worker/job counts (#5346) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * デフォルトのワーカー数を1に * Tune default job count --- src/queue/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/queue/index.ts') diff --git a/src/queue/index.ts b/src/queue/index.ts index a7e9b9814f..0b20017291 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -203,8 +203,8 @@ export function createCleanRemoteFilesJob() { export default function() { if (!program.onlyServer) { - deliverQueue.process(128, processDeliver); - inboxQueue.process(128, processInbox); + deliverQueue.process(config.deliverJobConcurrency || 128, processDeliver); + inboxQueue.process(config.inboxJobConcurrency || 16, processInbox); processDb(dbQueue); procesObjectStorage(objectStorageQueue); } -- cgit v1.2.3-freya