-
Notifications
You must be signed in to change notification settings - Fork 769
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 cloneSet controller block caused by scale expectation leakage #1829
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1829 +/- ##
==========================================
+ Coverage 47.91% 50.07% +2.16%
==========================================
Files 162 192 +30
Lines 23491 24666 +1175
==========================================
+ Hits 11256 12352 +1096
- Misses 11014 11044 +30
- Partials 1221 1270 +49
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
4f32307
to
bec8746
Compare
klog.InfoS("Expectation unsatisfied overtime", "cloneSet", request, "scaleDirtyPods", scaleDirtyPods, "overTime", unsatisfiedDuration) | ||
// In some extreme scenarios, if the Pod is created and then quickly deleted, there may be event loss. | ||
// Therefore, a touting mechanism is needed to ensure that clonesets can continue to work. | ||
klog.InfoS("Expectation unsatisfied overtime, and delete ScaleExpectation", "cloneSet", request, "scaleDirtyPods", scaleDirtyPods, "overTime", unsatisfiedDuration) |
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.
move the log into l265
// Therefore, a touting mechanism is needed to ensure that clonesets can continue to work. | ||
klog.InfoS("Expectation unsatisfied overtime, and delete ScaleExpectation", "cloneSet", request, "scaleDirtyPods", scaleDirtyPods, "overTime", unsatisfiedDuration) | ||
CloneSetScaleExpectationLeakageMetrics.WithLabelValues(request.Namespace, request.Name).Add(1) | ||
// todo, currently there is no way to differentiate between the two resources pod/pvc, so the pvc needs to be separated by an expectation |
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.
//TODO: check the existence of resource in apiserver using client-go directly
Signed-off-by: liheng.zms <[email protected]>
bec8746
to
9af3264
Compare
/lgtm |
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
/approve
Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?
#1765
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews