Fix Cloud Run probe ports and LB timeout_sec
- accounts: add ACCOUNTS_PORT=8080 env var (service defaults to 7753) - api: add SERVER_PORT=8080 env var, change probe path to /actuator/health - LB backends: remove timeout_sec (not supported for serverless NEG backends)
This commit is contained in:
@@ -57,8 +57,7 @@ resource "google_compute_backend_service" "accounts" {
|
||||
project = var.project_id
|
||||
load_balancing_scheme = "EXTERNAL_MANAGED"
|
||||
protocol = "HTTPS"
|
||||
timeout_sec = 30
|
||||
|
||||
# timeout_sec not supported for serverless NEG backends
|
||||
security_policy = google_compute_security_policy.marketing.self_link
|
||||
|
||||
# No CDN for accounts — responses are user-specific and must not be cached
|
||||
@@ -81,8 +80,7 @@ resource "google_compute_backend_service" "api" {
|
||||
project = var.project_id
|
||||
load_balancing_scheme = "EXTERNAL_MANAGED"
|
||||
protocol = "HTTPS"
|
||||
timeout_sec = 60 # API calls may be longer (AI inference routing)
|
||||
|
||||
# timeout_sec not supported for serverless NEG backends
|
||||
security_policy = google_compute_security_policy.marketing.self_link
|
||||
|
||||
enable_cdn = false # API responses are per-request; no CDN benefit
|
||||
|
||||
Reference in New Issue
Block a user