-
Notifications
You must be signed in to change notification settings - Fork 670
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
Detect subNode phase updates to reduce evaluation frequency of ArrayNode #4535
Detect subNode phase updates to reduce evaluation frequency of ArrayNode #4535
Conversation
… on ArrayNode state Signed-off-by: Daniel Rammer <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4535 +/- ##
=======================================
Coverage 58.92% 58.92%
=======================================
Files 620 620
Lines 52432 52441 +9
=======================================
+ Hits 30896 30903 +7
- Misses 19071 19073 +2
Partials 2465 2465
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…atency Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
…atency Signed-off-by: Daniel Rammer <[email protected]>
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.
looks great. For posterity, could you post the perf improvements summary?
…atency Signed-off-by: Daniel Rammer <[email protected]>
Great call out. Will add in next PR for parallelizing evaluations in ArrayNode. |
…ode (#4535) * detecting subNode or task phase updates to increment TaskPhaseVersion on ArrayNode state Signed-off-by: Daniel Rammer <[email protected]> * not writting empty file on no inputs Signed-off-by: Daniel Rammer <[email protected]> --------- Signed-off-by: Daniel Rammer <[email protected]> Signed-off-by: Paul Dittamo <[email protected]>
…f ArrayNode (#4535)" This reverts commit b50ba87. Signed-off-by: Eduardo Apolinario <[email protected]>
* Revert "Detect subNode phase updates to reduce evaluation frequency of ArrayNode (#4535)" This reverts commit b50ba87. Signed-off-by: Eduardo Apolinario <[email protected]> * Add flyin pflags Signed-off-by: Eduardo Apolinario <[email protected]> * Add taskTemplate as parameter to GetLogsForContainerInPod Signed-off-by: Eduardo Apolinario <[email protected]> * Add flyin template scheme and unit tests Signed-off-by: Eduardo Apolinario <[email protected]> * Revert unintended change. Signed-off-by: Eduardo Apolinario <[email protected]> * Lint Signed-off-by: Eduardo Apolinario <[email protected]> * Fix bad refactor due to lint warning Signed-off-by: Eduardo Apolinario <[email protected]> * Remove TODOs Signed-off-by: Eduardo Apolinario <[email protected]> --------- Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
Tracking issue
NA
Why are the changes needed?
Reduces the frequency of eventing and CRD updates to improve performance.
What changes were proposed in this pull request?
Rather than incrementing the
TaskPhaseVersion
on theArrayNodeState
during every loop we detect if any of the subNode phases or task phases have changed. If so, we increment theTaskPhaseVersion
. This vastly reduces the frequency with whichArrayNodes
are evaluated, therefore improving performance on large concurrency executions.How was this patch tested?
Locally with pprof and otel.
Setup process
NA
Screenshots
NA
Check all the applicable boxes
Related PRs
NA
Docs link
NA