-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So far we have used the info API to determine whether the REST API of Elasticsearch is available. However, we might get lucky that a quorum (but not all) of the target hosts are available yet. While certain nodes would then respond to HTTP requests, others might not which can lead to situations where the REST API check succeeds but we run into connection errors later on (because we hit a different host from the connection pool). With this commit we make this check stricter by using the cluster health API and blocking until at least the number of target hosts in the cluster is available.
- Loading branch information
1 parent
80ed8a7
commit f145325
Showing
2 changed files
with
39 additions
and
17 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
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