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

[FEATURE] - Configuration Rate Limiting #1410

Merged
merged 1 commit into from
May 14, 2024
Merged

[FEATURE] - Configuration Rate Limiting #1410

merged 1 commit into from
May 14, 2024

Conversation

gambol99
Copy link
Member

@gambol99 gambol99 commented May 9, 2024

Currently the controller will attempt to reconcile all Configurations when a change is detected. In small scale deployments this is not an issue, but where there is a large number of Configurations this can cause a large number of API calls, and potentially cause rate limiting to be applied. This change adds a --configuration-threshold <float64> e.g to say only 10 percents of jobs can run at any one time --configuration-threshold 0.1.

When a Configuration is deferred due to rate limiting, the ConditionReady is set to false and a warning message is appended to the Status.Conditions field.

@gambol99 gambol99 linked an issue May 9, 2024 that may be closed by this pull request
@gambol99 gambol99 added the enhancement New feature or request label May 9, 2024
@gambol99 gambol99 requested a review from KashifSaadat May 9, 2024 09:29
Currently the controller will attempt to reconcile all Configurations when a change is detected. In small scale deployments this is not an issue, but where there is a large number of Configurations this can cause a large number of API calls, and potentially cause rate limiting to be applied. This change adds a `--configuration-threshold <float64>` e.g to say only 10 percents of jobs can run at any one time `--configuration-threshold 0.1`.

When a Configuration is deferred due to rate limiting, the `ConditionReady` is set to false and a warning message is appended to the `Status.Conditions` field.
@gambol99
Copy link
Member Author

gambol99 commented May 9, 2024

cc @KashifSaadat … can I have a quick review please :-)

Copy link
Contributor

@cezarsa cezarsa left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for picking that up!

@gambol99 gambol99 merged commit 8444cae into develop May 14, 2024
14 checks passed
@gambol99 gambol99 deleted the rate_limiter branch May 14, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add limit to the number of Jobs running simultaneously
2 participants