-
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
Activation threshold (activationValue) for Rabbitmq #2831
Activation threshold (activationValue) for Rabbitmq #2831
Conversation
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
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.
Thanks for your contribution!!
I have left some comments inline.
Apart from them, I'm not totally sure about minMetricValue
as a key. I mean, I'd like to have something like activationThreshold
, just to be clearer as possible. There are another scalers which use minMetricValue
for setting the return value in case of empty response from the upstream.
IMO, we can use this change to unify this value (activationThreshold
or similar) in all the scalers, deprecating the current value if the scaler already has another option
WDYT @kedacore/keda-core-contributors ?
Please, also rebase main into your branch 🙏
+1 exactly my thoughts. We should come up with a proper name first, maybe @kedacore/keda-core-contributors @adborroto Let's discuss this here: #2800 |
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
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
only one inline comment
/run-e2e rabbit* |
/run-e2e rabbit* |
@adborroto , looks like the added e2e test if failing, could you take a look? |
Should be fixed now. Since the job to publish messages was already created no more messages were publish. |
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
/run-e2e rabbit* |
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
/run-e2e rabbit* |
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
Thanks!
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.
Generaly looking good, I wonder, shouldn't we check that activationValue >= value
? Would it make sense to allow activationValue < value
? 🤔
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
…adborroto/keda into feature/minMetricValue_rabbitmq
Good catch! I added the verification. |
/run-e2e rabbit* |
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, thanks for this contribution!
The only thing that's missing is finishing the docs and I think that we are good to merge then.
Hi all, any idea to unlock this one?? |
@adborroto I think that we should have the general documentation on |
hey! |
@adborroto could you please rebase this PR? I think that we are good to merge this one, WDYT @JorTurFer ? |
Agree |
one update about this, I have been talking with @adborroto and he will give a try this weekend, if we cannot do it, I will tackle it |
# Conflicts: # pkg/scalers/rabbitmq_scaler.go # pkg/scalers/rabbitmq_scaler_test.go # tests/scalers/rabbitmq-helpers.ts # tests/scalers/rabbitmq-queue-amqp.test.ts
…adborroto/keda into feature/minMetricValue_rabbitmq
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
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.
Looking good, only some nits inline
Thanks! ❤️
/run-e2e rabbit* |
Signed-off-by: Alejandro Dominguez <adborroto90@gmail.com>
/run-e2e rabbit* |
tests/scalers_go/rabbitmq/rabbitmq_queue_amqp/rabbitmq_queue_amqp_test.go
Outdated
Show resolved
Hide resolved
…mqp_test.go Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
270b7de
to
285728b
Compare
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
/run-e2e rabbit* |
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
Signed-off-by: Alejandro Dominguez adborroto90@gmail.com
Adding activation threshold (activationValue) for Rabbitmq. The current activation when scaling from 0 to 1 happens if there is at least 1 message
messageCount > 0
. If a value for activationValue then the activation occurs ifmessageCount > activationValue
.The default value for activationValue is 0
Documentation: PR
Checklist
Fixes #