forked from mtusi2026/mtusi2026lab7
тесты и healthcheck устойчивее к медленному хосту: время пробы внутри контейнера, healthcheck timeout 5 с, дочитывание TLS-ответа, grace уборщика 15 с
This commit is contained in:
+5
-3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user