-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
A Scaler interface for push based events #820
Comments
Looking good! I like this idea. As for the signature, I'd prefer to use "the standard" go way, ie. with |
Do I still have some time to review this or am I too late? (out on holiday) |
sure, I still need to update the docs as well. Will wait for your review |
It looks good to me but we’ll need good documentation that cover the use-case as it might not be clear what to expect or when to use it. Maybe even document an example scenario. |
* Add PushScaler interface and impl external-push scaler Closes #820 Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * pass metadata to scaler Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * add section for breaking changes in the CHANGELOG Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * use correct protoc-gen-go version Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com>
* Add PushScaler interface and impl external-push scaler Closes kedacore#820 Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * pass metadata to scaler Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * add section for breaking changes in the CHANGELOG Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * use correct protoc-gen-go version Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com>
Merged |
* Add PushScaler interface and impl external-push scaler Closes kedacore#820 Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * pass metadata to scaler Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * add section for breaking changes in the CHANGELOG Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * use correct protoc-gen-go version Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com>
Reopening as we don't have docs merged for it yet kedacore/keda-docs#193 |
* Add PushScaler interface and impl external-push scaler Closes #820 Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * pass metadata to scaler Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * add section for breaking changes in the CHANGELOG Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com> * use correct protoc-gen-go version Signed-off-by: Ahmed ElSayed <ahmels@microsoft.com>
…edacore#820) Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This is a RFC for adding a push based scaler interface that looks like this
scaler.go
Use-Case
For event sources that support a streaming client. This allows KEDA to connect as a client to an endpoint that can stream "isActive" requests per scaledObject.
Specification
active updates from the push scaler reset the
cooldownPeriod
. They just skip thepollingInterval
.provide a generic GRPC implementation
this can be used in the scaled object with
Few remarks:
I have been back and forth on the signature or
Start()
.it seems that a callback is simpler for this scenario, but I haven't seen a lot of go code with callbacks like that, so I'm not sure if it's something that's avoided.
The text was updated successfully, but these errors were encountered: