powered by Jive Software

Openfire Clustering

Hello,

We are using openfire 3.7.1 as a corporate IM Server with arroung 500 users on the head office. we would like to connect our branch office users around 300 more. For load balancing we would like to use clusteing plugin.

Can any one tell us do we need difftent mySQL database for both openfire server or a single DB will do. Can any one provide the exact doc for how to configure clustering.

Ronak Sheth

You have to use the same database, but you hardly need clustering for 800 users.

Some links and discussion here you can use as a starting point. Currently you will need licenses for Oracle Coherence as it is the only working implementation of clustering for Openfire.

Hi,

but there is clustering plugin available for download as open source on the websiteand how to use this plugin

Ronak Sheth

Yes, but the plugin is just an adapter for Coherence. On it’s own it does nothing.

Honestly, you’re better off just running Openfire under a cluster resource management package (e.g. pacemaker/heartbeat on Linux, or MSCS on Windows). Even when you use the Openfire clustering plugin, you need a load balancer in front of it that will route users to available Openfire instances, as well as detecting when one fails. You also need a shared database, which if you’re clustering Openfire you probably want to be resiliant against failures - So that’s Oracle RAC, or some other sort of database clustering. Even with clustering, when an instance fails all the users which were connected to it have to log out and log back into another one - It’s not transparent, although it’s slightly better than restarting Openfire on another box and having everyone reconnect.

What problem are you trying to solve with clustering? Unless you have a huge number of users and a lot of messages, the clustering plugin probably is not the right solution.

I have downloaded coherence.jar, coherence-work.jar, tangosol.jar to [openfire_home]/lib and clustering.jar into the plugins directory after that i started Openfire and got th following error in GUI console.

Apr 26, 2012 5:08:08 PM com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl join

INFO: GMS1095: member: kerio is joining group: openfire …

Apr 26, 2012 5:08:10 PM com.sun.grizzly.Controller logVersion

INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.24 - 4/26/12 5:08 PM

Apr 26, 2012 5:08:11 PM com.sun.enterprise.ee.cms.impl.base.GroupCommunicationProviderImpl join

INFO: starting cluster openfire for member:kerio

Apr 26, 2012 5:08:11 PM com.sun.enterprise.mgmt.MasterNode start

INFO: GMS1061: MasterNode message listener is registered for member: kerio group: openfire

Apr 26, 2012 5:08:11 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl getMemberTokens

INFO: GMS1092: GMS View Change Received for group: openfire : Members in view for MASTER_CHANGE_EVENT(before change analysis) are :

1: MemberId: kerio, MemberType: CORE, Address: 192.168.0.55:9173:229.9.1.1:2299:openfire:kerio

Apr 26, 2012 5:08:11 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl newViewObserved

INFO: GMS1016: Analyzing new membership snapshot received as part of event: MASTER_CHANGE_EVENT for member: kerio of group: openfire

Apr 26, 2012 5:08:11 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl addGroupLeadershipNotificationSignal

INFO: GMS1093: adding GroupLeadershipNotification signal leadermember: kerio of group: openfire

Apr 26, 2012 5:08:12 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:13 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:13 PM com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl reportJoinedAndReadyState

INFO: GMS1099: GMS:Reporting Joined and Ready state to group: openfire

Apr 26, 2012 5:08:16 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:18 PM com.sun.enterprise.mgmt.MasterNode appointMasterNode

INFO: GMS1058: Assuming Master Node designation member: kerio for group: openfire

Apr 26, 2012 5:08:18 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl getMemberTokens

INFO: GMS1092: GMS View Change Received for group: openfire : Members in view for MASTER_CHANGE_EVENT(before change analysis) are :

1: MemberId: kerio, MemberType: CORE, Address: 192.168.0.55:9173:229.9.1.1:2299:openfire:kerio

Apr 26, 2012 5:08:18 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl newViewObserved

INFO: GMS1016: Analyzing new membership snapshot received as part of event: MASTER_CHANGE_EVENT for member: kerio of group: openfire

Apr 26, 2012 5:08:18 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl addGroupLeadershipNotificationSignal

INFO: GMS1093: adding GroupLeadershipNotification signal leadermember: kerio of group: openfire

Apr 26, 2012 5:08:18 PM com.sun.enterprise.mgmt.MasterNode announceMaster

INFO: GMS1057: Announcing Master Node designation for member: kerio of group: openfire. Local view contains 1 entries

Apr 26, 2012 5:08:19 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:20 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:21 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:21 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl getMemberTokens

INFO: GMS1092: GMS View Change Received for group: openfire : Members in view for JOINED_AND_READY_EVENT(before change analysis) are :

1: MemberId: kerio, MemberType: CORE, Address: 192.168.0.55:9173:229.9.1.1:2299:openfire:kerio

Apr 26, 2012 5:08:21 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl newViewObserved

INFO: GMS1016: Analyzing new membership snapshot received as part of event: JOINED_AND_READY_EVENT for member: kerio of group: openfire

Apr 26, 2012 5:08:21 PM com.sun.enterprise.ee.cms.impl.base.ViewWindowImpl addJoinedAndReadyNotificationSignal

INFO: GMS1025: Adding Joined And Ready member: kerio group: openfire StartupState: INSTANCE_STARTUP

Apr 26, 2012 5:08:22 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:24 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:28 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:31 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:35 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:40 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:44 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

SEVERE: Connection refused: no further information

Apr 26, 2012 5:08:47 PM com.sun.enterprise.mgmt.transport.grizzly.GrizzlyTCPConnectorWrapper$CloseContr olCallbackHandler onConnect

Pls can any one help us on the same