Skip to content

Commit 450bc86

Browse files
botisSmilePierreGauthier
authored andcommitted
Fix(#1331658): Zombie processes related to the healthcheck on container search
1 parent 9c431fe commit 450bc86

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,13 @@ services:
163163
hard: -1
164164
ports:
165165
- 9200
166-
- 9600
166+
- 9600
167167
healthcheck:
168-
test: test $$(curl -uadmin:$${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-!ChangeMe0!} -k --write-out %{http_code} --fail --silent --output /dev/null https://localhost:9200/_cluster/health?wait_for_status=green&timeout=5s) -eq 200
168+
test: >
169+
bash -c "curl -uadmin:\${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-!ChangeMe0!}
170+
-k --silent --fail --write-out '%{http_code}' --max-time 4
171+
https://localhost:9200/_cluster/health |
172+
grep -q '\"status\":\"green\"'"
169173
interval: 10s
170174
timeout: 5s
171175
retries: 20

http-client.private.env.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dev": {
3+
"name": "value"
4+
}
5+
}

0 commit comments

Comments
 (0)