Browse code

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

Sylvain Afchain authored on 2018/07/05 00:59:34
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@ function configure_elasticsearch {
49 49
 
50 50
 function _check_elasticsearch_ready {
51 51
     # poll elasticsearch to see if it's started
52
-    if ! wait_for_service 30 http://localhost:9200; then
52
+    if ! wait_for_service 120 http://localhost:9200; then
53 53
         die $LINENO "Maximum timeout reached. Could not connect to ElasticSearch"
54 54
     fi
55 55
 }