Skip to content

Commit

Permalink
Optimize health check method
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Sep 29, 2024
1 parent def25bd commit ea53d79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions qa/remote-clusters/Dockerfile

This file was deleted.

5 changes: 1 addition & 4 deletions qa/remote-clusters/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ services:
timeout: 2s
retries: 5
haproxy:
build:
context: .
dockerfile: Dockerfile
image: haproxy:2.1.2
ports:
- "9600"
Expand All @@ -78,7 +75,7 @@ services:
depends_on:
- opensearch-2
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9600"]
test: ["CMD", "timeout", "1", "bash", "-c", "cat < /dev/null > /dev/tcp/localhost/9600"]
interval: 2s
timeout: 1s
retries: 5
Expand Down

0 comments on commit ea53d79

Please sign in to comment.