Skip to content

Commit dcf663f

Browse files
committed
Merge branch 'master' into rabbitmq-server-1838-active-field-for-consumers
Conflicts: src/rabbit_fifo.erl
2 parents 9eaa79d + a4b6025 commit dcf663f

20 files changed

+1054
-549
lines changed

docs/rabbitmq-echopid.8

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
.\" The Initial Developer of the Original Code is Pivotal Software, Inc.
1515
.\" Copyright (c) 2007-2019 Pivotal Software, Inc. All rights reserved.
1616
.\"
17-
.Dd April 25, 2017
17+
.Dd January 25, 2019
1818
.Dt RABBITMQ-ECHOPID.BAT 8
1919
.Os "RabbitMQ Server"
2020
.Sh NAME
2121
.Nm rabbitmq-echopid.bat
22-
.Nd return the Windows process id of the Erlang runtime hosting RabbitMQ
22+
.Nd returns the Windows process id of the Erlang runtime running RabbitMQ
2323
.\" ------------------------------------------------------------------
2424
.Sh SYNOPSIS
2525
.\" ------------------------------------------------------------------
@@ -28,10 +28,7 @@
2828
.\" ------------------------------------------------------------------
2929
.Sh DESCRIPTION
3030
.\" ------------------------------------------------------------------
31-
RabbitMQ is an implementation of AMQP, the emerging standard for high
32-
performance enterprise messaging.
33-
The RabbitMQ server is a robust and scalable implementation of an AMQP
34-
broker.
31+
RabbitMQ is an open source multi-protocol messaging broker.
3532
.Pp
3633
Running
3734
.Nm

docs/rabbitmq-env.conf.5

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
.\" The Initial Developer of the Original Code is Pivotal Software, Inc.
1515
.\" Copyright (c) 2007-2019 Pivotal Software, Inc. All rights reserved.
1616
.\"
17-
.Dd April 25, 2017
17+
.Dd January 25, 2019
1818
.Dt RABBITMQ-ENV.CONF 5
1919
.Os "RabbitMQ Server"
2020
.Sh NAME
2121
.Nm rabbitmq-env.conf
22-
.Nd default settings for RabbitMQ AMQP server
22+
.Nd environment variables used by RabbitMQ server
2323
.\" ------------------------------------------------------------------
2424
.Sh DESCRIPTION
2525
.\" ------------------------------------------------------------------
2626
.Nm
27-
contains variable settings that override the defaults built in to the
28-
RabbitMQ startup scripts.
27+
contains environment variables that override the defaults built in to the
28+
RabbitMQ scripts and CLI tools.
2929
.Pp
3030
The file is interpreted by the system shell, and so should consist of a
3131
sequence of shell environment variable definitions.
@@ -58,20 +58,28 @@ prefix removed:
5858
from the environment becomes
5959
.Ev NODE_PORT
6060
in
61-
.Nm ,
62-
etc.
61+
.Nm .
6362
.\" ------------------------------------------------------------------
6463
.Sh EXAMPLES
6564
.\" ------------------------------------------------------------------
66-
Here is an example of a complete
65+
Below is an example of a minimalistic
6766
.Nm
68-
file that overrides the default Erlang node name from "rabbit" to
67+
file that overrides the default node name prefix from "rabbit" to
6968
"hare".
7069
.sp
7170
.Dl # I am a complete rabbitmq-env.conf file.
7271
.Dl # Comment lines start with a hash character.
7372
.Dl # This is a /bin/sh script file - use ordinary envt var syntax
7473
.Dl NODENAME=hare
74+
75+
In the below
76+
.Nm
77+
file RabbitMQ configuration file location is changed to "/data/services/rabbitmq/rabbitmq.conf".
78+
.sp
79+
.Dl # I am a complete rabbitmq-env.conf file.
80+
.Dl # Comment lines start with a hash character.
81+
.Dl # This is a /bin/sh script file - use ordinary envt var syntax
82+
.Dl CONFIG_FILE=/data/services/rabbitmq/rabbitmq.conf
7583
.\" ------------------------------------------------------------------
7684
.Sh SEE ALSO
7785
.\" ------------------------------------------------------------------

docs/rabbitmq-plugins.8

Lines changed: 84 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,41 @@
1414
.\" The Initial Developer of the Original Code is Pivotal Software, Inc.
1515
.\" Copyright (c) 2007-2019 Pivotal Software, Inc. All rights reserved.
1616
.\"
17-
.Dd April 25, 2017
17+
.Dd January 25, 2019
1818
.Dt RABBITMQ-PLUGINS 8
1919
.Os "RabbitMQ Server"
2020
.Sh NAME
2121
.Nm rabbitmq-plugins
22-
.Nd command line for managing RabbitMQ broker plugins
22+
.Nd command line for managing RabbitMQ plugins
2323
.\" ------------------------------------------------------------------
2424
.Sh SYNOPSIS
2525
.\" ------------------------------------------------------------------
2626
.Nm
27+
.Op Fl q
28+
.Op Fl s
29+
.Op Fl l
2730
.Op Fl n Ar node
31+
.Op Fl t Ar timeout
2832
.Ar command
2933
.Op Ar command_options
3034
.\" ------------------------------------------------------------------
3135
.Sh DESCRIPTION
3236
.\" ------------------------------------------------------------------
3337
.Nm
34-
is a command line tool for managing RabbitMQ broker plugins.
35-
It allows one to enable, disable and browse plugins.
38+
is a command line tool for managing RabbitMQ plugins.
39+
See the
40+
.Lk https://www.rabbitmq.com/plugins.html "RabbitMQ Plugins guide"
41+
for an overview of RabbitMQ plugins and how they are used.
42+
43+
.Nm
44+
allows the operator to enable, disable and inspect plugins.
3645
It must be run by a user with write permissions to the RabbitMQ
3746
configuration directory.
3847
.Pp
39-
Some plugins depend on others to work correctly.
48+
Plugins can depend on other plugins.
4049
.Nm
41-
traverses these dependencies and enables all required plugins.
50+
resolves the dependencies and enables or disables all dependencies
51+
so that the user doesn't have to manage them explicitly.
4252
Plugins listed on the
4353
.Nm
4454
command line are marked as explicitly enabled; dependent plugins are
@@ -54,12 +64,66 @@ and
5464
commands will update the plugins file and then attempt to connect to the
5565
broker and ensure it is running all enabled plugins.
5666
By default if it is not possible to connect to the running broker (for
57-
example if it is stopped) then a warning is displayed.
58-
Specify
59-
.Fl -online
60-
or
67+
example if it is stopped) the operation will fail.
68+
If
69+
.Nm
70+
is used on the same host as the target node,
6171
.Fl -offline
62-
to change this behaviour.
72+
can be specified to make
73+
.Nm
74+
resolve and update plugin state directly (without contacting the node).
75+
Such changes will only have an effect on next node start.
76+
To learn more, see the
77+
.Lk https://www.rabbitmq.com/plugins.html "RabbitMQ Plugins guide"
78+
.
79+
.\" ------------------------------------------------------------------
80+
.Sh OPTIONS
81+
.\" ------------------------------------------------------------------
82+
.Bl -tag -width Ds
83+
.It Fl n Ar node
84+
Default node is
85+
.Qq Pf rabbit@ Ar target-hostname ,
86+
where
87+
.Ar target-hostname
88+
is the local host.
89+
On a host named
90+
.Qq myserver.example.com ,
91+
the node name will usually be
92+
.Qq rabbit@myserver
93+
(unless
94+
.Ev RABBITMQ_NODENAME
95+
has been overridden).
96+
The output of
97+
.Qq hostname -s
98+
is usually the correct suffix to use after the
99+
.Qq @
100+
sign.
101+
See
102+
.Xr rabbitmq-server 8
103+
for details of configuring a RabbitMQ node.
104+
.It Fl q , -quiet
105+
Quiet output mode is selected.
106+
Informational messages are reduced when quiet mode is in effect.
107+
.It Fl s , -silent
108+
Silent output mode is selected.
109+
Informational messages are reduced and table headers are suppressed when silent mode is in effect.
110+
.It Fl t Ar timeout , Fl -timeout Ar timeout
111+
Operation timeout in seconds.
112+
Not all commands support timeouts.
113+
Default is
114+
.Cm infinity .
115+
.It Fl l , Fl -longnames
116+
Must be specified when the cluster is configured to use long (FQDN) node names.
117+
To learn more, see the
118+
.Lk https://www.rabbitmq.com/clustering.html "RabbitMQ Clustering guide"
119+
.It Fl -erlang-cookie Ar cookie
120+
Shared secret to use to authenticate to the target node.
121+
Prefer using a local file or the
122+
.Ev RABBITMQ_ERLANG_COOKIE
123+
environment variable instead of specifying this option on the command line.
124+
To learn more, see the
125+
.Lk https://www.rabbitmq.com/cli.html "RabbitMQ CLI Tools guide"
126+
.El
63127
.\" ------------------------------------------------------------------
64128
.Sh COMMANDS
65129
.\" ------------------------------------------------------------------
@@ -124,9 +188,9 @@ This command lists all implicitly or explicitly enabled RabbitMQ plugins.
124188
.It Cm enable Oo Fl -offline Oc Oo Fl -online Oc Ar plugin ...
125189
.Bl -tag -width Ds
126190
.It Fl -offline
127-
Just modify the enabled plugins file.
191+
Modify node's enabled plugin state directly without contacting the node.
128192
.It Fl -online
129-
Treat failure to connect to the running broker as fatal.
193+
Treat a failure to connect to the running broker as fatal.
130194
.It Ar plugin
131195
One or more plugins to enable.
132196
.El
@@ -144,29 +208,29 @@ plugins and all their dependencies:
144208
.It Cm disable Oo Fl -offline Oc Oo Fl -online Oc Ar plugin ...
145209
.Bl -tag -width Ds
146210
.It Fl -offline
147-
Just modify the enabled plugins file.
211+
Modify node's enabled plugin state directly without contacting the node.
148212
.It Fl -online
149-
Treat failure to connect to the running broker as fatal.
213+
Treat a failure to connect to the running broker as fatal.
150214
.It Ar plugin
151215
One or more plugins to disable.
152216
.El
153217
.Pp
154218
Disables the specified plugins and all their dependencies.
155219
.Pp
156220
For example, this command disables
157-
.Qq amqp_client
221+
.Qq rabbitmq_management
158222
and all plugins that depend on it:
159223
.sp
160-
.Dl rabbitmq-plugins disable amqp_client
224+
.Dl rabbitmq-plugins disable rabbitmq_management
161225
.\" ------------------------------------
162226
.It Cm set Oo Fl -offline Oc Oo Fl -online Oc Op Ar plugin ...
163227
.Bl -tag -width Ds
164228
.It Fl -offline
165-
Just modify the enabled plugins file.
229+
Modify node's enabled plugin state directly without contacting the node.
166230
.It Fl -online
167-
Treat failure to connect to the running broker as fatal.
231+
Treat a failure to connect to the running broker as fatal.
168232
.It Ar plugin
169-
Zero or more plugins to enable.
233+
Zero or more plugins to disable.
170234
.El
171235
.Pp
172236
Enables the specified plugins and all their dependencies.

docs/rabbitmq-server.8

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
.\" The Initial Developer of the Original Code is Pivotal Software, Inc.
1515
.\" Copyright (c) 2007-2019 Pivotal Software, Inc. All rights reserved.
1616
.\"
17-
.Dd April 25, 2017
17+
.Dd January 25, 2019
1818
.Dt RABBITMQ-SERVER 8
1919
.Os "RabbitMQ Server"
2020
.Sh NAME
2121
.Nm rabbitmq-server
22-
.Nd start RabbitMQ AMQP server
22+
.Nd starts a RabbitMQ node
2323
.\" ------------------------------------------------------------------
2424
.Sh SYNOPSIS
2525
.\" ------------------------------------------------------------------
@@ -28,47 +28,55 @@
2828
.\" ------------------------------------------------------------------
2929
.Sh DESCRIPTION
3030
.\" ------------------------------------------------------------------
31-
RabbitMQ is an implementation of AMQP, the emerging standard for high
32-
performance enterprise messaging.
33-
The RabbitMQ server is a robust and scalable implementation of an AMQP
34-
broker.
31+
RabbitMQ is an open source multi-protocol messaging broker.
3532
.Pp
3633
Running
3734
.Nm
38-
in the foreground displays a banner message, and reports on progress in
39-
the startup sequence, concluding with the message
40-
.Qq broker running ,
41-
indicating that the RabbitMQ broker has been started successfully.
42-
To shut down the server, just terminate the process or use
35+
starts a RabbitMQ node in the foreground. The node will display a startup
36+
banner and report when startup is complete.
37+
To shut down the server, use service management tools or
4338
.Xr rabbitmqctl 8 .
4439
.\" ------------------------------------------------------------------
4540
.Sh ENVIRONMENT
4641
.\" ------------------------------------------------------------------
4742
.Bl -tag -width Ds
43+
.It Ev RABBITMQ_CONFIG_FILE
44+
Defaults to
45+
.Pa /etc/rabbitmq/rabbitmq.conf .
46+
Node configuration file path.
47+
To learn more, see the
48+
.Lk https://www.rabbitmq.com/configure.html "RabbitMQ Configuration guide"
4849
.It Ev RABBITMQ_MNESIA_BASE
4950
Defaults to
5051
.Pa /var/lib/rabbitmq/mnesia .
51-
Set this to the directory where Mnesia database files should be placed.
52+
Node data directory will be located (or created) in this directory.
53+
To learn more, see the
54+
.Lk https://www.rabbitmq.com/relocate.html "RabbitMQ File and Directory guide"
5255
.It Ev RABBITMQ_LOG_BASE
5356
Defaults to
5457
.Pa /var/log/rabbitmq .
5558
Log files generated by the server will be placed in this directory.
59+
To learn more, see the
60+
.Lk https://www.rabbitmq.com/logging.html "RabbitMQ Logging guide"
5661
.It Ev RABBITMQ_NODENAME
5762
Defaults to
58-
.Qq rabbit .
59-
This can be useful if you want to run more than one node per machine -
63+
.Qq rabbit@ .
64+
followed by the computed hostname.
65+
Can be used to run multiple nodes on the same host.
66+
Every node in a cluster must have a unique
6067
.Ev RABBITMQ_NODENAME
61-
should be unique per erlang-node-and-machine combination.
62-
See the
63-
.Lk http://www.rabbitmq.com/clustering.html#single-machine "clustering on a single machine guide"
64-
for details.
68+
To learn more, see the
69+
.Lk https://www.rabbitmq.com/clustering.html "RabbitMQ Clustering guide"
6570
.It Ev RABBITMQ_NODE_IP_ADDRESS
66-
By default RabbitMQ will bind to all interfaces, on IPv4 and IPv6 if
67-
available.
68-
Set this if you only want to bind to one network interface or address
71+
By default RabbitMQ will bind to all IPv6 and IPv4 interfaces available.
72+
This variable limits the node to one network interface or address
6973
family.
74+
To learn more, see the
75+
.Lk https://www.rabbitmq.com/networking.html "RabbitMQ Networking guide"
7076
.It Ev RABBITMQ_NODE_PORT
71-
Defaults to 5672.
77+
AMQP 0-9-1 and AMQP 1.0 port. Defaults to 5672.
78+
To learn more, see the
79+
.Lk https://www.rabbitmq.com/networking.html "RabbitMQ Networking guide"
7280
.El
7381
.\" ------------------------------------------------------------------
7482
.Sh OPTIONS

0 commit comments

Comments
 (0)