Add Fallback option behavior for dynamic fallback calculation#6464
Merged
zroubalik merged 20 commits intokedacore:mainfrom Feb 22, 2025
Merged
Add Fallback option behavior for dynamic fallback calculation#6464zroubalik merged 20 commits intokedacore:mainfrom
behavior for dynamic fallback calculation#6464zroubalik merged 20 commits intokedacore:mainfrom
Conversation
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
1 task
wozniakjan
approved these changes
Jan 13, 2025
caa059c to
34abee5
Compare
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
wozniakjan
reviewed
Jan 16, 2025
Member
wozniakjan
left a comment
There was a problem hiding this comment.
a minor suggestion for simplification, I think semantically this should be equivalent, just less code to maintain :)
Let me know if you find any discrepancies
Co-authored-by: Jan Wozniak <wozniak.jan@gmail.com> Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Co-authored-by: Jan Wozniak <wozniak.jan@gmail.com> Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
Member
|
Sorry because I'm late, I've posted a comment in the issue about the approach, PTAL and share your thoughts |
fe1d3a0 to
76d35eb
Compare
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
zroubalik
reviewed
Feb 6, 2025
Member
zroubalik
left a comment
There was a problem hiding this comment.
I think that we should also think about e2e test for this feature
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Member
Author
added an e2e test |
JorTurFer
reviewed
Feb 8, 2025
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Member
|
/run-e2e fallback |
JorTurFer
reviewed
Feb 20, 2025
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
547091b to
3780b83
Compare
Member
|
/run-e2e fallback |
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
3780b83 to
aef8b42
Compare
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Signed-off-by: rickbrouwer <rickbrouwer@gmail.com>
Member
|
/run-e2e fallback |
mittalvaibhav1
pushed a commit
to mittalvaibhav1/keda
that referenced
this pull request
Apr 26, 2025
…core#6464) Signed-off-by: rickbrouwer <rickbrouwer@gmail.com> Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com> Co-authored-by: Jan Wozniak <wozniak.jan@gmail.com> Signed-off-by: mittalvaibhav1 <mittalvaibhavandroid@gmail.com>
7 tasks
7 tasks
dpochopsky
pushed a commit
to dpochopsky/keda
that referenced
this pull request
Sep 12, 2025
…core#6464) Signed-off-by: rickbrouwer <rickbrouwer@gmail.com> Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com> Co-authored-by: Jan Wozniak <wozniak.jan@gmail.com> Signed-off-by: David Pochopsky <david.pochopsky@united.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When you are running a large number of pods and something goes wrong, Keda uses a
fallback(if configured). However, the difference between thefallback.replicasand the current number of replicas can be large."Something going wrong" can also be temporary, which means it can suddenly scale down considerably and then return to the correct number of replicas.
With this PR, I want to make a new option
behaviorfor dynamic fallback calculation.You can indicate that it should use the current number of replicas (
CurrentReplicasIfHigher) as fallback if current replicas is higher. If the givenfallback.replicasis higher than the current replicas, then thefallback.replicaswill be used.Also you can indicate that it should use the current number of replicas (
CurrentReplicasIfLower) as fallback if current replicas is lower. If the givenfallback.replicasis higher than the current replicas, then the current replicas will be used.behavior) with three optionsStatic(default),CurrentReplicasIfHigherandCurrentReplicasIfLower.fallback.goto retrieve the current number of replicasscale_scaledobjects.gothere was code that determined what the current number of replicas was. This has been moved to thescale_resolvers.gofallback.replicasor the current number of replicasIf for any reason this option is not desired, please let me know.
Checklist
Fixes #6450
Docs: kedacore/keda-docs#1519
Relates to discussion: #6334