-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make logstash node system test more stable (#5797)
* Make logstash node system test more stable
- Loading branch information
Showing
4 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM docker.elastic.co/logstash/logstash:6.0.0 | ||
|
||
COPY healthcheck.sh / | ||
ENV XPACK_MONITORING_ENABLED=FALSE | ||
HEALTHCHECK --interval=1s --retries=90 CMD curl -f http://localhost:9600/_node/stats | ||
HEALTHCHECK --interval=1s --retries=90 CMD sh /healthcheck.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Check that both endpoints are available | ||
curl -f http://localhost:9600/_node || exit 1 | ||
curl -f http://localhost:9600/_node/stats || exit 1 | ||
curl -f http://localhost:9600/_node/stats | grep '"in":' || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters