Update kibana-entrypoint.sh

Removed ES call timeout in Kibana entrypoint
keyword-vs-text-changes
Roberto Rodriguez 2019-06-15 14:24:11 -04:00
parent 690db58c46
commit e10601a424
1 changed files with 2 additions and 18 deletions

View File

@ -29,10 +29,6 @@ if [[ -z "$SERVER_PORT" ]]; then
fi
echo "$HELK_INFO_TAG Setting Kibana server port to $SERVER_PORT"
# ******** ES Calls Attempts ********
number_of_attempts_to_try=30
number_of_attempts=0
# ******** Set Trial License Variables ***************
if [[ -n "$ELASTICSEARCH_PASSWORD" ]]; then
if [[ -z "$ELASTICSEARCH_USERNAME" ]]; then
@ -58,14 +54,8 @@ if [[ -n "$ELASTICSEARCH_PASSWORD" ]]; then
# *********** Check if Elasticsearch is up ***************
#echo "$HELK_INFO_TAG Waiting for elasticsearch URI to be accessible.."
until [[ "$(curl -s -o /dev/null -w "%{http_code}" -u $ELASTICSEARCH_USERNAME:$ELASTICSEARCH_PASSWORD $ELASTICSEARCH_HOSTS)" == "200" ]]; do
if [[ ${number_of_attempts} -eq ${number_of_attempts_to_try} ]];then
echo "$HELK_ERROR_TAG Max attempts reached waiting for elasticsearch accessible.."
#sleep 10
exit 1
fi
number_of_attempts=$(($number_of_attempts+1))
echo "$HELK_INFO_TAG Waiting for elasticsearch URI to be accessible.."
sleep 10
sleep 5
done
sleep 5
@ -85,14 +75,8 @@ else
# *********** Check if Elasticsearch is up ***************
#echo "$HELK_INFO_TAG Waiting for elasticsearch URI to be accessible.."
until [[ "$(curl -s -o /dev/null -w "%{http_code}" $ELASTICSEARCH_HOSTS)" == "200" ]]; do
if [[ ${number_of_attempts} -eq ${number_of_attempts_to_try} ]];then
echo "$HELK_ERROR_TAG Max attempts reached waiting for elasticsearch accessible.."
# sleep 10
exit 1
fi
number_of_attempts=$(($number_of_attempts+1))
echo "$HELK_INFO_TAG Waiting for elasticsearch URI to be accessible.."
sleep 10
sleep 5
done
sleep 5
fi