Wiki source code of Clustering

Version 3.3 by Silvia Macovei on 2010/03/04

Show last authors
1 XWiki provides an easy way to setup clustered instances of XWiki based on network events distribution.
2
3 = Features =
4
5 * events synchronization between XWiki instances
6 * multiple clustering channels
7 * possibility to start stop clustering channel at runtime
8
9 = Setup =
10
11 == Enable event distribution ==
12
13 To enable event distribution in an XWiki instance go to ##xwiki.properties## file and set the property ##observation.remote.enabled## to ##true##.
14
15 == Setup communication channels ==
16
17 Then you need to create a JGroups configuration file for each different cluster group you want to setup.
18
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.
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
23 == Start communication channels ==
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
29 == Choose network adaptor implementation to use ==
30
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.
32
33 = More =
34
35 See the [[Remote Observation Module>>code:Modules.RemoteObservationModule]] for more details of the event distribution features and extension capabilities.
36
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