Wiki source code of Clustering

Version 3.3 by Silvia Macovei on 2010/03/04

Hide last authors
Silvia Macovei 3.3 1 XWiki provides an easy way to setup clustered instances of XWiki based on network events distribution.
Thomas Mortagne 1.1 2
Silvia Macovei 3.3 3 = Features =
Thomas Mortagne 1.1 4
5 * events synchronization between XWiki instances
6 * multiple clustering channels
7 * possibility to start stop clustering channel at runtime
8
Silvia Macovei 3.3 9 = Setup =
Thomas Mortagne 1.1 10
Silvia Macovei 3.3 11 == Enable event distribution ==
Thomas Mortagne 2.1 12
Silvia Macovei 3.3 13 To enable event distribution in an XWiki instance go to ##xwiki.properties## file and set the property ##observation.remote.enabled## to ##true##.
Thomas Mortagne 2.1 14
Silvia Macovei 3.3 15 == Setup communication channels ==
Thomas Mortagne 2.1 16
17 Then you need to create a JGroups configuration file for each different cluster group you want to setup.
18
Silvia Macovei 3.3 19 For this go to the ##/WEB-INF/observation/remote/jgroups## folder and add one xml file by clustering group. Generally there is only one for a simple cluster.
Thomas Mortagne 2.1 20
21 You can look at http://www.jboss.org/community/wiki/JGroups for a good documentation on how to setup JGroups configuration files.
22
Silvia Macovei 3.3 23 == Start communication channels ==
Thomas Mortagne 2.1 24
25 The name of the xml file matches the identifier of the channel.
26
27 To indicate which channels to start when XWiki starts list the in the property ##observation.remote.channels## of the file ##xwiki.properties##.
28
Silvia Macovei 3.3 29 == Choose network adaptor implementation to use ==
Thomas Mortagne 2.1 30
Silvia Macovei 3.3 31 By default only jgroups implementation is provided, but it's possible to add more. See the [[Remote Observation Module>>code:Modules.RemoteObservationModule#HAddcustomnetworkadaptor]] for more details.
Thomas Mortagne 2.1 32
Silvia Macovei 3.3 33 = More =
Thomas Mortagne 2.1 34
Silvia Macovei 3.3 35 See the [[Remote Observation Module>>code:Modules.RemoteObservationModule]] for more details of the event distribution features and extension capabilities.
Thomas Mortagne 2.1 36
Silvia Macovei 3.3 37 Follow [[Test clustering tutorial>>AdminGuide.DistributedEventClusterSetup]] for a complete tutorial on how to setup a simple cluster between two instances of XWiki on the same server.

Get Connected