-
Notifications
You must be signed in to change notification settings - Fork 363
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
Readiness health checks #3351
Readiness health checks #3351
Conversation
5b196ca
to
1e3aa63
Compare
Only adds it to manifest and validates the values. Does not do anything with these values yet. Signed-off-by: Marc Paquette <[email protected]> Signed-off-by: Amelia Downs <[email protected]>
Now when a user supplies the readiness health check properties via the app manifest, the values are stored on the process, and saved in the database. Signed-off-by: Renee Chu <[email protected]>
Signed-off-by: Amelia Downs <[email protected]>
was added by mistake. Signed-off-by: Maria Shaldybin <[email protected]>
split out readiness health check types into its own method
Signed-off-by: Maria Shaldybin <[email protected]>
now with more ruby style!
that's what we should test
b88514b
to
01145c4
Compare
…-manifest Readiness health checks story 4 manifest endpoints
* Add readiness health check properties to process endpoints GET /v3/processes GET /v3/processes/:guid PATCH /v3/processes/:guid GET /v3/apps/:guid/processes GET /v3/apps/:guid/processes/:type PATCH /v3/apps/:guid/processes/:type POST /v3/apps/:guid/processes/:type/actions/scale * Add readiness health check examples to API docs
ActualLRP has routable set to true once readiness health check succeeds. In case if routable is not provided instance reporter sets it to true for backwards compatibility. Signed-off-by: Josh Russett <[email protected]>
* Validate health_check_interval/readiness_health_check_interval in the manifest * Save health_check_interval/readiness_health_check_interval in database * Regenerate bbs protobuf models * Pass health_check_interval/readiness_health_check_interval in LRP * Display health_check_interval/readiness_health_check_interval in manifest * Add health-check-interval/readiness-health-check-interval to manifest diff * Add health-check-interval/readiness-health-check-interval to manifest docs * Add health_check_interval/readiness_health_check_interval to /v3/processes * Add health_check_interval/readiness_health_check_interval to API docs * Copy health_check_interval/readiness_health_check_interval during rolling deploy Signed-off-by: Maria Shaldybin <[email protected]> Signed-off-by: Josh Russett <[email protected]>
I clicked rerun on the mysql 5.7 unit test as that had one failed test that is a known thing (it is checking number of seconds that happened and it was off by one 🙄) The docs check is some links are missing, so those need double checked. Not sure what the complexity rubocop is picking up, I didn't follow up on that |
Signed-off-by: Michael Oleske <[email protected]>
Signed-off-by: Amelia Downs <[email protected]>
- these functions are idomatic ruby with no nested if statements - rubocop is just counting if statements so no current concerns - please review if this changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving as individual small commits were pr-ed to this branch and each of them were approved. and of course all unit tests are passing
This reverts commit 9a3afa2.
Context
This PR is part of the effort to add readiness health checks to Cloud Foundry. Deeper discussion of why can be read here in this CFF RFC.
Design
Users can set these 3 new properties on the app manifest. Error cases for invalid values etc are handled the same way as the other aready existing health-check properties.
Acceptance
As an App Dev
When I set the readiness health check properties in my app manifest
Then I see those properties set on my app process
And then those properties are sent to bbs on the LRP
This change includes
Contribution Steps
main
branchbundle exec rake
Related PRs