Project

General

Profile

5.2.0 Message duplication in cluster mode

Hamid Alimohammadi
Added almost 5 years ago

Hi dear Artur,

Thank you very much for help.

Bellow I pasted the complete init.properties file, I have just changed the real public IP of the servers to private IPs and the real "hostname" in clusters to xmpp.test.net in the pasted init.properties file, that is:

"virt-hosts" = xmpp.test.net

Node1 "hostname" = xmpp1.test.net with IP 10.1.1.180

Node2 "hostname" = xmpp2.test.net with IP 10.1.1.181

(The init.properties files in clusters are identical.)

The 1-1 messages get duplicated (we have not tested MCU) and the strange thing is that we face this problem occasionally, I mean sometimes it works fine and some time we get duplicated message.

Thank you again for help.

========================================================================================================================

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

--virt-hosts = xmpp.test.net

--user-db-uri = jdbc:mysql://10.1.1.180/tigasedb?user=tigase&password=tigase12

--user-db = mysql

--admins = admin@xmpp.test.net,admin@xmpp1.test.net,admin@xmpp2.test.net

--comp-name-6 = message-archive

--comp-name-5 = rest

--comp-name-4 = stun

--comp-name-3 = proxy

config-type = --gen-config-all

--comp-name-2 = pubsub

--comp-name-1 = muc

--cluster-mode = true

--cluster-nodes = xmpp1.test.net,xmpp2.test.net

--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-class-6 = tigase.archive.MessageArchiveComponent

--debug = server,xmpp.impl,db,cluster

--comp-class-5 = tigase.http.rest.RestMessageReceiver

--comp-class-4 = tigase.stun.StunComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

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

--monitoring=jmx:9050,http:9080,snmp:9060

==================================================================================================================================


Replies (3)

Added by Hamid Alimohammadi almost 5 years ago

Just to add I used "console installer" for installation.

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

This doesn't look like a complete init.properties configuration file. Could you please provide us with a complete config file?

What kind of messages get duplicated? 1-1 or MUC?

Added by wenming gao over 4 years ago

I Use 5.2.1 ,also have the same problem when 1-1 get duplicate messages ,but MUC is normal

    (1-3/3)