Upgrade HAProxy Enterprise
To upgrade to HAProxy Enterprise 2.1r1 from a previous version you will need to install HAProxy Enterprise 2.1r1 and any additional modules you were using before you can switch to it and uninstall the previous version.
Supported Operating Systems
HAProxy Enterprise can be upgraded to version 2.1r1 on the following Operating Systems.
Upgrade to HAProxy Enterprise 2.1r1
The following upgrade procedure installs a new major version of HAProxy Enterprise.
Take the server that you want to upgrade out of the cluster.
Install HAProxy Enterprise 2.1r1 by running the following command and replacing <HAProxy Enterprise Key> with the key you received when you registered:
$ curl -s https://cdn.haproxy.com/static/install_haproxy_enterprise.sh | sudo bash /dev/stdin 2.1r1 <HAProxy Enterprise key>
Update additional modules: you may be running additional modules with HAProxy Enterprise, which you must also reinstall when you upgrade to a new release. Install a package using its name, for example:
$ # On Debian/Ubuntu $ sudo apt-get install hapee-2.1r1-lb-update $ # On CentOs/RedHat/Oracle $ sudo yum install hapee-2.1r1-lb-udpate $ # On SUSE $ sudo zypper install hapee-2.1r1-lb-update
/etc/hapee-2.1/hapee-lb.cfgand any associated files (maps/certificates/etc).
Disable the old HAProxy Enterprise version from starting with the system, as follows:
$ sudo systemctl disable hapee-<previousversion>-lb
Ensure that the new HAProxy Enterprise version starts with the system, as follows:
$ sudo systemctl enable hapee-2.1-lb
Stop the old HAProxy Enterprise daemon and start the new daemon:
$ sudo systemctl hapee-<previousversion>-lb stop $ sudo systemctl hapee-2.1-lb start
On older systems that do not have
$ sudo service hapee-2.1-lb start
tail -f /var/log/syslog(or distribution equivalent) to check for warnings or errors.
wget localhostto ensure that HAProxy is responding. Adjust address/port as needed, and use a local address that is currently active on the box and not a VRRP IP.
Put the upgraded server back into the cluster.
Repeat this procedure on secondary servers.
For the additional modules, see their corresponding documentations for instructions on how to enable and configure each package.
After the new HAProxy Enterprise version has been running for a while, you can uninstall the old HAProxy Enterprise version. To uninstall a package:
$ # On Debian or Ubuntu $ sudo apt purge <package_name> $ # On CentOs/RedHat/Oracle $ sudo yum remove <package_name> $ # On SUSE $ sudo zypper remove <package_name>
Updating HAProxy Enterprise
The update procedure installs the latest build for your current HAProxy Enterprise version in order to benefit from the latest bug fixes.
$ # On Debian/Ubuntu $ apt update $ apt upgrade $ # On CentOs/RedHat/Oracle $ yum update $ # On SUSE $ zypper update