Installing Confluence Data Center
This guide provides step-by-step instructions for installing Confluence Data Center, which is a clustered solution, for the first time (with no existing data).
If you already have a Confluence Server instance, see Moving to Confluence Data Center.
1. Clustering requirements and terminology
To run Confluence in a cluster you must:
- Have a clustered license
- Use a supported external database, operating system and Java version
- Use a load balancer with session affinity in front of the cluster
- Have a shared directory accessible to all cluster nodes in the same path (this will be your shared home directory)
- Use OAuth authentication if you have application links to other Atlassian products (such as JIRA)
If you need a Data Center evaluation license please contact us.
In this guide we'll use the following terminology:
- Installation directory – The directory where you installed Confluence on a node.
- Local home directory – The home or data directory on each node (in non-clustered Confluence this is simply known as the home directory).
- Shared home directory – The directory you created that is accessible to all nodes in the cluster via the same path.
At the end of the installation process, you'll have an installation and local home directory on each node, and a single shared home directory (a total of 5 directories in a two node cluster).
2. Install Confluence on the first node
- Install Confluence on node 1
See Installing Confluence on Windows from Zip File or Installing Confluence on Linux from Archive File for more information. - Start Confluence on Node 1
- Complete the setup wizard by entering:
- Your cluster license
- A name for your cluster
- The path to the shared home directory you created earlier
- A multicast address (automatically generated or enter your own) or the IP addresses of each cluster node
- The network interface Confluence will use to communicate between nodes
3. Load test the single node
Most Confluence installations don't need to be clustered. You might want to test your single node installation with the number of users and load you expect before going ahead with the additional complexity of clustering.
4. Copy Confluence to second node
To copy Confluence to the second node:
- Shut down Confluence on node 1
- Shut down your application server on node 2, or stop it automatically loading web applications
- Copy the installation directory from node 1 to node 2
- Copy the local home directory from node 1 to node 2
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.
Copying the local home directory ensures the Confluence search index, the database and cluster configuration, and any other settings are copied to node 2.
5. Start Confluence on the first node, wait, then start Confluence on second node
You must only start Confluence one server at a time.
- Start Confluence on node 1
- Wait for Confluence to become available on node 1
- Start Confluence on node 2
- Wait for Confluence to become available on node 2.
6. Test cluster connectivity
The Cluster monitoring console ( > General Configuration > Clustering) includes information about the active cluster.
When the cluster is running properly, this page displays the details of each node, including system usage and uptime. Use the menu to see more information about each node in the cluster.
Screenshot: Cluster monitoring console
A simple process to ensure your cluster is working correctly is:
- Create a new document on node 1
- Ensure the new document is visible by accessing it directly on node 2
- Search for the new document on node 1, and ensure it appears
- Search for the new document on node 2, and ensure it appears
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.
7. Configure load balancer
Install and configure your load balancer. You can use the load balancer of your choice, but it needs to support ‘session affinity’.
You can verify that your load balancer is sending requests correctly to your existing Confluence server by 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.
Security
Ensure that only permitted cluster nodes are allowed to connect to a Confluence Data Center instance's Hazelcast port, which by default is port 5801, through the use of a firewall and or network segregation.
Troubleshooting
If you have problems with the above procedure, please see our Cluster Troubleshooting guide.
If you're 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.
Upgrading a cluster
It's important that upgrades follow the procedure for Upgrading Confluence Data Center.