openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [incubator-openwhisk-deploy-kube] Diff for: [GitHub] dgrove-oss closed pull request #411: add delay in healthy invoker readiness check
Date Tue, 15 Jan 2019 00:10:41 GMT
diff --git a/helm/openwhisk/templates/_readiness.tpl b/helm/openwhisk/templates/_readiness.tpl
index 11ead09..5441d7a 100644
--- a/helm/openwhisk/templates/_readiness.tpl
+++ b/helm/openwhisk/templates/_readiness.tpl
@@ -52,5 +52,5 @@
   env:
   - name: "READINESS_URL"
     value: "http://{{ include "openwhisk.controller_host" . }}:{{ .Values.controller.port
}}/invokers/healthy/count"
-  command: ["sh", "-c", "echo 0 > /tmp/count.txt; while true; do echo 'waiting for healthy
invoker'; wget -T 5 -qO /tmp/count.txt --no-check-certificate \"$READINESS_URL\"; NUM_HEALTHY_INVOKERS=$(cat
/tmp/count.txt); if [ $NUM_HEALTHY_INVOKERS -gt 0 ]; then echo \"Success: there are $NUM_HEALTHY_INVOKERS
healthy invokers\"; break; fi; echo '...not ready yet; sleeping 3 seconds before retry'; sleep
3; done;"]
+  command: ["sh", "-c", "echo 0 > /tmp/count.txt; while true; do echo 'waiting for healthy
invoker'; wget -T 5 -qO /tmp/count.txt --no-check-certificate \"$READINESS_URL\"; NUM_HEALTHY_INVOKERS=$(cat
/tmp/count.txt); if [ $NUM_HEALTHY_INVOKERS -gt 0 ]; then echo \"Success: there are $NUM_HEALTHY_INVOKERS
healthy invokers\"; sleep 3; break; fi; echo '...not ready yet; sleeping 5 seconds before
retry'; sleep 5; done;"]
 {{- end -}}


With regards,
Apache Git Services

Mime
View raw message