From c80c8f5d085562d9a1b3d0abdc5fdaf2510deca2 Mon Sep 17 00:00:00 2001 From: GondekNP Date: Fri, 1 Nov 2024 17:37:09 +0000 Subject: [PATCH] Reduce min instances for post fire season --- .deployment/tofu/modules/burn_backend/main.tf | 2 +- .deployment/tofu/modules/titiler/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.deployment/tofu/modules/burn_backend/main.tf b/.deployment/tofu/modules/burn_backend/main.tf index 0fdd386..40b3d90 100644 --- a/.deployment/tofu/modules/burn_backend/main.tf +++ b/.deployment/tofu/modules/burn_backend/main.tf @@ -45,7 +45,7 @@ resource "google_cloud_run_v2_service" "tf-rest-burn-severity" { egress = "ALL_TRAFFIC" } scaling { - min_instance_count = 2 # to reduce cold start time + min_instance_count = 0 # 1+ to reduce cold start time, 0 to save cost max_instance_count = 100 } } diff --git a/.deployment/tofu/modules/titiler/main.tf b/.deployment/tofu/modules/titiler/main.tf index 64f79a1..58f2585 100644 --- a/.deployment/tofu/modules/titiler/main.tf +++ b/.deployment/tofu/modules/titiler/main.tf @@ -74,7 +74,7 @@ resource "google_cloud_run_v2_service" "tf-titiler" { egress = "ALL_TRAFFIC" } scaling { - min_instance_count = 4 # to reduce cold start time + min_instance_count = 1 # 1+ to reduce cold start time, 0 to save cost max_instance_count = 100 } }