-
Notifications
You must be signed in to change notification settings - Fork 254
ClusterPool: running clusters for excess claims #1567
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
ClusterPool: running clusters for excess claims #1567
Conversation
In openshift#1434, we added the paradigm of keeping some number of ClusterPool clusters in Running state, so they don't have to suffer Resuming time when claimed. However, that work was narrowly focussed on conforming to the ClusterPool.Spec.RunningCount. This commit expands the concept to try to make sure we're always running enough clusters to satisfy claims. In particular, when we are servicing a number of claims in excess of the pool's capacity, we create that excess number of clusters... but we previously didn't account for that number when calculating how many should be Running. Now we do. To explain via a corner case: If your pool has a zero Size and you create a claim, we will create a cluster and immediately assign it. But because RunningCount is zero, prior to this commit, we would create the cluster with `PowerState=Hibernating`, and then kick it over to `Running` when we assigned the claim. Now we'll create it with `PowerState=Running` in the first place. HIVE-1651
|
/assign @joelddiaz |
Codecov Report
@@ Coverage Diff @@
## master #1567 +/- ##
=======================================
Coverage 41.86% 41.87%
=======================================
Files 336 336
Lines 30884 30887 +3
=======================================
+ Hits 12931 12934 +3
Misses 16864 16864
Partials 1089 1089
|
|
/test e2e |
joelddiaz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo, joelddiaz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
In #1434, we added the paradigm of keeping some number of ClusterPool
clusters in Running state, so they don't have to suffer Resuming time
when claimed. However, that work was narrowly focussed on conforming to
the ClusterPool.Spec.RunningCount.
This commit expands the concept to try to make sure we're always running
enough clusters to satisfy claims. In particular, when we are servicing
a number of claims in excess of the pool's capacity, we create that
excess number of clusters... but we previously didn't account for that
number when calculating how many should be Running.
Now we do.
To explain via a corner case: If your pool has a zero Size and you
create a claim, we will create a cluster and immediately assign it. But
because RunningCount is zero, prior to this commit, we would create the
cluster with
PowerState=Hibernating, and then kick it over toRunningwhen we assigned the claim. Now we'll create it withPowerState=Runningin the first place.HIVE-1651