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 <[email protected]>

* Optimize health check method

Signed-off-by: Gao Binlong <[email protected]>

---------

Signed-off-by: Gao Binlong <[email protected]>
  • Loading branch information
gaobinlong authored and ruai0511 committed Oct 4, 2024
1 parent 3f5e124 commit 7e0df0b
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 7e0df0b

Please sign in to comment.