How to enable clustering in Openfire Enterprise 3.4.0

Version 9

    What is clustering?

     

    A cluster is when you have several servers hosting the same domain. Before Openfire 3.4.0 it was possible to only have one machine hosting a domain. Even though a single machine can scale to very big numbers (e.g. more than 100K concurrent users) there is still a limit in the number of users you can scale. Moreover, if that machine suffers a problem and the server stops then all users will be affected.

     

    When using clustering you avoid those two problems. You will be naturally distributing the load among several machines thus even if one of them goes down the entire service will still continue to respond. The users that were connected to the machine that went down will just reconnect to any of the remaining machines.

     

    How do I use clustering in Openfire?

     

    Clustering is a commercial feature that is available in the Openfire Enterprise edition. That means that you need to get Openfire Enterprise to be able to use clustering. If you have an existing Openfire Enterprise license you will need to update it since the max number of members that could be part of the cluster is kept in the license. As part of the beta process we are providing a license that is good through October 31 that is when the beta process ends.

     

    Follow these steps to install Openfire Enterprise 3.4.0 Beta:

     

    1. Identify the machines where you are going to install the beta. Any machine with at least 512MB of RAM is fine. Of course you need to have more than one machine to have a cluster running.

    2. Download Openfire from here

    3. Run the installer to install Openfire in each of the machines. Follow the installation guide for more help.

    4. Start the server and complete the setup wizard in each machine. Make sure to use an external database and that all servers are using the same database.

    5. Download the Openfire Enterprise plugin from here

    6. Log into the admin console and go to the Plugins page. Upload the enterprise.jar file from that page. Run this step for each machine

    7. We now need to enter a valid license for Openfire Enterprise.

      1. Go to the admin console and click on Enterprise. You should see the following page to paste the license. <br/><br/>

      2. Now copy the following license content and paste it in the license information text area:

    >PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGxpY2Vuc2U+PGxpY2Vuc2VJRD4 x

    >ODg8L2xpY2Vuc2VJRD48cHJvZHVjdD5PcGVuZmlyZSBFbnRlcnByaXNlPC9wcm9kdWN0PjxsaWNlbnN l

    >VHlwZT5FdmFsdWF0aW9uPC9saWNlbnNlVHlwZT48bmFtZT48L25hbWUPGNvbXBhbnkPC9jb21wYW55

    >Pjx2ZXJzaW9uPjMuNDwvdmVyc2lvbj48bnVtQ29waWVzPjE8L251bUNvcGllcz48bnVtQ2x1c3Rlck1 l

    >bWJlcnMMTA8L251bUNsdXN0ZXJNZW1iZXJzPjxudW1Vc2Vycz4tMTwvbnVtVXNlcnMPG51bUFnZW50

    >cz4tMTwvbnVtQWdlbnRzPjx1cmwPC91cmwPGNyZWF0aW9uRGF0ZT4yMDA3LzEwLzAxPC9jcmVhdGlv

    >bkRhdGU+PGV4cGlyZXNEYXRlPjIwMDcvMTAvMzE8L2V4cGlyZXNEYXRlPjxtYWludGVuYW5jZUV4cGl y

    >ZXNEYXRlPjIwMDcvMTAvMzE8L21haW50ZW5hbmNlRXhwaXJlc0RhdGU+PHNpZ25hdHVyZT4zMDJjMDI x

    >NDE2ZTVmODVhNDQxZGQ5ZDc2Nzc2NGRlMGY1ZDk5ZGQ1YTk4ZGVlYmEwMjE0MzQyMDExMzAyZWYxNTI 5

    >Yjg1NWMwOTYzODE3MWU1YjhhN2YxMThlZDwvc2lnbmF0dXJlPjwvbGljZW5zZT4=

     

    At this point we have several machines running Openfire 3.4.0 beta. The last step is to enable clustering and see how the machines meet each other. Follow these steps to enable clustering:

     

    1. Go to the clustering page in the admin console. <br/><br/>

    2. Click on Enabled clustering and save the settings. It will take a few seconds for the first machine to start the cluster. Enabling cluster in the other machines will be faster. As each node joins the cluster you will see in the clustering page the nodes that conform the cluster. <br/><br/>

     

    What's next?

     

    At this point you have Openfire Enterprise running in a cluster. The next step is to run the test cases defined in the document How should I test clustering in Openfire Enterprise 3.4.0?.