Skip to content

Commit

Permalink
Double the app startup timeout to see if that fixes prod deploys with…
Browse files Browse the repository at this point in the history
… Very Many instances (#3581)

* double the app startup timeout to see if that fixes prod deploys with Very Many instances

* try setting CLI env var instead

* back to 16 so we can test the actual timeout

* Update bin/ops/deploy.sh
  • Loading branch information
danswick committed Mar 28, 2024
1 parent aff3338 commit b890d7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/manifests/vars/vars-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ cf_env_name: PRODUCTION
env_name: prod
service_name: production
endpoint: app.fac.gov
instances: 8
instances: 16
2 changes: 2 additions & 0 deletions bin/ops/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ before_sha=$(echo "${before_data}"|xargs|cut -d'}' -f1|cut -d':' -f3|xargs)
echo "Before SHA: ${before_sha}"
echo "cf comand on next line:"
echo cf push -f backend/manifests/manifest-fac.yml --vars-file backend/manifests/vars/vars-"${cfspace}".yml --strategy rolling
# https://docs.cloudfoundry.org/devguide/deploy-apps/large-app-deploy.html#considerations
export CF_STARTUP_TIMEOUT=10
cf push -f backend/manifests/manifest-fac.yml --vars-file backend/manifests/vars/vars-"${cfspace}".yml --strategy rolling
after_data=$(cf curl "/v3/apps/${appguid}/relationships/current_droplet")
echo "After data: ${after_data}"
Expand Down

0 comments on commit b890d7d

Please sign in to comment.