2011-07-11 95 views
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|#]

就好像玻璃魚試圖連接到已下調的經紀人。

有什麼我錯過了嗎?

感謝您的幫助。

回答

0

缺少的命令行是:

imqdbmgr remove bkr -n Broker3 
 
then a list will ouput: 

------------------------------------------------------------------------------------------------------------- 
                      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 
Broker4   192.168.0.4:7676 OPERATING   8          6 seconds 

的broker3上是沒有更多的註冊代理HA羣集。