From 6019f131a7fb45e5648a2c21db15336db3886f61 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 18 May 2024 14:10:53 -0400 Subject: [PATCH] Increase concurrency by instances (#11) --- modules/cloudrun/main.tf | 4 +++- modules/cloudrun/variables.tf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/cloudrun/main.tf b/modules/cloudrun/main.tf index 50bb8c8..5501eeb 100644 --- a/modules/cloudrun/main.tf +++ b/modules/cloudrun/main.tf @@ -48,7 +48,9 @@ resource "google_cloud_run_service" "cloudrun" { } } spec { - service_account_name = data.google_service_account.service_account.email + service_account_name = data.google_service_account.service_account.email + container_concurrency = 1 + dynamic "containers" { for_each = var.containers content { diff --git a/modules/cloudrun/variables.tf b/modules/cloudrun/variables.tf index 37c0967..af6d345 100644 --- a/modules/cloudrun/variables.tf +++ b/modules/cloudrun/variables.tf @@ -8,7 +8,7 @@ variable "min_instances" { } variable "max_instances" { type = string - default = "5" + default = "100" } variable "regions" {