Skip to content

Commit

Permalink
Fix testHAProxyModeConnectionWorks is flaky
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Sep 26, 2024
1 parent ae22e3f commit def25bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qa/remote-clusters/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM haproxy:2.1.2

# Install netcat
RUN apt-get update && \
apt-get install -y netcat-traditional && \
rm -rf /var/lib/apt/lists/*
11 changes: 11 additions & 0 deletions qa/remote-clusters/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,19 @@ services:
timeout: 2s
retries: 5
haproxy:
build:
context: .
dockerfile: Dockerfile
image: haproxy:2.1.2
ports:
- "9600"
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
depends_on:
- opensearch-2
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9600"]
interval: 2s
timeout: 1s
retries: 5
start_period: 15s

0 comments on commit def25bd

Please sign in to comment.