-
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
[RabbitMQ] vHost is ignored when using regex #2498
Comments
Can anyone give any feedback on this ? @JorTurFer ? This is blocking us and we only have the option of dropping Keda or forking it :( |
Hi, |
Hi, |
Already did that to get rid of the error. The problem is that I want to deploy another client on the same MQ cluster and the scaler will pick up the wrong queues without the vhost. |
That depends on the rabbit management plugin itself. |
yes. I've mentioned in the issue. The easiest way to check is if you go to the RabbitMQ Management UI and filter queues using regex on a vhost. It adds |
I think that supporting this new feature if we maintain the current behavior also is worth. Maybe something like: if |
The vhost is included when you don't use `useRegex: true`. It makes sense to have consistent behaviour between the two modes. Fixes kedacore#2498
The vhost is included when you don't use `useRegex: true`. It makes sense to have consistent behaviour between the two modes. Fixes kedacore#2498 Signed-off-by: Swen Kooij <swen@sectorlabs.ro>
The vhost is included when you don't use `useRegex: true`. It makes sense to have consistent behaviour between the two modes. Fixes kedacore#2498 Signed-off-by: Swen Kooij <swen@sectorlabs.ro>
@JorTurFer PR ready, sorry for being pushy but we're close to our release data |
Don't worry, but just for sharing information, we released v2.6.0 last week and according to our governance repo, next release will be in 3 months. The milestone v2.7 ends on May. I'm explaining this because you said that you are close to your release date and maybe you expect that this feature will be released ASAP. Once it's merged, it will be available in |
Yeah, I missed the release, I just saw it today. I'm also aware you are not doing bug fix releases, figured that out from the change log. We will either run from our fork or take the risk of running from keda master. Thanks for you help and I appreciate what you guys are doing. |
one tip, if you use KEDA from |
The vhost is included when you don't use `useRegex: true`. It makes sense to have consistent behaviour between the two modes. Fixes kedacore#2498 Signed-off-by: Swen Kooij <swen@sectorlabs.ro>
Report
We have a shared RabbitMQ instance with multiple vhosts and multiple deployments connecting to them and we get
"Error":"error inspecting rabbitMQ: regex matches more queues than can be recovered at once"}
We use regex to scale our workers and looking at the code it seems that if
useRegex
is turned on the http call is not made using the vhost.Relevant code is here
keda/pkg/scalers/rabbitmq_scaler.go
Line 429 in e851d8e
vs
keda/pkg/scalers/rabbitmq_scaler.go
Line 431 in e851d8e
Because we run multiple instances of the same app the regex matches all the queues from all the vhost and the result exceeds the default
pageSize
of 100The RabbitMQ Console is running the same regex filter using
/api/queues/<<vHost>>?
Any workarounds for this ? I'm thinking increasing the
pageSize
but that will trigger all workers regarding of vhost. The other option would be to move to a dedicated instance.Expected Behavior
Deployments should scale when using regex with multiple queues on a certain vhost
Actual Behavior
Deployments cannot scale because Scaler ignores vhost and the result match exceeds pageSize
Steps to Reproduce the Problem
See description
Logs from KEDA operator
KEDA Version
2.5.0
Kubernetes Version
1.21
Platform
Amazon Web Services
Scaler Details
RabbitMQ
Anything else?
No response
The text was updated successfully, but these errors were encountered: