From 4db94a8722b8438ec04ec74665ea1280808be591 Mon Sep 17 00:00:00 2001 From: Al Marks Date: Thu, 2 Mar 2023 19:22:51 -0800 Subject: [PATCH] us-west2 -> us-central1 (#1446) * us-west2 -> us-central1 * Lower max instances --- cloud-build/deploy-main.yaml | 6 +++--- cloud-build/deploy-pr.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud-build/deploy-main.yaml b/cloud-build/deploy-main.yaml index 99e2b3c1..6b46bd36 100644 --- a/cloud-build/deploy-main.yaml +++ b/cloud-build/deploy-main.yaml @@ -8,7 +8,7 @@ options: dynamic_substitutions: true substitutions: - _REGION: us-west2 + _REGION: us-central1 _TAG: main-${SHORT_SHA} _IMAGE_URL_CATALOG: us.gcr.io/${PROJECT_ID}/main/catalog:${SHORT_SHA} _IMAGE_URL_SITE: us.gcr.io/${PROJECT_ID}/main/site:${SHORT_SHA} @@ -58,7 +58,7 @@ steps: - --cpu=1 - --concurrency=200 - --min-instances=1 - - --max-instances=1000 + - --max-instances=4 - --update-env-vars=GCP_PROJECT_ID=${PROJECT_ID} # Create site Cloud Run revision. @@ -82,7 +82,7 @@ steps: - --cpu=1 - --concurrency=200 - --min-instances=1 - - --max-instances=1000 + - --max-instances=4 - --update-env-vars=CATALOG_GRAPHQL_URL=${_CATALOG_GRAPHQL_URL},CATALOG_SERVER_AUTH_ID=${_CATALOG_SERVER_AUTH_ID} # Route traffic to new catalog revision. diff --git a/cloud-build/deploy-pr.yaml b/cloud-build/deploy-pr.yaml index bfd6f994..21a55735 100644 --- a/cloud-build/deploy-pr.yaml +++ b/cloud-build/deploy-pr.yaml @@ -8,7 +8,7 @@ options: dynamic_substitutions: true substitutions: - _REGION: us-west2 + _REGION: us-central1 _TAG: pr${_PR_NUMBER} _IMAGE_URL_CATALOG: us.gcr.io/${PROJECT_ID}/pr/catalog:${SHORT_SHA} _IMAGE_URL_SITE: us.gcr.io/${PROJECT_ID}/pr/site:${SHORT_SHA}