From 036f6dc7764bcc2d4f23a4f2620ea8b5798175c9 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Mon, 29 Apr 2024 09:49:29 +0800 Subject: [PATCH] chore: tweak runtime config --- backend/functions/src/cloud-functions/crawler.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index 872381e..0ea08f6 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -219,7 +219,7 @@ ${this.content} name: 'crawl2', runtime: { memory: '4GiB', - timeoutSeconds: 540, + timeoutSeconds: 300, concurrency: 4, }, tags: ['Crawler'], @@ -229,10 +229,10 @@ ${this.content} }) @CloudHTTPv2({ runtime: { - memory: '8GiB', - timeoutSeconds: 540, - concurrency: 21, - maxInstances: 476, + memory: '4GiB', + timeoutSeconds: 300, + concurrency: 16, + maxInstances: 625, }, openapi: { operation: {