-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: speed up resolve reference #12328
Merged
juliev0
merged 1 commit into
argoproj:main
from
AliyunContainerService:feature/SpeepUpResolveReference
Jan 15, 2024
Merged
feat: speed up resolve reference #12328
juliev0
merged 1 commit into
argoproj:main
from
AliyunContainerService:feature/SpeepUpResolveReference
Jan 15, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a82c424
to
3265886
Compare
5 tasks
3c9921c
to
8498c0b
Compare
8498c0b
to
2893ce1
Compare
juliev0
reviewed
Jan 13, 2024
6e16be0
to
e0b847c
Compare
juliev0
reviewed
Jan 14, 2024
workflow/controller/steps.go
Outdated
go func(i int, step wfv1.WorkflowStep) { | ||
defer wg.Done() | ||
if err := resolveStepReferences(i, step, newStepGroup); err != nil { | ||
woc.log.WithFields(log.Fields{"stepName": step.Name}).WithError(err).Error(err.Error()) |
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.
Just want to make sure - would we possibly print the error twice? I'm looking at WithError(err).Error(err.Error())
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.
Thanks, I changed it!
Signed-off-by: shuangkun <tsk2013uestc@163.com>
e0b847c
to
fe2b1aa
Compare
juliev0
approved these changes
Jan 15, 2024
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/artifacts
S3/GCP/OSS/Git/HDFS etc
area/controller
Controller issues, panics
prioritized-review
For members of the Sustainability Effort
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a big and flat workflow( 2000+ ) pod, which have artifacts reference each step. I find it won’t continue running down when it run to around step 100~200.
After investigation, I find the function "resolveReferences" is too slow. One Step Group node has 1000 step need 300s to resolveReferences and then update the Step Group succeed. After that, then the workflow can run down. But the default time for woc.operator is 30s. I have set MAX_OPERATION_TIME to 20 min to succeed the workflow. But I think there is a better solution.
So I want to speed up resolve reference.
I print the step time when it change to newStepStr use "template.Replace". Maybe I will speed up the "template.Replace" function future.
![image](https://private-user-images.githubusercontent.com/72060326/291602635-7a6db089-67bf-40cf-85b3-2ca40ff47876.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4NzEyODUsIm5iZiI6MTcxOTg3MDk4NSwicGF0aCI6Ii83MjA2MDMyNi8yOTE2MDI2MzUtN2E2ZGIwODktNjdiZi00MGNmLTg1YjMtMmNhNDBmZjQ3ODc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDIxNTYyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ODJhMGE1MmM5NWVkZTQzZTI3Zjg4YTcxNWFlZjIyZWUyZWUwNWJhNjBjYTMwMWU4ZWJkOWUyZjFmYjQxZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zCxEors1NzET14lqN_VYkPl0nlZk98PCWtEWUJx75gE)
![image](https://private-user-images.githubusercontent.com/72060326/291602768-98537a5c-a6e5-453c-93ed-3bcd44c1878f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4NzEyODUsIm5iZiI6MTcxOTg3MDk4NSwicGF0aCI6Ii83MjA2MDMyNi8yOTE2MDI3NjgtOTg1MzdhNWMtYTZlNS00NTNjLTkzZWQtM2JjZDQ0YzE4NzhmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDIxNTYyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkZThjOTgzMDRmZmFhMTZkODdiNmNhN2E5ZDc3MzgxOGYxOTNkYzFjNmMxNTM1YzUzZmVhYWM1ZTdhMzg3NWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hi1hi5YqsbKeclh4MC8mS8-FbW9Q41gaElKaJBLDMXM)
Fixes #TODO
Motivation
Modifications
Verification
Beyond this PR