Skip to content

Commit 05dd7c0

Browse files
committed
services are unhealthy, maybe it's due to the healthcheck
1 parent 7bb9c9d commit 05dd7c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sharding-ha-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,10 @@ services:
352352
exec /app/aggregator
353353
healthcheck:
354354
test: ["CMD-SHELL", "nc -z -w2 127.0.0.1 $${PORT} || exit 1"]
355-
interval: 30s
356-
timeout: 10s
355+
interval: 10s
356+
timeout: 5s
357357
retries: 3
358+
start_period: 30s
358359
aggregator-shard1-2:
359360
<<: *aggregator-base
360361
container_name: aggregator-shard1-2

0 commit comments

Comments
 (0)