Upgrade from 4.3 to 4.4
- Optional: remove the node from load-balancer
- Stop the node, (e.g. ,
systemctl stop emqx
) - Backup ‘data’ and ‘etc’ directories. (more details below)
- Uninstall v4.3
- Install v4.4, and restore the backup directories for ‘data’ and ‘etc’
- Optional: add the node back to the load-balancer
- Where the environment variable
EMQX_NODE__DATA_DIR
points to - Where the config key points to in
emqx.conf
/opt/emqx/data
when running in docker (typically a mounted volume)<install-path>/data
when installed from zip package extraction/var/lib/emqx/data
when installed from RPM or DEB packages
- Taking RPM installation for example
## Inspect the current installation
rpm -e emqx-4.3.x-x.x86_64
- Taking RPM installation for example
- Restore the data and config from backup
cp -r ~/emqx-backup/etc/ /etc/emqx/
cp -r ~/emqx-backup/data/ /var/lib/emqx/
- Taking systemctl for example
- Inspect the logs to make sure everything is working as expected
- Check EMQX dashboard to see if the node is running as expected.