Increase the Elasticsearch service timeout
On some slow system with recent version of
Elasticsearch we saw that the service
becomes ready after more than 1 minute.
Change-Id: Id2b21ab24a96d10fffdcccd652a7d3ec4e8ce39c
diff --git a/pkg/elasticsearch.sh b/pkg/elasticsearch.sh
index afbf11d..bd44153 100755
--- a/pkg/elasticsearch.sh
+++ b/pkg/elasticsearch.sh
@@ -49,7 +49,7 @@
function _check_elasticsearch_ready {
# poll elasticsearch to see if it's started
- if ! wait_for_service 30 http://localhost:9200; then
+ if ! wait_for_service 120 http://localhost:9200; then
die $LINENO "Maximum timeout reached. Could not connect to ElasticSearch"
fi
}