From db432645c3eb2db5bea8056c2dd2f30ac7f5d9f1 Mon Sep 17 00:00:00 2001 From: Zhaofeng Miao <522856232@qq.com> Date: Thu, 10 Oct 2024 11:21:42 +0800 Subject: [PATCH] feat: change deployment machine type to improve cpu utilization --- backend/functions/src/cloud-functions/crawler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index e8cf2d5..6135140 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -131,9 +131,9 @@ export class CrawlerHost extends RPCHost { @CloudHTTPv2({ runtime: { memory: '4GiB', - cpu: 2, + cpu: 1, timeoutSeconds: 300, - concurrency: 8, + concurrency: 16, maxInstances: 1250, minInstances: 1, },