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]>
(cherry picked from commit 031d8ae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Sep 29, 2024
1 parent c7e4911 commit 97e5381
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 97e5381

Please sign in to comment.