-
|
Hello everyone, I've been testing out and migrating slowly but surely to roadrunner to handle our queue processing via the JOBS plugin. I tested and autoscaling does not work for JOBS via amqp - not a huge deal for us, we have autoscaling of the deployment based on the rabbitmq queues via KEDA. But this raises some questions about the horizontal scalability of a roadrunner server running jobs. Here is what happens, generally:
The big problem that affects horizontal scalability from my current understanding is that the amqp driver keeps pushing the messages to the PQ infinitely or at least as big as What ends up happening is that if we have two roadrunner instances that start listening to the same queue, and one consumer was first, it will fill it's PQ up and then when the other consumer comes online, it might not receive any new messages since the first consumer is still online and did not ack/nack the messages. Is my understanding correct? Is there anything I can do to mitigate this? EDIT: Changed |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Hey @SMFloris 👋🏻 When you have 2 consumers, for the RMQ queue, when the first consumer read a message from the queue, until ACK or timeout (which can be configured via RMQ options), the second consumer won't see that message twice. I don't know where you get this |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the response! Now that I have a little bit more understanding, could you please correct me if I am wrong in my assumptions:
Is this correct? |
Beta Was this translation helpful? Give feedback.
Thanks for the response! Now that I have a little bit more understanding, could you please correct me if I am wrong in my assumptions:
pipeline_sizeto 50Is this correct?