From 19eefe5e61187bab5fb893d51e0f771101441b4a Mon Sep 17 00:00:00 2001 From: Sylvain Afchain Date: Wed, 4 Jul 2018 17:59:34 +0200 Subject: [PATCH] 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 --- pkg/elasticsearch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/elasticsearch.sh b/pkg/elasticsearch.sh index afbf11de3d..bd4415315f 100755 --- a/pkg/elasticsearch.sh +++ b/pkg/elasticsearch.sh @@ -49,7 +49,7 @@ function configure_elasticsearch { 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 }