cloudfoundry / cloudfoundry/cloud_controller_ng

Question/Feature Request - V3 API to query all apps running on a diego cell

Open
#2,164 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request needs_capi_investigation unscheduled
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

  1. cfdot cell-state can be used to get the app GUIDs
  2. 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

  1. Query process/stats for the app being reported
  2. get the host IP
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.