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(providers/kubernetes): Added QPS and Burst tweaks for client-side throttling #179

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

avysochin256
Copy link
Contributor

Hello

The reasoning behind this PR is to enable the adjustment of QPS and Burst configuration parameters in the client-go library.

This will help avoid constant throttling issues when dealing with over 100 K8S deployments. The default values are insufficient for such a large number of deployments.

How client-side throttling works:
// NewTokenBucketRateLimiter creates a rate limiter which implements a token bucket approach.
// The rate limiter allows bursts of up to 'burst' to exceed the QPS, while still maintaining a
// smoothed qps rate of 'qps'.
// The bucket is initially filled with 'burst' tokens, and refills at a rate of 'qps'.
// The maximum number of tokens in the bucket is capped at 'burst'.

It is a new PR with clearer diff with beta branch, instead of broken #178
I hope that working with that Pull Request will be more convenient

@acouvreur
Copy link
Member

Thanks a lot @valexz
Really appreciate it

@acouvreur
Copy link
Member

Because you changed the configuration, you will need to update the tests accordingly

Take a look at the config tests please, so we make sure we can load the new configuration through config file, cli arguments and env var

@acouvreur acouvreur added good first issue Good for newcomers provider Issue related to a provider labels Sep 13, 2023
@acouvreur acouvreur merged commit acf672e into sablierapp:beta Oct 10, 2023
12 of 13 checks passed
@acouvreur
Copy link
Member

🎉 This PR is included in version 1.4.1-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@acouvreur
Copy link
Member

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers provider Issue related to a provider released on @beta released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants