-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fallback to cached value if available #7317
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
base: main
Are you sure you want to change the base?
Fallback to cached value if available #7317
Conversation
Signed-off-by: Dmitriy Altuhov <[email protected]>
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
JorTurFer
left a comment
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.
I like this idea! just smal nits inline
| } | ||
| case kedav1alpha1.FallbackBehaviorCached: | ||
| if len(metrics) > 0 { | ||
| log.Info("Fallback behavior is set to cached, using metrics from cache", "scaledObject.Namespace", scaledObject.Namespace, "scaledObject.Name", scaledObject.Name, "metricName", metricName) |
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.
I'd set this as V(1), it's regular operation I guess
| @@ -0,0 +1,340 @@ | |||
| /* | |||
| Copyright 2021 The KEDA Authors | |||
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.
| Copyright 2021 The KEDA Authors | |
| Copyright 2025 The KEDA Authors |
|
Could you open a PR also to docs repo adding the new option there too? |
Adds new fallback behaviour "cached".
Fallback will return metric value from cache (if available)
Checklist
make generate-scalers-schemahas been run to update any outdated generated files.Fixes #6887
Relates to #