Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[main] Use embedded process instances for "cf apps" summary#3726

Open
jochenehret wants to merge 3 commits intocloudfoundry:maincloudfoundry/cli:mainfrom
sap-contributions:main_apps_cmd_process_instancessap-contributions/cli:main_apps_cmd_process_instancesCopy head branch name to clipboard
Open

[main] Use embedded process instances for "cf apps" summary#3726
jochenehret wants to merge 3 commits intocloudfoundry:maincloudfoundry/cli:mainfrom
sap-contributions:main_apps_cmd_process_instancessap-contributions/cli:main_apps_cmd_process_instancesCopy head branch name to clipboard

Conversation

@jochenehret
Copy link
Contributor

Description of the Change

Use the new "embedded process instances" cloud controller feature to speed up the cf apps command, in particular on spaces with a larger number of apps. Instead of calling the individual /stats endpoint per process, use this request once per space:
GET /v3/processes?space_guids=:guid&embed=process_instances

Why Is This PR Valuable?

Time comparison on a test space with 100 apps and 2 instances each:

# old implementation
cf apps  0.18s user 0.07s system 1% cpu 12.572 total

# new implementation
cf apps  0.07s user 0.03s system 6% cpu 1.453 total

Applicable Issues

cloudfoundry/cloud_controller_ng#4796

How Urgent Is The Change?

Not super-urgent.

* use "/v3/processes?space_guids=:guid&embed=process_instances" to get processes and process instances in one request
* see cloudfoundry/cloud_controller_ng#4796
@jochenehret jochenehret changed the title Use embedded process instances for "cf apps" summary [main] Use embedded process instances for "cf apps" summary Feb 23, 2026
@jochenehret jochenehret marked this pull request as draft February 23, 2026 13:44
@jochenehret
Copy link
Contributor Author

@jochenehret jochenehret marked this pull request as ready for review March 4, 2026 13:31
@jochenehret
Copy link
Contributor Author

Integration test is still failing. It should succeed once https://github.com/cloudfoundry/capi-release/releases/tag/1.229.0 is used (last run was with 1.228.0).

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

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.