-
Notifications
You must be signed in to change notification settings - Fork 895
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
Introduce ratelimiter flags #1399
Conversation
aa031df
to
3c7f2bf
Compare
why we need it? |
3c7f2bf
to
0fbba97
Compare
because the DefaultControllerRateLimiter in client-go https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/util/workqueue/default_rate_limiters.go#L39-L45, default option is 10 qps and 100 bucket size,if there are lots of object events in the cluster,although we can increase worker nums introduced in #1321, but it still can easily hit the ratelimit. |
4225a12
to
c8fc844
Compare
c8fc844
to
fe15714
Compare
cd7bc35
to
15d8c31
Compare
@RainbowMango PTAL |
OK. Scheduled to tomorrow. |
15d8c31
to
3791766
Compare
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.
Generally looks good.
Please @Garrybest take a look.
This patch just focus on karmada-controller-manager
, and no changes to karmada-agent
.
I'll tidy up some stuff(like flag name, comments) if I have time later.
3791766
to
14ec5f9
Compare
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
14ec5f9
to
9e28d6c
Compare
/assign |
/lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
/remove-kind cleanup |
Signed-off-by: pigletfly wangbing.adam@gmail.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
introduce flags for user to tune ratelimiter
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: