Skip to content

Commit

Permalink
Fix testHAProxyModeConnectionWorks is flaky (#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 Sep 29, 2024
1 parent d510b12 commit 031d8ae
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 031d8ae

Please sign in to comment.