pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
338 stars 226 forks source link

elastic_wait: wait for yellow #149

Closed missinglink closed 4 years ago

missinglink commented 4 years ago

Prior to this PR we would exit 0 with the message "Elasticsearch up!" even if the cluster status was red.

This PR changes the elastic_status command to target the cluster health API using the param wait_for_status=yellow

One easy way to cause a red status is to start an elasticsearch server on top of an index which was created with a previous version and is no longer compatible.

orangejulius commented 4 years ago

Good idea 👍