The Cedalo high availability feature provides the ability to run a cluster of Mosquitto nodes with a single leader and multiple followers, so that broker availability can be ensured even if a single node becomes unavailable through fault or for an upgrade. This document describes the recommended cluster architecture and how to configure the cluster for first use, and in the future.
To understand more about the underlying architecture and configuration visit the Mosquitto documentation
Before creating a cluster it is necessary to connect your future cluster nodes to the Management Center. Make sure to be connected via Port 1885, to allow direct communication to the individual nodes, using a client with ACLs to read and write on the $CONTROL topic of the broker.
To navigate to the High Availability Cluster overview, select the "Cluster Management" menu entry from the left main menu.
To create a new high availability cluster, click on the button "New cluster".
On the following page you can enter the detail information about the cluster that you want to create.
Select a unique Node ID, enter the IP address of the broker with in its private network and select the preconfigured connection.
When you have entered all the necessary information, click on "Save" to the cluster configuration. The new cluster configuration will now appear in the overview list.
Select your created cluster to see its current In order to add a Mosquitto node to a cluster, select the cluster in the overview list. This will navigate you to the detail view of the cluster.
To add a new node, first switch into edit mode by clicking on the button "Edit".
Then, click on "Add node", which will open a select dialog that lists all available Mosquitto connections.
See here for a description on how to create new Mosquitto connections in the Management Center.
In the dialog, select the node you want to add to the cluster and confirm by clicking "Add node".
The node now appears as part of the cluster:
Remove nodes from a cluster
Navigate to the cluster detail page (e.g., by selecting it in the overview list) and click the "Edit" button. Then in order to remove a node click on the "Remove" button next to that node.
Delete a Cluster
Delete the Cluster by clicking the "bin" icon in the overview menu.