-
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
Adds support for automatic navigation through the pages using regex in RabbitMQ Scaler #2087
Conversation
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
What's the benefit of this over just not using pagination? I'm worried this means data may be out of sync between pages. |
Hi @coderanger , The problem (in our use case, and probably in others) is that splitting the regex we can't do operations like wdyt? |
I keep this one on @coderanger |
Hey @zroubalik , sorry, do you think that avoiding pagination is better? Shall we continue without them? Should we wait until @coderanger decission? |
I am not RabbitMQ expert, but I trust @coderanger, so I'd wait for his response :) |
Now I got it!! :) (Thanks @zroubalik) |
Any update @coderanger ? |
So my concern here is still that pagination in rmq-admin is not consistent, there's no way to be sure you won't be double counting or missing some data. I think this is a sign that you are using KEDA incorrectly, not something we should fix. A single scaler watching no more than 500 queues seems like a perfectly reasonable hard limit so we can ensure a consistent UX. |
At a minimum this shouldn't be reducing the page size, since the core problem is we want to span page boundaries as rarely as possible. |
What do you think about at least allow setting the page size? It could be enough for the majority of the cases, I agree with that our case is a specific case, and we should reduce the total amount of queues. |
Yeah, a parameter to increase the page size sounds like a better fix. Puts more load on Rabbit but it ensures the data is correct :) |
Nice! |
This PR adds support for automatic navigation through the pages is scenarios when you are using regex with big amount of queues which match the regex.
With this, the total amount of queues is not a limit because now KEDA can recover any amount of queues using pagination
In order to expose information about if it's an intensive process, the total amount of queues is printed to the log (only the regex and the total amount of matching queues)
Checklist
Fixes #2068