Skip to content

Commit

Permalink
distributor startup probe (#91)
Browse files Browse the repository at this point in the history
This allows the collector job that depends on it to know when to start.
  • Loading branch information
mhutchinson authored Feb 6, 2024
1 parent 313db40 commit 81ecc61
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deployment/modules/distributor/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ resource "google_cloud_run_v2_service" "default" {
"--v=1",
"--use_cloud_sql",
], var.extra_args)
ports {
container_port = 8080
}

env {
name = "INSTANCE_CONNECTION_NAME"
Expand All @@ -220,6 +223,16 @@ resource "google_cloud_run_v2_service" "default" {
}
}

startup_probe {
initial_delay_seconds = 1
timeout_seconds = 1
period_seconds = 10
failure_threshold = 3
tcp_socket {
port = 8080
}
}

volume_mounts {
name = "cloudsql"
mount_path = "/cloudsql"
Expand Down

0 comments on commit 81ecc61

Please sign in to comment.