From 0dd05b5dabccfa6b834fb210ebd6f77b0874e507 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Tue, 6 Aug 2024 17:58:27 +0800 Subject: [PATCH] chore: tweak concurrency --- backend/functions/src/cloud-functions/crawler.ts | 4 ++-- backend/functions/src/cloud-functions/searcher.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index 5ea7509..8baed56 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -599,8 +599,8 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`; memory: '4GiB', cpu: 4, timeoutSeconds: 300, - concurrency: 32, - maxInstances: 312, + concurrency: 22, + maxInstances: 455, minInstances: 1, }, tags: ['Crawler'], diff --git a/backend/functions/src/cloud-functions/searcher.ts b/backend/functions/src/cloud-functions/searcher.ts index 1155197..0aed772 100644 --- a/backend/functions/src/cloud-functions/searcher.ts +++ b/backend/functions/src/cloud-functions/searcher.ts @@ -67,7 +67,7 @@ export class SearcherHost extends RPCHost { cpu: 8, memory: '8GiB', timeoutSeconds: 300, - concurrency: 6, + concurrency: 3, maxInstances: 200, minInstances: 1, },