This extension allows your HiveMQ cluster nodes to discover each other dynamically by regularly exchanging their information via etcd.
Category: Cluster Discovery
License: Apache 2.0
This HiveMQ extension allows your HiveMQ cluster nodes to discover each other dynamically by regularly exchanging their information via etcd.
HiveMQ instances are added at runtime as soon as they become available by placing their information, on how to connect to them, to the configured key. The extension will regularly check the configured etcd key for files from other HiveMQ nodes. Additionally every broker updates its own entry on a regular basis to prevent the entry from expiring.
Installing the extension for HiveMQ is very easy:
Download the extension from GitHub’s release page.
Copy the content of the zip file to the
extensions folder of your HiveMQ nodes.
etcdDiscovery.properties file for your needs or set environment variables
Change the discovery mechanism of HiveMQ to
The information each node writes into etcd consists of an ip-address and a port. The ip-address and port are taken from the
external-port which is configured in the cluster
transport (config.xml). If they are not set, the
bind-port will be used.
etcdDiscovery.properties can be reloaded during runtime.
etcdDiscovery.properties will always take precedent over environment variables.
|Key to store discovery entries at
|The region in which this S3 bucket resides
|etcd port to connect at
|Time in seconds after which an entry in etcd is considered expired
|Time in seconds after which an entry in etcd is refreshed (Must be smaller than file-expiration)
|Use TLS for connection to etcd
|Certificate authority to use for validating tls connection to etcd - if not set, system certificates will be used
We're always happy to answer any questions you may have during installation. The best place to get in contact is our community forum.