Replies: 2 comments 19 replies
-
Any thoughts @michaelklishin @lukebakken et al? |
Beta Was this translation helpful? Give feedback.
-
I agree that having such a limit would be very useful in some scenarios. Some questions that we'd need to answer:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
One of the tools we have to make sure users do not overload the broker or cluster, which would lead to operational pain, is limits.
One way to overload a broker is by creating too many queues, so I have been thinking about the possibility to introduce a 'queue limit' that is 'per node', or maybe 'per cluster' - there is already a queue limit per vhost. I would like to pick the community's brain a bit, as a per node limit for a node is not out of the box obvious - a queue is not really tied to a node, such as a connection or channel is, but instead with replication can live on more nodes, and even be moved around on nodes.
But, it would be useful to limit the queue numbers on a more global way than just per vhost - you can always bypass a limit by adding more vhosts etc.
My 'simple' suggestion would be a per node queue limit - set in the config file - that is only enforces when a queue is create 'externally', i.e via a client or via HTTP, but not 'internally', e.g the limit would not be taken into account during replication of queues from another node, if that node for some reason has a higher limit. (Preferably it would not interfere say the shovel plugin to declare queues either, even if limit is reached, but I am not sure it can be distinguished?)
The limit would count all queues on the local node, regardless if they are replicated, a leader or follower etc, as the would regardless take up resources and if the limit is reached, we want to stop the creation of new queues.
Technically it is fairly straight forward to add such a limit, but I want to hear concerns and input before any potential PR.
Beta Was this translation helpful? Give feedback.
All reactions