Project

General

Profile

xmpp-server cluster problem

wenming gao
Added about 4 years ago

hi :

When using the XMPP cluster, the emergence of receiving repeated problems,

the specific phenomenon is I to send a message,

such as "Hello world", but received 2 times "Hello world" message

Init.properties file as follows:

--user-db = MySQL

--admins = admin@ottchat

--user-db-uri = jdbc:mysql://10.10.77.43:3306/tigase_test3?

User=umsManager&password=daYfs5F

Config-type = --gen-config-def

--virt-hosts = ottchat

#--debug = server

#--debug = net, server

--user-repo-pool-size=25

#--monitoring=http:9080

#--c2s-ports = 80

--stats-archiv=tigase.stats.CounterDataLogger:stats-logger:300

Stats/stats-archiv/stats-logger/db-url=jdbc:mysql://10.10.77.43:3306/tigase_test3?

User=umsManager&password=daYfs5F

Stats/stats-update-interval=120

--sm-plugins = +message-archive-xep-0136, +jabber:iq:auth,

+urn:ietf:params:xml:ns:xmpp-sasl, +urn:ietf:params:xml:ns:xmpp-bind,

+urn:ietf:params:xml:ns:xmpp-session, +jabber:iq:register, +jabber:iq:roster,

+presence, +jabber:iq:privacy, +jabber:, iq:version,

+http://jabber.org/protocol/stats, +starttls, +msgoffline, +vcard-temp,

+http://jabber.org/protocol/commands, +jabber:iq:private, +urn:xmpp:ping,

+basic-filter, +domain-filter, +pep, +zlib

#--comp-name-1 = muc

#--comp-class-1 = tigase.muc.MUCComponent

#--comp-name-2 = PubSub

#--comp-class-2 = tigase.pubsub.PubSubComponent

#--comp-name-3=srecv

#--comp-class-3=tigase.server.sreceiver.StanzaReceiver

--new-connections-throttling = 5222:20005223:5005269:10005280:5000

--data-repo-pool-size=60

--auth-repo-pool-size=60

--max-queue-size=2000

#--new-connections-throttling = 5222:2000

#--data-repo-pool-size = 60

#--auth-repo-pool-size = 60

#--max-queue-size = 2000

###########################################################################

--cluster-mode = true

--cluster-connect-all = true

--cluster-nodes = bx_15_108:5222, zw_34_109:5222, zw_34_110:5222

--sm-cluster-strategy-class =

tigase.cluster.strategy.OnlineUsersCachingStrategy

--comp-name-1 = muc

--comp-name-2 = PubSub

--comp-class-1 = tigase.muc.cluster.MUCComponentClustered

--comp-class-2 = tigase.pubsub.cluster.PubSubComponentClustered


Replies (4)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

wenming gao wrote:

Init.properties file as follows:

--cluster-mode = true

--cluster-connect-all = true

--cluster-nodes = bx_15_108:5222, zw_34_109:5222, zw_34_110:5222

--sm-cluster-strategy-class =

tigase.cluster.strategy.OnlineUsersCachingStrategy

Which Tigase version do you use? With version 5.2.x there is clustering auto-discovery hence you don't need to specify list of cluster nodes. Apart from that port that you specified in the configuration is wrong.

When you see the message duplication - are both users connected to the same node or to different nodes?

Added by wenming gao about 4 years ago

I Use Version 5.2.1,Can you give me a cluster node configuration standard examples?

thank you !

Added by wenming gao about 4 years ago

I Use Version 5.2.1,Can you give me a cluster node configuration standardexamples?

thank you !

At 2014-10-29 21:03:24, support@tigase.org wrote:

Added by Wojciech Kapcia TigaseTeam about 4 years ago

There is no need to specify nodes at all - you simply enable cluster mode with:

--cluster-mode = true

and that's enough.

    (1-4/4)