Skip to content
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

WIP: Do not use readiness port on worker by default #464

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ properties:

cc.readiness_port.cloud_controller_worker:
description: "Readiness port used in k8s to check that db migrations are complete before component update"
default: 9025
default: -1

cc.jobs.global.timeout_in_seconds:
description: "The longest any job can take before it is cancelled unless overriden per job"
Expand Down
4 changes: 4 additions & 0 deletions jobs/cloud_controller_worker/templates/post-start.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ function fix_bundler_home_permissions {

fix_bundler_home_permissions

<% if_p("cc.readiness_port.cloud_controller_worker") do |prop| %>
<% if prop > 0 %>
while ! nc -z localhost <%= p("cc.readiness_port.cloud_controller_worker") %>
do
sleep 1
done
<% end %>
<% end %>