Skip to content

Conversation

@JustinKuli
Copy link
Member

@JustinKuli JustinKuli commented Jul 29, 2025

There was already an "evaluation-backoff" flag, however it was not the first thing considered in the Reconcile, and so it had limited effectiveness. The controller-runtime ratelimiters only throttle reconciles requeued due to errors: this new implementation properly prevents a constantly updating watched resource from monopolizing the config-policy-controller.

This pattern could likely easily be used in other controllers.

Refs:

@JustinKuli JustinKuli changed the title Implement a per-item rate-limiter Rate limit ConfigurationPolicy evaluations Oct 21, 2025
@JustinKuli JustinKuli marked this pull request as ready for review October 21, 2025 20:21
@JustinKuli
Copy link
Member Author

Github rate-limiter failed the request. Either authenticate or wait a couple of minutes.

That feel when your rate-limiting related PR gets rate limited 😬

@JustinKuli JustinKuli force-pushed the 22682-rate-limit branch 2 times, most recently from 5097292 to 186a4a8 Compare October 23, 2025 14:29
Copy link
Contributor

@jan-law jan-law left a comment

Choose a reason for hiding this comment

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

Looks good!

There was already an "evaluation-backoff" flag, however it was not the
first thing considered in the Reconcile, and so it had limited
effectiveness. The controller-runtime ratelimiters only throttle
reconciles requeued due to errors: this new implementation properly
prevents a constantly updating watched resource from monopolizing the
config-policy-controller.

This pattern could likely easily be used in other controllers.

Refs:
 - https://issues.redhat.com/browse/ACM-22682

Signed-off-by: Justin Kulikauskas <[email protected]>
@openshift-ci
Copy link

openshift-ci bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jan-law, JustinKuli

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-merge-bot openshift-merge-bot bot merged commit 22e4821 into open-cluster-management-io:main Oct 27, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants