qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lei.dai@airlink-software.com" <lei....@airlink-software.com>
Subject Re: Re: [Qpid C++ Broker][HA] How to configure the HA-cluster without rgmanager?
Date Wed, 23 Nov 2016 03:40:16 GMT
Oh, yes, finally I found the qpidd-primary in /usr/local/etc/rc.d/init.d.
Now I can set the primary node by calling "qpid-ha promote --cluster-manager" with a -b parameter
to specify the IP address.
But indeed if the primary node dead, the cluster cannot elect new primary automatically without
rgmanager or other cluster-managers.
In fact, I will have to use qpid on windows, so maybe I must find a substitute for rgmanager.

Thanks.

Regards,


Lei Dai

From: Alan Conway
Date: 2016-11-22 06:20
To: users@qpid.apache.org
Subject: Re: [Qpid C++ Broker][HA] How to configure the HA-cluster without rgmanager?
On Sun, 2016-11-20 at 17:53 +0800, lei.dai@airlink-software.com wrote:
> Hi,
> 
> I'm trying to configure the qpid HA-cluster without rgmanager but it
> doesn't work.
> 
> The version Infos:
> ---------------------------
> CentOS 7.2
> qpid-cpp-1.35.0
> qpid-proton-0.14.0
> ---------------------------
> 
> I installed qpid-cpp and qpid-proton in according to the INSTALL.txt
> with default configurations on 3 CentOS VMs.
> The IP addresses are: 172.16.28.231, 172.16.28.232, 172.16.23.233.
> 
> Started qpid on every VM with command:
> $qpidd --auth no --ha-cluster yes --ha-brokers-url
> 172.16.28.231,172.16.28.232,172.16.28.233
> 
> But when I use qpid-ha to show the status of the cluster, all nodes
> are in joining status.
> It means the nodes didn't connect to each other?
 
rgmanager is the thing that promotes the initial primary, and promotes
a new primary if that fails. The brokers are waiting for something to
promote one of them.
 
> Did I have some mistakes in the configurations or the usage?
> I read the documents on the qpid site. It says that rgmanager can
> manage the cluster and set the primary node by calling qpidd-primary
> script.
> But I didn't find the qpidd-primary script in my system.
 
Looks like it has been converted to a systemd script:
 
   /usr/lib/systemd/system/qpidd-primary.service
 
It simply calls `qpid-ha promote`
 
> Is the rgmanager necessary to use HA-cluster?
 
You need something to do the basic cluster-management tasks:
- detect primary failure, choose a backup to promote
- ensure exactly one primary is running at all times
- enforce quorum
 
Qpid HA is designed so that you can use something other than rgmanager
(e.g. pacemaker) but only scripts for rgmanager are provided. If you
want to use something else you'd need to write your own scripts.
 
Cheers,
Alan.
 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message