Openfire clustering

I’ve installed openfire 3.7.1 and am trying to cluster 2 ec2 nodes.

I enabled the clustering plugin one node at a time. When i enable clustering for the first node it joins a cluster. However when I enable to 2nd node it doesn’t join the same cluster. They both have an independent cluster of 1 node. I expected to see the clustering admin page to display 2 nodes are there. but each node only has itself in its cluster.

I allowed the ports 8088 for unicast listenner and 33389 for multicast listener.

What else do i need to enable to inform the two nodes to join the same cluster?

hi guys,

I was able to solve my issue thanks to a post, the things I forgot were the following

  • After the clustering plugin is installed by OpenFire server, go to plugins/clustering folder and copy from plugin/clustering/lib folder:
    plugin-clustering.jar into OpenFire lib folder.
  • If this jar is missing an error “Failed to start or join an existing cluster.” will appear in the Console when enabling the clustering.
  • The following exception appears in /logs/error.log: java.lang.ClassNotFoundException: com.jivesoftware.util.cache.JiveConfigurableCacheFactory

coherence-cache-config.xml into OpenFire lib folder. ( Coud not find why this is important ).

  • There is a post saying this xml should be inserted into coherence.jar

tangosol-coherence-override.xm into root folder. You need root permissions for this.
If this file is missing, other nodes in the cluster will not appear in Cluster Overview in the Console, only this node )

now there are actually the key configuration is the tangosol-coherence-override file you should be placing on the root directory of your system. it shoul be on /tangosol-coherence-override.xml . remember of your system.

this config should have all your unicast addresses. because if you’re using cloud servers multicast wont work. so you have to use unicast. they different should have exactly the same file. make sure the xml is correct. you should use the oracle documentation as reference http://docs.oracle.com/cd/E18686_01/coh.37/e18677/cluster_setup.htm

read up on the well-known addresses.

you can also specify the ip by changing the startup parameters of your /etc/init.d/openfire script. (I’m using ubuntu os by the way.)

Thanks guys

1 Like

When i move the tangsol-coherence-override.xml to my root dir it breaks my server. I am running a windows server. Have your tried this on a windows server?

Thank you very much for posting a response to your own question. Made clustering work for me!

I am using windows and linux servers cluster together.

Be sure to copy the .jar file from plugins\clustering\lib into the main lib folder.