тесты и healthcheck устойчивее к медленному хосту: время пробы внутри контейнера, healthcheck timeout 5 с, дочитывание TLS-ответа, grace уборщика 15 с

This commit is contained in:
Alexey Bodanyuk
2026-11-28 16:22:52 +03:00
parent c5c9b5c9ab
commit 783aa35456
5 changed files with 77 additions and 21 deletions
+5 -3
View File
@@ -408,7 +408,9 @@ services:
healthcheck:
test: ["CMD", "python", "-m", "messenger.healthcheck"]
interval: 2s
timeout: 2s
# 5 s: starting the Python probe alone took > 2 s on a loaded Windows host (lab 7 clean run),
# which kept a healthy replica "unhealthy". The probe's own HTTP timeout stays 2 s.
timeout: 5s
retries: 3
# Lab 7: the start includes the OpenBao login and the first TLS connections; after a cold
# Docker start this took > 11 s once and `up --wait` gave up. Failures inside start_period do
@@ -496,7 +498,7 @@ services:
healthcheck:
test: ["CMD", "python", "-m", "messenger.healthcheck", "--file", "/tmp/heartbeat", "--max-age", "30"]
interval: 5s
timeout: 3s
timeout: 5s
retries: 3
start_period: 10s
depends_on:
@@ -543,7 +545,7 @@ services:
healthcheck:
test: ["CMD", "python", "-m", "messenger.healthcheck", "--file", "/tmp/heartbeat", "--max-age", "30"]
interval: 5s
timeout: 3s
timeout: 5s
retries: 3
start_period: 10s
depends_on: