-
Notifications
You must be signed in to change notification settings - Fork 109
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
refine cpu provision framework and share region support restrict poli… #419
refine cpu provision framework and share region support restrict poli… #419
Conversation
48bfa9d
to
0e4bccd
Compare
0e4bccd
to
27c569d
Compare
reg.SetEssentials(r.essentials) | ||
} | ||
|
||
reg.SetLatestCPURequirement(int(knob.Value)) |
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.
What if control knob's value is meaningless and only action is used? Regulate action doesn't make sense. Regulate ControlKnobNonReclaimedCPUSize only.
// restrictProvisionControlKnob is to restrict provision control knob by reference policy | ||
func (r *QoSRegionShare) restrictProvisionControlKnob(originControlKnob map[types.CPUProvisionPolicyName]types.ControlKnob) map[types.CPUProvisionPolicyName]types.ControlKnob { | ||
restrictedControlKnob := make(map[types.CPUProvisionPolicyName]types.ControlKnob) | ||
for baseName, controlKnob := range originControlKnob { |
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.
baseName and refName is confusing since they have similar meaning. baseName -> policyName(or some better name), refName -> refPolicyName might be better.
27c569d
to
5477031
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #419 +/- ##
==========================================
+ Coverage 53.68% 53.84% +0.15%
==========================================
Files 448 450 +2
Lines 50138 50385 +247
==========================================
+ Hits 26918 27129 +211
- Misses 20149 20187 +38
+ Partials 3071 3069 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
211aa49
to
6487ed5
Compare
@@ -158,6 +227,10 @@ func (r *QoSRegionBase) Name() string { | |||
return r.name | |||
} | |||
|
|||
func (r *QoSRegionBase) TryUpdateProvision() { | |||
panic("QoSRegionBase TryUpdateProvision is not implemented") |
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.
don't panic during running states
3eb6deb
to
6cf8c61
Compare
4cec379
to
e887eb3
Compare
e887eb3
to
cf58cce
Compare
…cies controlKnob
What type of PR is this?
Enhancements
What this PR does / why we need it:
refine cpu provision framework and share region support restrict controlKnob of policies.
Which issue(s) this PR fixes:
Special notes for your reviewer: