About Cluster mode setting

2 posts / 0 new
Last post
Anonymous
About Cluster mode setting

Hi.
I have two machines(pc) and I installed tigase5.0 in each machine to configure cluster mode. So, I stetted the machines like below…

-------------------------------------------------------------------------
PC_1 (IP: 192.168.2.73)

host file
127.0.0.1 whtak.uangel.com
192.168.2.73 whtak.uangel.com
192.168.2.73 whtak1
192.168.3.167 whtak2

init.properties
config-type = --gen-config-def
--cluster-mode = true
--cluster-nodes = whtak1,whtak2
--debug = server,xmpp.impl,db,cluster
--user-db = mysql
--admins = admin@whtak.uangel.com
--user-db-uri = jdbc:mysql://localhost:9906/tigaseDB?user=tigase&password=tigase
--virt-hosts = whtak.uangel.com
--comp-class-1 = tigase.muc.MUCComponent
--comp-name-1 = muc
--cl-comp-ports = 5277,5278
-------------------------------------------------------------------------

PC_2 (IP: 192.168.3.167)
host file
192.168.2.73 whtak.uangel.com
192.168.2.73 whtak1
192.168.3.167 whtak2

init.properties
config-type = --gen-config-def
--cluster-mode = true
--cluster-nodes = whtak1,whtak2
--debug = server,xmpp.impl,db,cluster
--user-db = mysql
--admins = admin@whtak.uangel.com
--user-db-uri = jdbc:mysql://localhost:9906/tigaseDB?user=tigase&password=tigase
--virt-hosts = whtak.uangel.com
--comp-class-1 = tigase.muc.MUCComponent
--comp-name-1 = muc
--cl-comp-ports = 5277,5278
-------------------------------------------------------------------------
After setting, I connected to each machine(PC1-JID:whtak1.uangel.com, PC2-JID:whtak2.uagenl.com) using PSI. It worked well.
But, whtack1.uangel.com couldn’t find whtak2.uangel.com. whtak2.uangel.com also couldn’t find whtak2.uangel.com. Even though, the two clients have been logging in PSI.

So, I traced the log file(tigase.log.0).
----------------------------------------------------------------------------------------------
2010-04-27 17:52:45 ClusterElement.() FINEST: Parsing cluster element: sess-man@whtak2whtak2_cluster@whtak.uangel.comwhtak2c2s@whtak2/192.168.3.167_5222_192.168.3.167_11809fd01976-4a6d-4abb-bc43-e5dcde2c346a485sess-man@whtak2
5

2010-04-27 17:52:45 ClusterElement.() FINEST: First node found: sess-man@whtak2
2010-04-27 17:52:45 ClusterElement.() FINEST: Found and added visited nodes: 1
2010-04-27 17:52:45 SessionManagerClustered.processClusterPacket() FINEST: Ignoring USER_INITIAL_PRESENCE for: whtak2_cluster@whtak.uangel.com, from: sess-man@whtak2, there is no other session for the user on this node
----------------------------------------------------------------------------------------------

When I saw this log file, I thought the two machine had exchanged some information. So, I think They know each other. However, In PSI I couldn’t find (presence and message exchanging).
Are there the setting problems?
Suggest to me a good solution.

plz… give me any solution… and I’m sorry my poor English

Thank You.

Application: 

I am quite sure both cluster nodes can't see each other and they do not work in one cluster.
Please make sure following things work for each machine as described below:

user@whtak1 $ hostname
whtak1.uangel.com
user@whtak1 $ host whtak1.uangel.com
whtak1.uangel.com has address 192.168.2.73
user@whtak1 $ ping whtak1.uangel.com
PING dwhtak1.uangel.com (192.168.2.73): 56 data bytes
64 bytes from 192.168.2.73: icmp_seq=0 ttl=64 time=0.073 ms
user@whtak1 $ ping whtak2.uangel.com
PING dwhtak2.uangel.com (192.168.3.167): 56 data bytes
64 bytes from 192.168.3.167: icmp_seq=0 ttl=64 time=0.073 ms

Check this on both hosts. I am sure some of above may return incorrect results which means settings are not good enough for the Tigase cluser.