cloudfoundry / cloudfoundry/cloud_controller_ng
Question/Feature Request - V3 API to query all apps running on a diego cell
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 207
- Forks
- 373
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 56
Description
Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.
Issue
Provide a query interface (preferably as a filter to GET /v3/apps to get list of apps given a IP address of a diego cell.
Context
As an operator we come across situations when a diego cell is running hot (high CPU), and we would like to see what apps are running on that cell. Currently we use a multi prong process
cfdot cell-statecan be used to get the app GUIDs- query CAPI for the app names for each of the GUID
Another use case is our APM reporting a hot AI, and we would like to see if there are any other apps getting impacted. That involves
- Query process/stats for the app being reported
- get the host IP
- use the two step approach above.
If we can query the CAPI directly to get list of apps running on a given host (by IP or Bosh DNS Name)it will make operator lives bit easier. If there is an easier approach to the problem statement I can explore that too.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the V3 GET /v3/apps endpoint and compare it with the cfdot cell-state and process/stats workflows described in the issue. Define how a host IP or BOSH DNS name should identify apps and what the response should contain; done means operators can query CAPI directly for all apps running on that host.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100