Skip to content

Commit 7e0df0b

Browse files
gaobinlongruai0511
authored andcommitted
Fix testHAProxyModeConnectionWorks is flaky (opensearch-project#16087)
* 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>
1 parent 3f5e124 commit 7e0df0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qa/remote-clusters/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,11 @@ services:
7272
- "9600"
7373
volumes:
7474
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
75+
depends_on:
76+
- opensearch-2
77+
healthcheck:
78+
test: ["CMD", "timeout", "1", "bash", "-c", "cat < /dev/null > /dev/tcp/localhost/9600"]
79+
interval: 2s
80+
timeout: 1s
81+
retries: 5
82+
start_period: 15s

0 commit comments

Comments
 (0)