Project

General

Profile

cluster configure

Lonely Lonely
Added about 4 years ago

Hi, I do the test when the cluster fails, the following is the configuration file

config-type=--gen-config-def
--admins=admin@test.xmpp.com
--virt-hosts = test.xmpp.com
--debug=server,cluster
--user-db=mysql
--user-db-uri=jdbc:mysql://127.0.0.1:3306/mytigase?user=root&password=feng&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true
sess-man/plugins-conf/amp/store-limit=1000
muc/muc-lock-new-room[B]=false
muc/message-filter-enabled[B]=false
muc/muc-allow-chat-states[B]=true
--max-queue-size = 10000
message-archive/archive-repo-uri=jdbc:mysql://127.0.0.1:3306/mytigase?user=root&password=feng&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true
sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@test.xmpp.com
sess-man/plugins-conf/message-archive-xep-0136/default-store-method=body
sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body
sess-man/plugins-conf/message-archive-xep-0136/auto=true
cl-comp/compress-stream[B]=false
message-router/components/msg-receivers/s2s.active[B]=false
--cluster-mode=true
--cluster-connect-all=true
--cluster-nodes=AndytekiMacBook-Air.local:5222,www.example.tigase.com:5222
--comp-name-1 = muc
--comp-class-1 = tigase.muc.cluster.MUCComponentClustered
--comp-name-2 = pubsub
--comp-class-2 = tigase.pubsub.cluster.PubSubComponentClustered
muc/muc-strategy-class[S]=tigase.muc.cluster.DefaultStrategy
--sm-cluster-strategy-class=tigase.cluster.strategy.OnlineUsersCachingStrategy

The following are two machines input log


Replies (3)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

Your configuration is wrong. For the latest versions of Tigase you should not specify --cluster-nodes= (those will be discovered automatically). Also - you try to specify wrong hostnames and, most importantly, wrong ports (Tigase clustering utilize 5277 port, 5222 is used for client connections).

Added by Lonely Lonely about 4 years ago

Thanks!

In other words, the deployment to a cluster server, automatically find the cluster nodes. This really helps a cluster expansion.

5277 is the default cluster, set here is the password 5222 cluster nodes.

Added by Wojciech Kapcia TigaseTeam about 4 years ago

Lonely Lonely wrote:

Thanks!

In other words, the deployment to a cluster server, automatically find the cluster nodes. This really helps a cluster expansion.

Yes, that is correct.

    (1-3/3)