You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2017/10/31 21:34:41 UTC

[incubator-openwhisk-deploy-kube] branch master updated: increase timeout on couchdb startup to 60 seconds (#76)

This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new cb3b8d4  increase timeout on couchdb startup to 60 seconds (#76)
cb3b8d4 is described below

commit cb3b8d478f25c12fe1a832f3efcf2da312f71cde
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Tue Oct 31 17:34:40 2017 -0400

    increase timeout on couchdb startup to 60 seconds (#76)
    
    Increase timeout for couchdb startup to match the
    60 seconds allowed by the ansible-based startup
    in main openwhisk repository.  The previous values
    were much lower, resulting in high probability of
    spurious failures when starting the couchdb pod.
---
 kubernetes/couchdb/docker/init.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].