Project

General

Profile

Tigase Server Cluster

Anant Goswami
Added over 3 years ago

Hi all,

When I cluster two nodes then I am able to chat with user connected with two different node but when I stop one node then the user who were connected with that node gets off.

Here is my init.properties configuration

at node 1 :

--cluster-mode = true

--cluster-nodes= node1.rajesh,node2.rajesh

--cluster-connect-all = true

config-type = --gen-config-def

--debug=xml,server,xmpp.impl,db,xmpp.XMPPIOService,muc

#server,xmpp.impl,db,xmpp.XMPPIOService

--user-db = mysql

--admins = admin@myserver

--user-db-uri = jdbc:mysql://192.168.1.23:3306/tigasedb?user=root&password=

--virt-hosts = node1.rajesh,node2.rajesh

at node 2:

--cluster-mode = true

--cluster-nodes= node1.rajesh,node2.rajesh

--cluster-connect-all = true

config-type = --gen-config-def

--debug=xml,server,xmpp.impl,db,xmpp.XMPPIOService,muc,component,component2,cluster

#server,xmpp.impl,db,xmpp.XMPPIOService

--user-db = mysql

--admins = admin@rajesh.com

--user-db-uri = jdbc:mysql://192.168.1.23:3306/tigasedb?user=root&password=

--virt-hosts = node1.rajesh,node2.rajesh

I don't know what is wrong with my configuration

we have tigase 7.1.0 in on both node


Replies (3)

Added by Eric Dziewa over 3 years ago

Anant, --virt-hosts shouldn't be the same as --cluster-nodes@. Your @virt-hosts should have one entry which will resolve to the cluster nodes usually using DNS. For instance --virt-hosts=myhost and myhost DNS entry which resolves to the IPs of @node1.rajesh@, and @node2.rajesh@.

Added by raj vasani over 3 years ago

What is the value of domain/server i should enter while user registration in cluster mode ??

Added by Wojciech Kapcia TigaseTeam over 3 years ago

raj vasani wrote:

What is the value of domain/server i should enter while user registration in cluster mode ??

This depends. There is a distinction between domain/VHost (the domain under which you want to provide the service, for example @tigase.org@) and the actual machines hostnames (used in cluster-nodes, for example @node1.tigase.org,node2.tigase.org@).

Please note, that with latest Tigase there is an autodiscovery feature which doesn't require setting the cluster-nodes manually in the init.properties.

    (1-3/3)