From 858e52fe2edd46f07d110cae1194826fdc9c96d4 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Sun, 30 Jun 2024 22:19:03 +0800 Subject: [PATCH] chore: tweak cpu --- backend/functions/src/cloud-functions/crawler.ts | 6 +++--- thinapps-shared | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index f06a2d3..ba7d664 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -551,10 +551,10 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`; @CloudHTTPv2({ runtime: { memory: '4GiB', - cpu: 4, + cpu: 2, timeoutSeconds: 300, - concurrency: 22, - maxInstances: 455, + concurrency: 16, + maxInstances: 625, }, tags: ['Crawler'], httpMethod: ['get', 'post'], diff --git a/thinapps-shared b/thinapps-shared index e7216f6..7a221b7 160000 --- a/thinapps-shared +++ b/thinapps-shared @@ -1 +1 @@ -Subproject commit e7216f6ed7aaee80068ffabce78a37ce66b9c50e +Subproject commit 7a221b7a8d5fd0244f33dd5dc9d62ce551c5bded