Skip to main content
Version: Management Center 2.4

High Availability ⭐

Introduction

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

Create Cluster

info

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.

image

To create a new high availability cluster, click on the button "New cluster".

image

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.

image

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.

Cluster details

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.

image

To add a new node, first switch into edit mode by clicking on the button "Edit".

image

Then, click on "Add node", which will open a select dialog that lists all available Mosquitto connections.

note

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".

image

The node now appears as part of the cluster:

image

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.

image

Delete a Cluster

Delete the Cluster by clicking the "bin" icon in the overview menu.