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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Prevent gc/quota workqueue backlogs #2764

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

ncdc
Copy link
Member

@ncdc ncdc commented Feb 8, 2023

Summary

Run the initial monitor syncing in a goroutine to avoid any stalling here to block a worker.

Related issue(s)

Maybe #1878 #2665

Run the initial monitor syncing in a goroutine to avoid any stalling
here to block a worker.

Signed-off-by: Andy Goldstein <[email protected]>
@ncdc
Copy link
Member Author

ncdc commented Feb 8, 2023

https://github.com/kcp-dev/kubernetes/blob/f48a2e575b3bf96221060778f57689972c3709b1/pkg/controller/resourcequota/resource_quota_controller_patch.go#L80 for quota (and similarly for gc) is blocking and never ends because the ctx we use with resourceQuotaController.UpdateMonitors(ctx, c.dynamicDiscoverySharedInformerFactory.ServerPreferredResources) has no timeout. We could consider giving it one?

@ncdc
Copy link
Member Author

ncdc commented Feb 8, 2023

@sttts interested in your thoughts

@nrb
Copy link
Contributor

nrb commented Feb 8, 2023

/lgtm

Adding a timeout on the context sounds good to me; is there really a benefit to leaving it off?

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2023
@ncdc
Copy link
Member Author

ncdc commented Feb 8, 2023

Not really, upstream's is 30 seconds IIRC. I guess I thought we wouldn't have an issue since we don't have API aggregation...

@sttts
Copy link
Member

sttts commented Feb 13, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sttts

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2023
@openshift-merge-robot openshift-merge-robot merged commit 80a16e4 into kcp-dev:main Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants