-
Notifications
You must be signed in to change notification settings - Fork 861
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
Feat: remove loop reduction & filter unnecessary apprev update #5598
Conversation
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #5598 +/- ##
==========================================
- Coverage 61.55% 57.53% -4.02%
==========================================
Files 311 311
Lines 48021 48018 -3
==========================================
- Hits 29557 27629 -1928
- Misses 15406 17503 +2097
+ Partials 3058 2886 -172
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
669f0c0
to
23b4f64
Compare
@@ -856,6 +856,9 @@ func (h *AppHandler) FinalizeAndApplyAppRevision(ctx context.Context) error { | |||
} | |||
return err | |||
} | |||
if apiequality.Semantic.DeepEqual(gotAppRev.Spec, appRev.Spec) { |
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.
please also compare the annotations and labels from metadata
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.
ok
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
23b4f64
to
9fa6465
Compare
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
Description of your changes
Add two optimization:
loop-reduction
optimization and let it be enabled by default. This is because the workflow state transition has changed its mechanism and if we do not enable loop reduction by default, the application will run twice gc every reconcile.Result:
Optimization 1 can reduce the reconcile time from 125ms to 96ms, increase 23% performance for state-keep-oriented reconcile under simple application delivery scenario.
Optimization 2 can reduce the reconcile time from 96ms to 70ms, increase 27% performance for state-keep oriented reconcile under simple application delivery scenario.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer