此内容没有您所选择的语言版本。

9.2. Cluster management


9.2.1. Cluster Management using qpid-ha

qpid-ha is a command-line utility that allows you to view information on a cluster and its brokers, disconnect a client connection, shut down a broker in a cluster, or shut down the entire cluster. It accepts a command and options.
qpid-ha has the following commands and parameters:

Commands

status
Print HA status. Returns information whether the specified broker is acting as a primary (active) or a backup (ready). With the --all option will list the whole cluster.
Examples:
# qpid-ha status
ready
# qpid-ha status --all
192.168.6.60:5672 ready
192.168.6.61:5672 active
192.168.6.62:5672 ready
ping
Check if the broker is alive and responding.
query
Print HA configuration and status. The following information is returned:
  • broker status: primary (active) or backup (ready).
  • list of HA broker URLs
  • public (virtual) HA URL
  • replication status
Example:
# qpid-ha query
Status:        ready
Brokers URL:   amqp:tcp:192.168.6.60:5672,tcp:192.168.6.61:5672,tcp:192.168.6.62:5672
Public URL:    amqp:tcp:192.168.6.251:5672
Replicate:     all
replicate
Set up replication from <queue> on <remote-broker> to <queue> on the current broker.

Parameters

--broker=BROKER
The address of qpidd broker. The syntax is shown below:
[username/password@] hostname | ip-address [:port]
--sasl-mechanism=SASL_MECH
SASL mechanism for authentication (e.g. EXTERNAL, ANONYMOUS, PLAIN, CRAM-MD5, DIGEST-MD5, GSSAPI). SASL automatically picks the most secure available mechanism - use this option to override.
--ssl-certificate=SSL_CERT
Client SSL certificate (PEM Format).
--config=CONFIG
Connect to the local qpidd by reading its configuration file (/etc/qpid/qpidd.conf, for example) .
--timeout=SECONDS
Give up if the broker does not respond within the timeout. 0 means wait forever. The default is 10.0.
--ssl-key=KEY
Client SSL private key (PEM Format)
--help-all
Outputs all of the above commands and parameters.
Each command accepts a variety of options. You can see the options using the --help-all option:
$ qpid-ha --help-all
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部