Skip to content

Conversation

@derekwaynecarr
Copy link
Member

When running Origin all-in-one, we need to start the ResourceQuotaManager to collect usage stats against the quota in the background.

With this PR, you will be able to now see usage against your quota.

review please: @smarterclayton @jwforres

@derekwaynecarr derekwaynecarr changed the title Turn out resource quota manager to collect usage stats Turn on resource quota manager to collect usage stats Feb 17, 2015
@derekwaynecarr derekwaynecarr force-pushed the turn_on_quota_controller branch from 7e6c063 to bda0f0c Compare February 17, 2015 18:59
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is slower, is that an issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In current code, it affects two things at this time:

  1. If you add a ResourceQuota to a project, you will not be able to add resources in that project until the synch has been run.
  2. If you delete a resource, we only capture the delete until a synch has been run. If you are running at the edge of your quota, you will need to wait.

Right now, upstream it runs at 10s, but it is configurable in kube-controller-manager.

I have a card in the future to make the delete case less time-sensitive, basic idea would be to watch for delete events on pods, and update the related pod.Namespace quota to release that memory/cpu since that is probably most important.

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/957/) (Image: devenv-fedora_828)

@jwforres
Copy link
Member

unrelated failure [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin up to bda0f0c

openshift-bot pushed a commit that referenced this pull request Feb 18, 2015
@openshift-bot openshift-bot merged commit d7cc417 into openshift:master Feb 18, 2015
sjenning pushed a commit to sjenning/origin that referenced this pull request Jul 30, 2018
use version specific jenkins image in imagestream
wgahnagl pushed a commit to wgahnagl/origin that referenced this pull request Oct 25, 2021
Fix: relative path will result infinite loop
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.

4 participants