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
This commit is contained in:
parent
afbfbe4b82
commit
19eefe5e61
@ -49,7 +49,7 @@ function configure_elasticsearch {
|
|||||||
|
|
||||||
function _check_elasticsearch_ready {
|
function _check_elasticsearch_ready {
|
||||||
# poll elasticsearch to see if it's started
|
# 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"
|
die $LINENO "Maximum timeout reached. Could not connect to ElasticSearch"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user