diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2016-12-17 02:43:09 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2016-12-17 02:43:09 +0300 |
| commit | 8a98bdb0808840d2dbd3d70937cadfe2bdb3bb80 (patch) | |
| tree | e9f9bd62dcdb8f77ccca1d7ba8dd7394d95f10a2 /docs | |
| parent | 806cd800b055a660988c5b1da6ae388bb72fa3a7 (diff) | |
| parent | d4bbbead10c128290b030f2769712dac666ab5f4 (diff) | |
| download | rabbitmq-server-git-8a98bdb0808840d2dbd3d70937cadfe2bdb3bb80.tar.gz | |
Merge branch 'master' into rabbitmq-server-567
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rabbitmqctl.1.xml | 81 |
1 files changed, 76 insertions, 5 deletions
diff --git a/docs/rabbitmqctl.1.xml b/docs/rabbitmqctl.1.xml index fc4927ee1c..32dc43845a 100644 --- a/docs/rabbitmqctl.1.xml +++ b/docs/rabbitmqctl.1.xml @@ -1030,11 +1030,16 @@ <para> Certain features of RabbitMQ (such as the federation plugin) are controlled by dynamic, - cluster-wide <emphasis>parameters</emphasis>. Each parameter - consists of a component name, a name and a value, and is - associated with a virtual host. The component name and name are - strings, and the value is an Erlang term. Parameters can be - set, cleared and listed. In general you should refer to the + cluster-wide <emphasis>parameters</emphasis>. + There are 2 kinds of parameters: parameters scoped to + a virtual host and global parameters. + Each vhost-scoped parameter + consists of a component name, a name and a value. + The component name and name are + strings, and the value is an Erlang term. + A global parameter consists of a name and value. The name + is a string and the value is an Erlang term. + Parameters can be set, cleared and listed. In general you should refer to the documentation for the feature in question to see how to set parameters. </para> @@ -1116,6 +1121,72 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><cmdsynopsis><command>set_global_parameter</command> <arg choice="req"><replaceable>name</replaceable></arg> <arg choice="req"><replaceable>value</replaceable></arg></cmdsynopsis></term> + <listitem> + <para> + Sets a global runtime parameter. This is similar to <command>set_parameter</command> + but the key-value pair isn't tied to a virtual host. + </para> + <variablelist> + <varlistentry> + <term>name</term> + <listitem><para> + The name of the global runtime parameter being set. + </para></listitem> + </varlistentry> + <varlistentry> + <term>value</term> + <listitem><para> + The value for the global runtime parameter, as a + JSON term. In most shells you are very likely to + need to quote this. + </para></listitem> + </varlistentry> + </variablelist> + <para role="example-prefix">For example:</para> + <screen role="example">rabbitmqctl set_global_parameter mqtt_default_vhosts '{"O=client,CN=guest":"/"}'</screen> + <para role="example"> + This command sets the global runtime parameter <command>mqtt_default_vhosts</command> to the JSON term <command>{"O=client,CN=guest":"/"}</command>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><cmdsynopsis><command>clear_global_parameter</command> <arg choice="req"><replaceable>name</replaceable></arg></cmdsynopsis></term> + <listitem> + <para> + Clears a global runtime parameter. This is similar to <command>clear_global_parameter</command> + but the key-value pair isn't tied to a virtual host. + </para> + <variablelist> + <varlistentry> + <term>name</term> + <listitem><para> + The name of the global runtime parameter being cleared. + </para></listitem> + </varlistentry> + </variablelist> + <para role="example-prefix">For example:</para> + <screen role="example">rabbitmqctl clear_global_parameter mqtt_default_vhosts</screen> + <para role="example"> + This command clears the global runtime parameter <command>mqtt_default_vhosts</command>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><cmdsynopsis><command>list_global_parameters</command></cmdsynopsis></term> + <listitem> + <para> + Lists all global runtime parameters. This is similar to <command>list_parameters</command> + but the global runtime parameters are not tied to any virtual host. + </para> + <para role="example-prefix">For example:</para> + <screen role="example">rabbitmqctl list_global_parameters</screen> + <para role="example"> + This command lists all global parameters. + </para> + </listitem> + </varlistentry> </variablelist> </refsect2> |
