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

Metrics APIServer: Add ratelimiting parameters to override client #1944

Merged
merged 1 commit into from
Jul 12, 2021
Merged

Conversation

Bez625
Copy link
Contributor

@Bez625 Bez625 commented Jul 9, 2021

Add rate limiting parameters to the Keda metrics apiserver to allow override of client defaults

Signed-off-by: Chris Berry bez625@gmail.com

Adding flags to the metrics api server main so that we can override the default client QPS and burst. This allows us to enable higher throughput of requests when Kubernetes HPA sync rate is higher frequency than default client limits.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added - N/A no verification of input params present.
  • A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified) - N/A as these are optional we did not feel we should change existing deployment templates.
  • A PR is opened to update the documentation on (repo) (if applicable) - we couldn't find an appropriate place to add these in the documentation. If you would like something to be added please let us know. As suggested we have updated docs here New cluster operations docs describing adapter Kubeclient config params keda-docs#485
  • Changelog has been updated

@Bez625 Bez625 marked this pull request as ready for review July 9, 2021 13:28
@zroubalik zroubalik changed the title Add ratelimiting parameters to override client Metrics APIServer: Add ratelimiting parameters to override client Jul 12, 2021
Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

Looking good, could you please document this in a new section in: https://keda.sh/docs/2.3/operate/cluster/ ?

And there is a minor linter problem in the code - it is not formatted.

CHANGELOG.md Outdated Show resolved Hide resolved
…ide of client defaults

Signed-off-by: Chris Berry <bez625@gmail.com>
@Bez625
Copy link
Contributor Author

Bez625 commented Jul 12, 2021

Thanks @zroubalik for your feedback. I have updated the PR

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot!

@zroubalik zroubalik merged commit 48f2605 into kedacore:main Jul 12, 2021
@zroubalik zroubalik added this to the v2.4.0 milestone Jul 14, 2021
nilayasiktoprak pushed a commit to nilayasiktoprak/keda that referenced this pull request Oct 23, 2021
…ide of client defaults (kedacore#1944)

Signed-off-by: Chris Berry <bez625@gmail.com>
Signed-off-by: nilayasiktoprak <nilayasiktoprak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants