From d3683958227ff99cb9381a557cefa547e7b15d59 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:11:10 -0600 Subject: [PATCH] Fix health error --- ops/scripts/create_dev_sandbox.sh | 3 ++- ops/scripts/manifest-sandbox-template.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ops/scripts/create_dev_sandbox.sh b/ops/scripts/create_dev_sandbox.sh index 5eeed9c10..2ecd81bd8 100755 --- a/ops/scripts/create_dev_sandbox.sh +++ b/ops/scripts/create_dev_sandbox.sh @@ -89,7 +89,8 @@ cd src/ ./build.sh cd .. cf push getgov-$1 -f ops/manifests/manifest-$1.yaml - +cf set-health-check getgov-$1 http --invocation-timeout 40 +cf restage getgov-$1 --strategy rolling read -p "Please provide the email of the space developer: " -r cf set-space-role $REPLY cisa-dotgov $1 SpaceDeveloper diff --git a/ops/scripts/manifest-sandbox-template.yaml b/ops/scripts/manifest-sandbox-template.yaml index 3674c6de9..a521aab09 100644 --- a/ops/scripts/manifest-sandbox-template.yaml +++ b/ops/scripts/manifest-sandbox-template.yaml @@ -7,10 +7,11 @@ applications: instances: 1 memory: 512M stack: cflinuxfs4 - timeout: 280 + timeout: 180 command: ./run.sh health-check-type: http health-check-http-endpoint: /health + health-check-invocation-timeout: 30 env: # Send stdout and stderr straight to the terminal without buffering PYTHONUNBUFFERED: yup