Skip to content
Snippets Groups Projects
Verified Commit 3ce68d39 authored by Alex Timmermann's avatar Alex Timmermann
Browse files

feat(infra): add startup and liveness probes

parent ebb2720c
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,26 @@ resource "google_cloud_run_service" "moderation_backend" {
memory = local.environment == "production" ? "512Mi" : "512Mi"
}
}
startup_probe {
timeout_seconds = 5
period_seconds = 5
failure_threshold = 6
http_get {
path = "/health"
}
}
liveness_probe {
timeout_seconds = 5
period_seconds = 30
failure_threshold = 5
http_get {
path = "/health"
}
}
}
container_concurrency = 80
......
......@@ -166,6 +166,26 @@ resource "google_cloud_run_service" "moderation_federator" {
memory = local.environment == "production" ? "1Gi" : "1Gi"
}
}
startup_probe {
period_seconds = 15
timeout_seconds = 10
failure_threshold = 6
http_get {
path = "/healthz"
}
}
liveness_probe {
period_seconds = 30
timeout_seconds = 5
failure_threshold = 2
http_get {
path = "/healthz"
}
}
}
container_concurrency = 80
......
......@@ -32,6 +32,26 @@ resource "google_cloud_run_service" "frontend" {
ports {
container_port = 80
}
startup_probe {
http_get {
path = "/"
}
period_seconds = 5
timeout_seconds = 5
failure_threshold = 6
}
liveness_probe {
http_get {
path = "/"
}
period_seconds = 30
timeout_seconds = 30
failure_threshold = 2
}
}
container_concurrency = 80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment