Skip to content

Use post_bbr_healthcheck_timeout_in_seconds for backup and restore #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ properties:
default: 60
description: "Maximum time (in seconds) for cloud_controller_ng to report healthy"

cc.post_bbr_healthcheck_timeout_in_seconds:
default: 60
description: "Maximum time (in seconds) for cloud_controller_ng to report healthy in backup and restore unlock"

cc.api_health_check_timeout_per_retry:
default: 2
description: "Maximum health check timeout (in seconds) for each retry attempt in the Cloud Controller's route registration health check"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source /var/vcap/packages/capi_utils/syslog_utils.sh
fi

monit_start_job cloud_controller_ng
wait_for_server_to_become_healthy <%= "localhost:#{p("cc.external_port")}/healthz" %> 60
wait_for_server_to_become_healthy <%= "localhost:#{p("cc.external_port")}/healthz" %> <%= p("cc.post_bbr_healthcheck_timeout_in_seconds") %>
sleep 30

<% (1..(p("cc.jobs.local.number_of_workers"))).each do |index| %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source /var/vcap/packages/capi_utils/syslog_utils.sh
fi

monit_start_job cloud_controller_ng
wait_for_server_to_become_healthy <%= "localhost:#{p("cc.external_port")}/healthz" %> 60
wait_for_server_to_become_healthy <%= "localhost:#{p("cc.external_port")}/healthz" %> <%= p("cc.post_bbr_healthcheck_timeout_in_seconds") %>
sleep 30

<% (1..(p("cc.jobs.local.number_of_workers"))).each do |index| %>
Expand Down