-
Notifications
You must be signed in to change notification settings - Fork 440
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
document new publishRate
trigger
#388
Conversation
Signed-off-by: Karg <rkarg@blizzard.com>
Just a thought: Do we use this approach, or do we introduce a Thoughts on this @zroubalik? |
I had talked with @coderanger on Slack about this.
If this were a completely new scaler then only having only the I'm happy to align with another direction if that would be more consistent with how other scalers are set up. The one thing I don't want to do is introduce a change that would break existing users. |
I was just thinking of this so that it's clear what you want to use and simplify the validation of the config without relying on assumptions. I don't like assumptions as it is not always straightforward if you are new to it or not aware of how it works without reading the code/docs carefully. metadata:
mode: QueueDepth
queueLength: '20' # Optional. Queue length target for HPA. Default: 20 messages
# Standard config metadata:
mode: MessageRate
publishRate: '100' # Optional. Publish/sec. target on the queue for HPA. Requires http host/protocol
# Standard config That way, you could also use these configs: metadata:
mode: QueueDepth
# Standard config metadata:
mode: MessageRate
# Standard config This allows people to rely on the standard value, but still, define the trigger behavior. When using both fields, this can be tricky if you are new (and maybe didn't read the docs correctly); but if you use a flag then it is explicit. The only caveat would be, though, that if That said, this was just my idea; I'm happy to go with the current if everyone prefers that.
|
Using both fields is impossible, it's disjoint mode. And I'm not sure any default value for |
What if we kept This would leave three usage patterns:
mode: QueueDepth (preferred over
mode: MessageRate
|
Or we could just remove |
I like the deprecation suggestion! |
Signed-off-by: Karg <rkarg@blizzard.com>
-1 on undocumented config. Folks may have a running Keda and be trying to understand it, and having undocumented legacy flags makes that much harder. But a clear "legacy, deprecated flags" section is 👍 |
@coderanger I've updated to include the deprecated |
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.
LGTM, WDYT @zroubalik @ahmelsayed ?
Thanks for this nice change btw, @rwkarg! |
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.
LGTM, just the small nit: #388 (comment)
Signed-off-by: Karg <rkarg@blizzard.com>
Thanks a ton @rwkarg! |
Co-authored-by: Karg <rkarg@blizzard.com> Signed-off-by: rodolfodc <r.costa@sidi.org.br>
Corresponding code change: kedacore/keda#1653