Revert "deployment: extend api startup probe budget for direct-endpoint migrations"
This reverts commit a94744061e.
This commit is contained in:
@@ -122,14 +122,11 @@ spec:
|
|||||||
path: /api/health/
|
path: /api/health/
|
||||||
port: 8000
|
port: 8000
|
||||||
# MigrateWithLock in cmd/api/main.go runs pg_advisory_lock on
|
# MigrateWithLock in cmd/api/main.go runs pg_advisory_lock on
|
||||||
# every startup against Neon's *direct* (non-pooler) endpoint,
|
# every startup. On a cold boot with 3 replicas, the first does
|
||||||
# because session-scoped locks don't survive PgBouncer
|
# AutoMigrate (~90s) and the others wait on the lock, so real
|
||||||
# transaction-mode. AutoMigrate over a transatlantic direct
|
# startup runs 90–240s. 48 × 5s = 240s grace absorbs it without
|
||||||
# link runs many DDLs serially × ~110ms RTT each ≈ 4–6 min on
|
# healthcheck killing a still-starting replica.
|
||||||
# the first pod; subsequent pods see no-op migrate after
|
failureThreshold: 48
|
||||||
# acquiring the same lock. 120 × 5s = 600s grace absorbs it
|
|
||||||
# without the healthcheck killing a still-migrating replica.
|
|
||||||
failureThreshold: 120
|
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|||||||
Reference in New Issue
Block a user