0
我目前正试图管理一个openmq群集(with glassfish 3.0.1),并且遇到一些奇怪的行为。从群集正确注销imq代理
集群工作七个月,现在没有任何问题,2经纪人注册。
我现在需要在集群中临时添加两个其他代理。下面是我之前:
------------------------- Host Primary Port ------------------------- localhost 7676 Cluster ID MyCluster Cluster is Highly Available true ------------------------------------------------------------------------------------------------------------- ID of broker Time since last Broker ID Address State Msgs in store performing takeover status timestamp ------------------------------------------------------------------------------------------------------------- Broker1 192.168.0.1:7676 OPERATING 5 6 seconds Broker2 192.168.0.2:7676 OPERATING 8 6 seconds
然后,我成功地另外两个服务器上启动另外两个经纪人和我:
------------------------- Host Primary Port ------------------------- localhost 7676 Cluster ID MyCluster Cluster is Highly Available true ------------------------------------------------------------------------------------------------------------- ID of broker Time since last Broker ID Address State Msgs in store performing takeover status timestamp ------------------------------------------------------------------------------------------------------------- Broker1 192.168.0.1:7676 OPERATING 5 6 seconds Broker2 192.168.0.2:7676 OPERATING 8 6 seconds Broker3 192.168.0.3:7676 OPERATING 5 6 seconds Broker4 192.168.0.4:7676 OPERATING 8 6 seconds
的应用与配置运行良好,自动使用两个新经纪人。在服务器上的一个
./imqcmd shutdown bkr
:使用下面的命令时,我停止从群集经纪人出现问题。的./imqcmd list bkr
结果如下:
------------------------- Host Primary Port ------------------------- localhost 7676 Cluster ID MyCluster Cluster is Highly Available true ------------------------------------------------------------------------------------------------------------- ID of broker Time since last Broker ID Address State Msgs in store performing takeover status timestamp ------------------------------------------------------------------------------------------------------------- Broker1 192.168.0.1:7676 OPERATING 5 6 seconds Broker2 192.168.0.2:7676 OPERATING 8 6 seconds Broker3 192.168.0.3:7676 TAKEOVER_COMPLETE 0 Broker1 6 seconds Broker4 192.168.0.4:7676 OPERATING 8 6 seconds
一切似乎是确定,收购由BROKER1进行的,但是当我看glassfishs的server.log中,我发现以下行:
[C4003]: Error occurred on connection creation [192.168.0.3:7676]. - cause: java.net.ConnectException: Connection refused|#]
就好像玻璃鱼试图连接到已下调的经纪人。
有什么我错过了吗?
感谢您的帮助。