You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/10/31 21:34:44 UTC

[GitHub] rabbah closed pull request #76: increase timeout on couchdb startup to 60 seconds

rabbah closed pull request #76: increase timeout on couchdb startup to 60 seconds
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/76
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/kubernetes/couchdb/docker/init.sh b/kubernetes/couchdb/docker/init.sh
index f776bca..cfa3d7d 100755
--- a/kubernetes/couchdb/docker/init.sh
+++ b/kubernetes/couchdb/docker/init.sh
@@ -21,14 +21,14 @@ pushd /openwhisk
   # wait for couchdb to be up and running
   TIMEOUT=0
   echo "wait for CouchDB to be up and running"
-  until $( curl --output /dev/null --silent http://$DB_HOST:$DB_PORT/_utils ) || [ $TIMEOUT -eq 25 ]; do
+  until $( curl --output /dev/null --silent http://$DB_HOST:$DB_PORT/_utils ) || [ $TIMEOUT -eq 30 ]; do
     echo "waiting for CouchDB to be available"
 
-    sleep 0.2
+    sleep 2
     let TIMEOUT=TIMEOUT+1
   done
 
-  if [ $TIMEOUT -eq 25 ]; then
+  if [ $TIMEOUT -eq 30 ]; then
     echo "failed to setup CouchDB"
     exit 1
   fi


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services