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

Bulk API for process stats #3594

Open
stephanme opened this issue Jan 11, 2024 · 0 comments
Open

Bulk API for process stats #3594

stephanme opened this issue Jan 11, 2024 · 0 comments

Comments

@stephanme
Copy link
Contributor

Issue

There is no bulk api to fetch process stats of multiple processes at once.

Context

cf a in a space that contains ~800 apps takes ~5min. One reason is that for every app process a single CF API request (GET /v3/processes/<process-guid>/stats) is executed to fetch the process stats.

There are additional reasons for the long execution time like cloudfoundry/cli#2733.

Possible Fix

Implement a list endpoint to fetch process stats for multiple processes, e.g.

  • GET /v3/processes/stats with query params similar to GET /v3/processes, or
  • add an include=stats parameter to GET /v3/processes

For good performance, it would be desirable that the cloud controller can fetch the process stats from log-cache using a bulk api as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant