Skip to content

Commit

Permalink
Fix testHAProxyModeConnectionWorks is flaky (opensearch-project#16087)
Browse files Browse the repository at this point in the history
* Fix testHAProxyModeConnectionWorks is flaky

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Optimize health check method

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

---------

Signed-off-by: Gao Binlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong authored and dk2k committed Oct 21, 2024
1 parent 4b0ccb9 commit 958ba79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qa/remote-clusters/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ services:
- "9600"
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
depends_on:
- opensearch-2
healthcheck:
test: ["CMD", "timeout", "1", "bash", "-c", "cat < /dev/null > /dev/tcp/localhost/9600"]
interval: 2s
timeout: 1s
retries: 5
start_period: 15s

0 comments on commit 958ba79

Please sign in to comment.