Skip to content
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

A way to "pre-configure" limits for virtual hosts #4999

Closed
michaelklishin opened this issue Jun 8, 2022 · 1 comment
Closed

A way to "pre-configure" limits for virtual hosts #4999

michaelklishin opened this issue Jun 8, 2022 · 1 comment
Milestone

Comments

@michaelklishin
Copy link
Member

At the moment virtual host limits can only be applied to existing virtual hosts. It would be
useful to allow for pre-defined limits. With a feature like this, it would be realistic
for RabbitMQ-as-a-Service environments to allow the user to create more virtual hosts while still
enforcing some limits.

Suggested by @illotum.

What I have in mind is something like this:

default_limits.vhosts.1.pattern = ^device
default_limits.vhosts.1.max_connections = 10
default_limits.vhosts.1.max_queues = 10

default_limits.vhosts.2.pattern = ^system
default_limits.vhosts.2.max_connections = 100
default_limits.vhosts.2.max_queues = -1

default_limits.vhosts.3.pattern = .*
default_limits.vhosts.3.max_connections = 20
default_limits.vhosts.3.max_queues = 20

defines three groups of limits that match virtual hosts by name. The first group to match will
be used to apply the limits right after the matching virtual host is declared.

@michaelklishin
Copy link
Member Author

Done in #6172 and #6191.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant