Confluence 5.6 has reached end of life
Check out the [latest version] of the documentation
This guide covers the process of migrating from Confluence Server to Confluence Data Center, which is a clustered solution.
If you are installing Confluence for the first time (you do not have any existing Confluence data to migrate), see Installing Confluence Data Center.
To run Confluence in a cluster you must:
On this page:
If you need a Confluence Data Center evaluation license please contact us.
In this guide we'll use the following terminology:
At the end of the installation process you will have an installation directory and local home directory on each node and a single shared home directory (for example in a two node cluster you would have a total of 5 directories).
You cannot upgrade your version of Confluence and switch Confluence Data Center at the same time. For example if you have Confluence 5.4 you'll need to upgrade to Confluence Server 5.6 before you migrate to Confluence Data Center 5.6.
If you are upgrading from an older version of Confluence as part of your migration to Confluence Data Center you will need to follow the normal procedure for backing up and upgrading Confluence to the same version first. See upgrading Confluence for information on upgrading and choosing the best upgrade path.
Once you have ensured the upgrade was successful and your instance is working correctly, shut down Confluence.
<confluence home>/shared-home to the new shared home directory you just created.<confluence home>/shared-home directory once you've moved its contents.confluence\WEB-INF\classes\confluence-init.properties) should still be pointing to your existing (local) home directory.start-confluence.sh or start-confluence.bat)Your first node is now up and running.
To copy Confluence to the second node: Copying the local home directory ensures the Confluence search index, the database and cluster configuration, and any other settings are copied to node 2. It's best to start Confluence one server at a time. The Cluster Administration page ( > General Configuration > Cluster Configuration) includes information about the active cluster. When the cluster is running properly, this page displays: Screenshot: Cluster Administration page A simple process to ensure your cluster is working correctly is: If Confluence detects more than one instance accessing the database but not in a working cluster, it will shut itself down in a cluster panic. This can be fixed by troubleshooting the network connectivity of the cluster. Install and configure your load balancer. You can use the load balancer of your choice, but it needs to support ‘cookie based session affinity’. You can verify that your load balancer is sending requests correctly to your existing Confluence server by simply accessing Confluence through the load balancer and creating a page then checking that this page can be viewed/edited by another machine through the load balancer. If you have problems with the above procedure, please see our Cluster Troubleshooting guide. If you are testing Confluence Data Center by running the cluster on a single machine, please refer to our developer instructions on Starting a Confluence cluster on a single machine.4. Copy Confluence to second node
If the file path of the local home directory is not the same on nodes 1 and 2 you'll need to update the <installation directory>/confluence/WEB-INF/classes/confluence-init.properties file on node 2 to point to the correct location.5. Start Confluence on the first node, wait, then start Confluence on second node
6. Test cluster connectivity
7. Configure load balancer
Troubleshooting
These instructions cover how to move from Data Center (clustered) to Server (non-clustered). In these instructions we'll assume that you will use one of your existing cluster nodes as your new non-clustered installation.
You will need a Confluence Server license to switch back to Server.
You must stop all the nodes in the cluster before proceeding.
We recommend configuring your load balancer to redirect traffic away from Confluence.
/shared-home in the <local home> directory on one node (if you removed this directory when installing Data Center).config directory from your <shared home> directory to the <local home>/shared-home directory.<shared home> directory to the root of your <local home> directory. Your cluster's shared home directory should now be empty.
confluence\WEB-INF\classes\confluence-init.properties) should point to your local home directory.start-confluence.sh or start-confluence.bat)To confirm you are now running the non-clustered edition, go to > General Configuration. The Cluster Configuration page should not appear.