Openfire 4.2.3 clutering

two city with vpn,two openfire4.2.3,two mysql,Users in two cities can communicate use xmpp client,how to make clustering?

i use hazelcast plugin, use tcp-ip about discovery of cluster members. but not working(The user will drop the line, the login will be slow, and the search function will not be available.)。

if you have Solution or suggestion ,please tell me ,thanks。

Openfire in two cities,

  1. One party has a fault and does not affect the normal work of the other party.
  2. Users in two cities can communicate with each other.

Thanks

If your two servers are not on the same LAN, you really want to use Server:Server not clustering. Clustering is really designed for local LAN traffic. Also, if you’re clustered, you need a single database that all nodes share.

There’s an old HOWTO at Server To Server HowTo’s which may help,

1 Like

this is a good idea, thanks. but two server domain is same 。

You’re going to have to change something.

If you insist on clustering the two servers across the WAN,
a) The two servers should use the same database, and
b) You’ll need to tweak the Hazelcast settings to cope. At the very least, change cluster discovery to TCP (http://docs.hazelcast.org/docs/latest-dev/manual/html-single/index.html#discovering-members-by-tcp). You may also need to set some advanced properties - see http://docs.hazelcast.org/docs/2.3/manual/html/ch12s06.html for details, though I’ve no idea which.
c) Don’t expect a reliable service. A single Hazelcast cluster is not designed for WAN replication.

Alternatively, change one of your XMPP domains and set up Server:Server.

Greg

Thanks your help,I will makeing some changes