Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

rabbitmq-queues (8)

Name

rabbitmq-queues - RabbitMQ queue management tools

Synopsis

rabbitmq-queues [-q] [-s] [-l] [-n node] [-t timeout] command
[command_options]

Description

RABBITMQ-QUEUES(8)        BSD System Manager's Manual       RABBITMQ-QUEUES(8)

NAME
     rabbitmq-queues -- RabbitMQ queue management tools

SYNOPSIS
     rabbitmq-queues [-q] [-s] [-l] [-n node] [-t timeout] command
                     [command_options]

DESCRIPTION
     rabbitmq-queues is a command line tool that provides commands used to
     manage queues, for example, grow, shrink or rebalance replicas of repli-
     cated queue types.  See the RabbitMQ quorum queues guide:
           https://www.rabbitmq.com/quorum-queues.html
     and the general RabbitMQ queues guide:
           https://www.rabbitmq.com/queues.html
     to learn more about queue types in RabbitMQ.

OPTIONS
     -n node
             Default 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:
                   https://www.rabbitmq.com/clustering.html

     --erlang-cookie cookie
             Shared 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:
                   https://www.rabbitmq.com/cli.html

COMMANDS
     help

             Displays general help and commands supported by rabbitmq-queues.

   Cluster
     grow node selector --vhost-pattern pattern --queue-pattern pattern
             --errors-only

             Adds a new replica on the given node for all or a half of match-
             ing quorum queues.

             Supported selector values are:

             all     Selects all quorum queues

             even    Selects quorum queues with an even number of replicas

             Example:
                   rabbitmq-queues grow "rabbit@newhost" "all" --vhost-pattern
                   "a-vhost" --queue-pattern ".*"

     rebalance type --vhost-pattern pattern --queue-pattern pattern

             Rebalances queue master replicas across cluster nodes.

             Supported type values are:

             all     All queue types

             quorum  Only quorum queues

             classic
                     Only classic queues

             Example:
                   rabbitmq-queues rebalance "all" --vhost-pattern "a-vhost"
                   --queue-pattern ".*"

     shrink node

             Shrinks quorum queue clusters by removing any members (replicas)
             on the given node.

             Example:
                   rabbitmq-queues shrink "rabbit@decomissioned-node"

   Replication
     add_member queue node --vhost virtual-host

             Adds a quorum queue member (replica) on the given node.

             Example:
                   rabbitmq-queues add_member --vhost "a-vhost" "a-queue"
                   "rabbit@new-node"

     delete_member queue node --vhost virtual-host

             Removes a quorum queue member (replica) on the given node.

             Example:
                   rabbitmq-queues delete_member --vhost "a-vhost" "a-queue"
                   "rabbit@decomissioned-node"

   Queues
     quorum_status queue --vhost virtual-host

             Displays quorum status of a quorum queue.

             Example:
                   rabbitmq-queues quorum_status --vhost "a-vhost" "a-queue"

     check_if_node_is_mirror_sync_critical

             Health check that exits with a non-zero code if there are classic
             mirrored queues without online synchronised mirrors (queues that
             would potentially lose data if the target node is shut down).

             Example:
                   rabbitmq-queues check_if_node_is_mirror_sync_critical

     check_if_node_is_quorum_critical

             Health check that exits with a non-zero code if there are queues
             with minimum online quorum (queues that would lose their quorum
             if the target node is shut down).

             Example:
                   rabbitmq-queues check_if_node_is_quorum_critical


ATTRIBUTES
     See attributes(7) for descriptions of the following attributes:

     +---------------+-----------------------+
     |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
     +---------------+-----------------------+
     |Availability   | network/amqp/rabbitmq |
     +---------------+-----------------------+
     |Stability      | Pass-through volatile |
     +---------------+-----------------------+

SEE ALSO
     rabbitmqctl(8), rabbitmq-diagnostics(8), rabbitmq-server(8),
     rabbitmq-upgrade(8), rabbitmq-service(8), rabbitmq-env.conf(5),
     rabbitmq-echopid(8)

AUTHOR
     The RabbitMQ Team <info@rabbitmq.com>



NOTES
     Source code for open source software components in Oracle Solaris can be
     found at https://www.oracle.com/downloads/opensource/solaris-source-code-
     downloads.html.

     This software was built from source available at https://github.com/ora-
     cle/solaris-userland.  The original community source was downloaded from
     https://github.com/rabbitmq/rabbitmq-server/releases/down-
     load/v3.8.18/rabbitmq-server-3.8.18.tar.xz.

     Further information about this software can be found on the open source
     community website at https://www.rabbitmq.com/.

RabbitMQ Server                  June 19, 2021                 RabbitMQ Server