rabbitmq-streams.8
NAME
rabbitmq-streams
— RabbitMQ stream management tools
SYNOPSIS
rabbitmq-streams | [-q ] [-s ] [-l ] [-n node] [-t timeout] command [command_options] |
DESCRIPTION
rabbitmq-streams
is a command line tool that provides commands used to manage streams, for example, add or delete stream replicas. See the RabbitMQ streams overview.
OPTIONS
-n
nodeDefault node is "rabbit@target-hostname", where target-hostname is the local host. On a host named "myserver.example.com", the node name will usually be "rabbit@myserver" (unless
RABBITMQ_NODENAME
has been overridden). The output of "hostname -s" is usually the correct suffix to use after the "@" sign. See rabbitmq-server(8) for details of configuring a RabbitMQ node.-q
,--quiet
- Quiet output mode is selected. Informational messages are reduced when quiet mode is in effect.
-s
,--silent
- Silent output mode is selected. Informational messages are reduced and table headers are suppressed when silent mode is in effect.
-t
timeout,--timeout
timeout- Operation timeout in seconds. Not all commands support timeouts. Default is
infinity
. -l
,--longnames
Must be specified when the cluster is configured to use long (FQDN) node names. To learn more, see the RabbitMQ Clustering guide
--erlang-cookie
cookieShared secret to use to authenticate to the target node. Prefer using a local file or the
RABBITMQ_ERLANG_COOKIE
environment variable instead of specifying this option on the command line. To learn more, see the RabbitMQ CLI Tools guide
COMMANDS
help
Displays general help and commands supported by
rabbitmq-streams
.
Replication
add_replica
queue node--vhost
virtual-hostAdds a stream replica on the given node.
Example:
rabbitmq-streams add_replica --vhost "a-vhost" "a-queue" "rabbit@new-node"
delete_replica
queue node--vhost
virtual-hostRemoves a stream replica on the given node.
Example:
rabbitmq-streams delete_replica --vhost "a-vhost" "a-queue" "rabbit@decomissioned-node"
Monitoring, observability and health checks
stream_status
stream--vhost
virtual-hostDisplays the status of a stream.
Example:
rabbitmq-streams stream_status --vhost "a-vhost" "a-stream"
restart_stream
stream--vhost
virtual-host---preferred-leader-node
nodeRestarts a stream including all of it's replicas. The optional preferred node flag instructs the command to try to place the leader on a specific node during the restart.
Example:
rabbitmq-streams restart_stream --vhost "a-vhost" "a-stream" --preferred-leader-node "node"
Stream plugin
list_stream_connections
[connectioninfoitem ...]Returns stream protocol connection statistics.
The connectioninfoitem parameter is used to indicate which connection information items to include in the results. The column order in the results will match the order of the parameters. connectioninfoitem can take any value from the list that follows:
auth_mechanism
- SASL authentication mechanism used, such as "PLAIN".
client_properties
- Informational properties transmitted by the client during connection establishment.
conn_name
- Readable name for the connection.
connected_at
- Date and time this connection was established, as timestamp.
connection_state
Connection state; one of:
running
blocked
frame_max
- Maximum frame size (bytes).
heartbeat
- Negotiated heartbeat interval, in seconds.
host