4.1.x to 4.2.x Migration Guide
This is a minor HiveMQ upgrade. HiveMQ 4.2 is a drop in replacement for HiveMQ 4.1.x
|No manual steps are required for upgrading from HiveMQ 4.1 to HiveMQ 4.2.
Create a backup of the entire HiveMQ installation folder
Install HiveMQ 4.2 as described in the HiveMQ Installation Guide
Migrate the configuration-file contents of your old HiveMQ installation
To migrate the persistent data, copy all contents in the
datafolder from your backup to the new HiveMQ 4.2 data folder. On first start, HiveMQ 4.2 will migrate the persistent data from your previous installation into its new persistent storage.
HiveMQ 4.2 introduces additional options to the configuration file.
The control center configuration now allows you to disable the default user
If you choose not to set this configuration, the behaviour is similar to HiveMQ 4.1.
The new control center audit log feature introduced in 4.2 can be configured with the value
in the security configuration.
You can upgrade from HiveMQ 4.1.x to HiveMQ 4.2 without making changes to your config file.
HiveMQ 4.2 automatically migrates all data in your data folder from previous versions to updated file storage formats.
To allow HiveMQ to migrate the persistent data from previous versions you have to copy the contents of your data folder from the previous installation to the data folder of the new installation.
cp -r /opt/hivemq-4.1.1/data/* /opt/hivemq-4.2.0/data/
On the first start up HiveMQ 4.2 will automatically migrate the persistent data from your previous installation into its new persistent storage.
Rolling upgrades are supported and it’s possible to run HiveMQ version 4.1 and version 4.2 simultaneously in the same cluster. When all nodes are upgraded to the new version, all new cluster features are enabled by default by the HiveMQ cluster. No manual intervention is needed.
Please follow the instructions in our user guide to ensure a seamless and successful rolling upgrade.
Please see the HiveMQ Clustering Documentation for more information.
To allow more network throughput from the broker to the clients, HiveMQ 4.2 introduces support for a larger inflight window for MQTT PUBLISH messages.
The inflight window is the amount of MQTT PUBLISH messages that are sent to a client simultaneously without the client having sent back an PUBACK or PUBCOMP.
HiveMQ 4.1 has a default inflight window of maximum 4 messages, with HiveMQ 4.2 the inflight window is now 50 by default. HiveMQ 4.1 only allowed 1 inflight message per topic, while HiveMQ 4.2 can send multiple messages per topic simultaneously. The messages are sent in order and the receive maximum of the client is respected. The inflight window for specific clients can be changed in extensions with the client settings.