summaryrefslogtreecommitdiff
path: root/docs/rabbitmqctl.1.xml
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2016-08-26 20:00:49 +0300
committerGitHub <noreply@github.com>2016-08-26 20:00:49 +0300
commit6d9d506f453e38e1134235c57d365c91af5b6cc4 (patch)
tree5d911105686cc9440bb93d1f1d488844d980f25b /docs/rabbitmqctl.1.xml
parent300181042dd0b30cc2270c4e08a394bbf1e5e966 (diff)
parenta660b7009a61d1e05c096b518a961720669c0bb9 (diff)
downloadrabbitmq-server-git-6d9d506f453e38e1134235c57d365c91af5b6cc4.tar.gz
Merge pull request #891 from rabbitmq/rabbitmq-server-500-squashed
Keep track of connections, introduce per-vhost limits
Diffstat (limited to 'docs/rabbitmqctl.1.xml')
-rw-r--r--docs/rabbitmqctl.1.xml55
1 files changed, 52 insertions, 3 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml
index 34b7cc912c..a2ebc0b817 100644
--- a/docs/rabbitmqctl.1.xml
+++ b/docs/rabbitmqctl.1.xml
@@ -1213,6 +1213,55 @@
</refsect2>
<refsect2>
+ <title>Virtual Host Limits</title>
+ <para>
+ It is possible to enforce certain limits on virtual hosts.
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><cmdsynopsis><command>set_vhost_limits</command> <arg choice="opt">-p <replaceable>vhostpath</replaceable></arg> <arg choice="req"><replaceable>definition</replaceable></arg></cmdsynopsis></term>
+ <listitem>
+ <para>
+ Sets virtual host limits
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>definition</term>
+ <listitem><para>
+ The definition of the limits, as a
+ JSON term. In most shells you are very likely to
+ need to quote this.
+
+ Recognised limits: max-connections (0 means "no limit").
+ </para></listitem>
+ </varlistentry>
+ </variablelist>
+ <para role="example-prefix">For example:</para>
+ <screen role="example">rabbitmqctl set_vhost_limits -p qa_env '{"max-connections": 1024}'</screen>
+ <para role="example">
+ This command limits the max number of concurrent connections in vhost <command>qa_env</command>
+ to 1024.
+ </para>
+ </listitem>
+ </varlistentry>
+
+<varlistentry>
+ <term><cmdsynopsis><command>clear_vhost_limits</command> <arg choice="opt">-p <replaceable>vhostpath</replaceable></arg></cmdsynopsis></term>
+ <listitem>
+ <para>
+ Clears virtual host limits
+ </para>
+ <para role="example-prefix">For example:</para>
+ <screen role="example">rabbitmqctl clear_vhost_limits -p qa_env</screen>
+ <para role="example">
+ This command clears vhost limits in vhost <command>qa_env</command>.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2>
<title>Server Status</title>
<para>
The server status queries interrogate the server and return a list of
@@ -2069,9 +2118,9 @@
<varlistentry>
<term>fraction</term>
<listitem><para>
- Limit relative to the total amount available RAM
- as a non-negative floating point number.
- Values lower than 1.0 can be dangerous and
+ Limit relative to the total amount available RAM
+ as a non-negative floating point number.
+ Values lower than 1.0 can be dangerous and
should be used carefully.
</para></listitem>
</varlistentry>