Skip to content

Add status endpoint to seperate webserver #4441

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

svkrieger
Copy link
Contributor

@svkrieger svkrieger commented Jul 8, 2025

A short explanation of the proposed change:

Introduce a status endpoint under /internal/v4/status, which exposes more insights into the CC's health state.

An explanation of the use cases your change solves

When CC is facing a peak load of requests, currently the route will be deregistered and if the number of requests was too high, so that the processing takes longer than the timeout of the monit health check, the process will be restarted, even if Puma would be able to process all of the requests due to the queueing mechanism.

The /internal/v4/status endpoint gives more fine-granular insights in the health state of the CC. When at leats one Puma worker is idling it returns OK. If all workers are occupied, it returns BUSY. If all workers are busy and since 60s no requests have been processed, it returns UNHEALTHY. This endpoint will be used to prevent restarts even if CC is still healthy and working off peak-loads.

Links to any other associated PRs

cloudfoundry/capi-release#560

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

The /internal/v4/status endpoint gives more fine-granular insights in the health state of the CC.
When at leats one Puma worker is idling it returns OK. If all workers are occupied, it returns BUSY.
If all workers are busy and since 60s no requests have been processed, it returns UNHEALTHY.
This endpoint will be used to prevent restarts even if CC is still healthy and working off peak-loads.
@svkrieger svkrieger marked this pull request as ready for review July 10, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant