From da2e8fda2ccf43947c7c449e1595ee69ef2c3d1e Mon Sep 17 00:00:00 2001 From: Adam Ross Date: Mon, 1 May 2023 16:49:41 -0700 Subject: [PATCH 1/3] performance: tune healtcheck for server behavior --- infra/service.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infra/service.tf b/infra/service.tf index 818579c8..0521f2af 100644 --- a/infra/service.tf +++ b/infra/service.tf @@ -56,6 +56,10 @@ resource "google_cloud_run_v2_service" "server" { } startup_probe { http_get { + initial_delay_seconds = 5 + period_seconds = 3 + timeout_seconds = 2 + failure_threshold = 5 path = "/ready" } } From ee7bef68bfceaa6c023aefda0841913e5e2f1af0 Mon Sep 17 00:00:00 2001 From: Adam Ross Date: Mon, 1 May 2023 16:55:19 -0700 Subject: [PATCH 2/3] fix: terraform whitespace formatting --- infra/service.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/service.tf b/infra/service.tf index 0521f2af..1e70452f 100644 --- a/infra/service.tf +++ b/infra/service.tf @@ -57,10 +57,10 @@ resource "google_cloud_run_v2_service" "server" { startup_probe { http_get { initial_delay_seconds = 5 - period_seconds = 3 - timeout_seconds = 2 - failure_threshold = 5 - path = "/ready" + period_seconds = 3 + timeout_seconds = 2 + failure_threshold = 5 + path = "/ready" } } liveness_probe { From aac501f9fd2986e45c456976a1a4869a237bcd29 Mon Sep 17 00:00:00 2001 From: Adam Ross Date: Mon, 1 May 2023 17:12:12 -0700 Subject: [PATCH 3/3] fix: startup_probe structure --- infra/service.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infra/service.tf b/infra/service.tf index 1e70452f..b96d5dff 100644 --- a/infra/service.tf +++ b/infra/service.tf @@ -55,12 +55,12 @@ resource "google_cloud_run_v2_service" "server" { mount_path = "/cloudsql" } startup_probe { + initial_delay_seconds = 5 + period_seconds = 3 + timeout_seconds = 2 + failure_threshold = 5 http_get { - initial_delay_seconds = 5 - period_seconds = 3 - timeout_seconds = 2 - failure_threshold = 5 - path = "/ready" + path = "/ready" } } liveness_probe {