Upgrade
Upgrade HAProxy Enterprise on BSD
You can upgrade HAProxy Enterprise to version 3.0r1 on the following operating systems:
HAProxy Enterprise version | Release date | End of life | Supported OS |
---|---|---|---|
3.0r1 | Oct 2024 | Feb 2029 |
|
Upgrade to HAProxy Enterprise 3.0r1 Jump to heading
The following upgrade procedure installs a new major version of HAProxy Enterprise.
-
If the HAProxy Enterprise server is part of a high-availability cluster, take it out of the cluster:
- If using Active/Active clustering, update your network to stop sending traffic to the load balancer. For example, if using DNS roundrobin, remove the load balancer from DNS.
- If using Active/Standby clustering, then on the active load balancer edit
/etc/hapee-extras/hapee-vrrp.cfg
. Lower thepriority
value to less than the standby load balancer’spriority
. This will put the active load balancer into the standby state and simultaneously activate the standby load balancer. Then restart thehapee-extras-vrrp
service.
-
Install HAProxy Enterprise 3.0r1 by running the following command and replacing
<HAProxy Enterprise Key>
with your HAProxy Enterprise license key:nixwget https://www.haproxy.com/static/install_haproxy_enterprise.shsudo bash ./install_haproxy_enterprise.sh \--version 3.0r1 \--key <HAProxy Enterprise key>nixwget https://www.haproxy.com/static/install_haproxy_enterprise.shsudo bash ./install_haproxy_enterprise.sh \--version 3.0r1 \--key <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, upgrade the
lb-update
package:nixsudo pkg install hapee-3.0r1-lb-updatenixsudo pkg install hapee-3.0r1-lb-update -
Copy
/usr/local/etc/hapee-<PREVIOUS VERSION>/hapee-lb.cfg
over to/usr/local/etc/hapee-3.0/hapee-lb.cfg
and any associated files (maps, certificates, etc). -
Stop the old HAProxy Enterprise daemon and start the new daemon:
nixsudo service hapee_<PREVIOUS VERSION>_lb onestopsudo service hapee_30_lb onestartnixsudo service hapee_<PREVIOUS VERSION>_lb onestopsudo service hapee_30_lb onestart -
Run
tail -f /var/log/messages
(or distribution equivalent) to check for warnings or errors. -
Run
curl localhost
to ensure that HAProxy Enterprise 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.
Post-upgrade Jump to heading
After you upgrade, see the section on enterprise modules on how to enable and configure each one.
After the new HAProxy Enterprise version has been running for a while, you can uninstall the old HAProxy Enterprise version. To uninstall a package:
nix
sudo pkg delete hapee-<PREVIOUS VERSION>-lb
nix
sudo pkg delete hapee-<PREVIOUS VERSION>-lb
Update HAProxy Enterprise Jump to heading
The update procedure installs the latest build for your current HAProxy Enterprise version in order to benefit from the latest bug fixes.
nix
sudo pkg updatesudo pkg upgrade
nix
sudo pkg updatesudo pkg upgrade
Do you have any suggestions on how we can improve the content of this page?