You can create a replication cluster from any of the DualShield Servers, but you need to make sure that all instances are accessible to each other, and all Instances have agent registration enabled. (See previous chapter on Setting up Replication for the first time )


At this stage, it is important to understand the role of a Primary Server.   The Primary server is the main server responsible for the registration of nodes into the cluster. You can only have one primary server in the replication cluster. 






Create a new cluster


On the Admin Console, select Replication>Cluster Management:







Click Create on the top right:









Enter a friendly Cluster Name and click on Next:





Add the first node


On the Add Nodes to the Cluster screen, you will notice that the IP address of the node you are working on is automatically populated.  Simply click on Add Node to add it.








The first node will be added to Nodes List:



 



Add the second node


Add the IP address of the second node.







You can also choose between an Active or Passive role via the drop-down.  We recommend keeping it as Active, but if you have a DR node in a separate data Centre, you may want to set it to Passive.







Click on Add Node to add the second node to the cluster:





Add more nodes

You can add more active/passive nodes by repeating the steps above.  You can also select which Active node you want to use as the Primary by checking the Primary checkbox for that node. (You can only have one primary node)

Validate & Finish


Once you have added the number of nodes you require, click on Validate & Finish at the bottom of the window:









The validation results will appear on the screen.  Information regarding the database cloning process will be displayed.  Please tick the 'I understand' box, then click the Create Cluster button:







At this stage, you will see the progress bar moving along...

A replication cluster will be created as the primary node is added.

The data from the primary node will be cloned.








Once the Primary node has been fully set up, the other nodes will be added to the cluster.









Once the replication cluster has been fully created, a clone of the data from the primary node will be copied across to the other servers on the cluster.  This includes all license keys, certificates, configuration, and token assignments. This process is known as 'onboarding'.








As the 'Cluster Created' message reads, you can continue to monitor the onboarding process by going to Replication>Replication Tasks on the primary server.







You can view how far along the onboarding process is.


During this time, do not attempt to log onto the console of the other instances of DualShield.  They will not be ready, and the data from the Primary server will not be displayed.  However this is a very quick process and takes a few minutes to complete.  In the mean time you can continue to use the DualShield and access the console on the proimary server.








The progress bar has reached 100% to show that all the data and configuration have been successfully cloned to the other nodes, however, 'Onboarding' and 'In Progress'  still display.  You may think this is an error; however, it means the onboarding task has initiated a restart of the other nodes on the cluster.  This is a necessary step.











You can select Refresh or enable Auto Refresh buttons on the top right-hand side to display the updated status








Keep refreshing until the onboarding status shows Completed









Once completed, you can monitor the cluster health by going to Replication> Cluster Health








Here, you will see a depiction of the health of your replication cluster. You will see all your nodes in the cluster.   In this example, we only have two nodes.  Green is good, as it means replication is healthy and working correctly.  If the display turns red, it indicates a problem.

You can use the Refresh and Auto-Refresh buttons at the top of the screen to update the graphics.