From 1e497e1f1ce3a0324c0ec93244f535f83702dcd9 Mon Sep 17 00:00:00 2001 From: Jona Date: Wed, 22 Nov 2023 10:48:39 -0500 Subject: [PATCH] Try halving the CR sizes --- stack/cloud_run_offset_tile.py | 4 ++-- stack/cloud_run_orchestrator.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stack/cloud_run_offset_tile.py b/stack/cloud_run_offset_tile.py index 90c8f1a5..d1c96388 100644 --- a/stack/cloud_run_offset_tile.py +++ b/stack/cloud_run_offset_tile.py @@ -26,11 +26,11 @@ value=pulumi.Config("cerulean-cloud").require("apikey"), ), ], - resources=dict(limits=dict(memory="8Gi", cpu="2000m")), + resources=dict(limits=dict(memory="4Gi", cpu="1000m")), ), ], timeout_seconds=300, - container_concurrency=3, + container_concurrency=1, ), metadata=dict( name=service_name + "-" + cloud_run_images.cloud_run_offset_tile_sha, diff --git a/stack/cloud_run_orchestrator.py b/stack/cloud_run_orchestrator.py index 7a107dce..f5bc6306 100644 --- a/stack/cloud_run_orchestrator.py +++ b/stack/cloud_run_orchestrator.py @@ -116,17 +116,17 @@ value=cloud_function_ais_analysis.fxn.https_trigger_url, ), ], - resources=dict(limits=dict(memory="8Gi", cpu="2000m")), + resources=dict(limits=dict(memory="4Gi", cpu="1000m")), ), ], timeout_seconds=3540, - container_concurrency=15, + container_concurrency=1, ), metadata=dict( name=service_name + "-" + cloud_run_images.cloud_run_orchestrator_sha, annotations={ "run.googleapis.com/cloudsql-instances": instance.connection_name, - "autoscaling.knative.dev/maxScale": "5", + "autoscaling.knative.dev/maxScale": "45", }, ), ),