From 336931b5e8734a466cc62737ee49538033065fb4 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Fri, 12 Jul 2024 15:10:01 +0800 Subject: [PATCH] chore: tweak deployment --- backend/functions/src/cloud-functions/crawler.ts | 1 + backend/functions/src/cloud-functions/searcher.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index 4ec611a..1b74075 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -557,6 +557,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`; timeoutSeconds: 300, concurrency: 32, maxInstances: 312, + minInstances: 1, }, tags: ['Crawler'], httpMethod: ['get', 'post'], diff --git a/backend/functions/src/cloud-functions/searcher.ts b/backend/functions/src/cloud-functions/searcher.ts index 6740461..1e8f91a 100644 --- a/backend/functions/src/cloud-functions/searcher.ts +++ b/backend/functions/src/cloud-functions/searcher.ts @@ -69,6 +69,7 @@ export class SearcherHost extends RPCHost { timeoutSeconds: 300, concurrency: 6, maxInstances: 200, + minInstances: 1, }, tags: ['Searcher'], httpMethod: ['get', 'post'],