-
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
fix(spd): parseBaselineCoefficient returns error if BaselineCoefficient is empty #388
Conversation
30c3311
to
69474ad
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #388 +/- ##
==========================================
- Coverage 53.30% 53.26% -0.04%
==========================================
Files 439 439
Lines 48429 48408 -21
==========================================
- Hits 25816 25786 -30
- Misses 19685 19693 +8
- Partials 2928 2929 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5954974
to
efb49ea
Compare
7ffd5eb
to
2033307
Compare
pkg/util/spd_baseline.go
Outdated
) | ||
|
||
type BaselineCoefficient []int64 | ||
type PodMeta struct { |
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.
To avoid conflict with other definitions, consider adding a prefix of spd baseline
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.
modified
…nt is empty If baselinePercent is set as 100%, annotation.SPDAnnotationBaselinePercentileKey will be updated as empty, error occurs when parseBaselineCoefficient, which prints as followed: "[update] [qosaware-memory] update headroom policy failed" err="index 0 cannot parse: strconv.Atoi: parsing \"\": invalid syntax" headroomPolicy=numa-aware By the way, I refined relative logic, removing confuesd BaselinePercentile value and replace by human readable sentinel pod. Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
What type of PR is this?
Bug fixes
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer: