XWiki cluster consists of two XWiki instances located in different servers and working with the same database. NGINX load balancer handles and shares all the users' requests to different server instances according to their load and availability.
Distinctive XWiki feature is increasing performance through using great amount of different caches. Sometimes this can cause such problems as showing old cached version of data, already modified on another xWiki instance. To exclude such inconvenience XWiki uses system of event distribution. It forms a local event and updates the caches with it, i.e. cache of each instance in xWiki cluster is updated every time something has been changed on any instance.
Follow the next step-by-step tutorial to find out how to configure XWiki cluster in the cloud.
Create an environment
- Log in to PaaS account.
- Click the Create environment button in the top left dashboard corner.
- In the wizard window pick up Tomcat 7 as an application server and switch on High-availability. After this NGINX load balancer will be activated automatically. Choose MySQL as a database you want to use. Set the cloudlet limits for all instances. Specify the name of your environment and click Create button. Wait just a minute and your highly available environment will be created.
xWiki deployment Deploy XWiki to the environment you’ve just created as it is described in the instruction on Manual XWiki installation (steps B - D).
Configuring XWiki cluster XWiki gives an opportunity to easily set up clusters with network events distribution technology. Just follow the steps below.
- Click the Config button for Tomcat server in your environment.
* Finally, restart your **Tomcat cluster** by clicking **Restart node** button next to it .
- Start XWiki
- Open your application in a browser window and install XWiki. Now you have a highly available, scalable and reliable clustered environment in the Cloud with xWiki hosted. Enjoy the perfect fail-over capabilities!