Skip to content
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: change pod OwnerReference to clean workflowtaskresults in large-scale scenarios #11048

Merged
merged 1 commit into from
May 8, 2023

Conversation

shuangkun
Copy link
Member

@shuangkun shuangkun commented May 8, 2023

In large-scale scenarios on cloud, we find the are so many workflowtaskresults left in the cluster (over a million), causing the cluster to fail to work. After investigation, we determined that there is something wrong with the pod owner reference.

@shuangkun shuangkun marked this pull request as draft May 8, 2023 03:44
@shuangkun shuangkun marked this pull request as ready for review May 8, 2023 03:48
@shuangkun shuangkun changed the title fix: change pod OwnerReference fix: change pod OwnerReference to clean workflowtaskresult in large-scale scenarios May 8, 2023
@@ -52,7 +52,7 @@ func (we *WorkflowExecutor) createTaskResult(ctx context.Context, result wfv1.No
[]metav1.OwnerReference{
{
APIVersion: "v1",
Kind: "pods",
Kind: "pod",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Kind: "pod",
Kind: "Pod",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already edited. Thanks.

…cale scenarios

Signed-off-by: shuangkun <tsk2013uestc@163.com>
@shuangkun shuangkun requested a review from maxsxu May 8, 2023 08:35
@shuangkun shuangkun changed the title fix: change pod OwnerReference to clean workflowtaskresult in large-scale scenarios fix: change pod OwnerReference to clean workflowtaskresults in large-scale scenarios May 8, 2023
Copy link
Contributor

@maxsxu maxsxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks for this fix!

@terrytangyuan terrytangyuan merged commit 5294f35 into argoproj:master May 8, 2023
24 checks passed
terrytangyuan pushed a commit that referenced this pull request May 25, 2023
…scale scenarios (#11048)

Signed-off-by: shuangkun <tsk2013uestc@163.com>
JPZ13 pushed a commit to pipekit/argo-workflows that referenced this pull request Jul 4, 2023
…scale scenarios (argoproj#11048)

Signed-off-by: shuangkun <tsk2013uestc@163.com>
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request May 9, 2024
…scale scenarios (argoproj#11048)

Signed-off-by: shuangkun <tsk2013uestc@163.com>
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants