Project

General

Profile

Tigase cluster Configuration problem

Moffitt tig
Added over 2 years ago

hello! team

I have two servers respectively service 1 and service 2 ,Their configuration in /etc/init.properties as follows:

service 1:

--cluster-mode = true
--sm-cluster-strategy-class= tigase.server.cluster.strategy.OnlineUsersCachingStrategy 
--cluster-nodes = nodel.example.com,node2.example.com
--cluster-connect-all = true

service 2:

--cluster-mode = true
--sm-cluster-strategy-class= tigase.server.cluster.strategy.OnlineUsersCachingStrategy 
--cluster-nodes = nodel.example.com,node2.example.com
--cluster-connect-all = true

They all started successfully, Using psi client login user.

1.Add two admin account in psi, Admin account can log on to the two servers at the same time, is this why ,I think one of the users is forced to offline ?

  1. The logged in user after a few minutes, appear the following abnormalities , is this why ?
2016-09-28 13:38:12.651 [ResultsListener-socketReadThread-11]  SocketThread$ResultsListener.run()  WARNING: Protocol execution exception.
java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at tigase.net.SocketThread$ResultsListener.run(SocketThread.java:568)
Caused by: java.lang.NullPointerException
    at tigase.cluster.ClusterConnectionManager.processSocketData(ClusterConnectionManager.java:441)
    at tigase.server.ConnectionManager.packetsReady(ConnectionManager.java:424)
    at tigase.server.ConnectionManager.packetsReady(ConnectionManager.java:1)
    at tigase.net.IOService.call(IOService.java:245)
    at tigase.xmpp.XMPPIOService.call(XMPPIOService.java:216)
    at tigase.net.IOService.call(IOService.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2016-09-28 13:38:12.653 [pool-21-thread-8]  ConnectionManager.serviceStopped()  FINER:  [[cl-comp]] Connection stopped: null, type: connect, Socket: nullSocket[unconnected], jid: null

Thank you in advance!


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 2 years ago

Moffitt tig wrote:

They all started successfully, Using psi client login user.

1.Add two admin account in psi, Admin account can log on to the two servers at the same time, is this why ,I think one of the users is forced to offline ?

  1. The logged in user after a few minutes, appear the following abnormalities , is this why ?

You can't have two users with same JID and same resource connected at the same time - making a new connection with the same resource name will disconnect old connection. Psi by default uses same resource names so you have to either use server-generated resources or change configuration in Psi to use distinct resources.

    (1-1/1)