The upgrading procedure varies depending on whether you are going to a newer version:

  • From another major branch: for example, from 1.7r2 to 1.8r2

  • On the same branch: for example, from 1.6r1 to 1.6r2

Install HAProxy Enterprise 1.9r1

  1. Create a new list repository source file in /etc/yum.repos.d/.

    Note

    The extension of the file must be repo (i.e. repo.list)

  2. Add the HAProxy Enterprise load balancer repository, as follows:

    1. In the file /etc/yum.repos.d/hapee.repo, add this content:

      [hapee-base]
      name=hapee-base
      enabled=1
      baseurl=https://www.haproxy.com/download/hapee/key/[YOURKEYHERE]-common/1.9r1/rhel-7/$basearch/bin/
      gpgcheck=1
    2. Replace the tag [YOURKEYHERE] with the key you received from HAProxy.

  3. Add the HAProxy Enterprise components repository, as follows:

    1. In the file /etc/yum.repos.d/hapee.repo, add this content:

      [hapee-plus]
      name=hapee-plus
      enabled=1
      baseurl=https://www.haproxy.com/download/hapee/key/[YOURKEYHERE]-plus/1.9r1/rhel-7/$basearch/bin/
      gpgcheck=1
    2. Replace the tag [YOURKEYHERE] with the key you received from HAProxy.

  4. Add the HAProxy Enterprise 'extras' repository, as follows:

    Note

    The HAProxy Enterprise 'extras' repository includes components that are independent of HAProxy Enterprise versions.

    1. In the file /etc/apt/sources.list.d/hapee.repo, add this content:

      [hapee-plus-extras]
      name=hapee-plus-extras
      enabled=1
      baseurl=https://www.haproxy.com/download/hapee/key/[YOURKEYHERE]-plus/extras/rhel-7/$basearch/bin/
      gpgcheck=1
    2. Replace the tag [YOURKEYHERE] with the key you received from HAProxy.

  5. Import your HAProxy Enterprise public key from HAProxy Technologies:

    rpm --import https://www.haproxy.com/download/hapee/key/[YOURKEYHERE]-common/HAPEE-key-1.9r1.asc
  6. Update the repository cache by running yum makecache

  7. Install the load balancer by running yum install -y hapee-1.9r1-lb

  8. Stop the old version of HAProxy Enterprise.

  9. Start HAProxy Enterprise by running service hapee-1.9r1-lb start

  10. Remove the old packages and install the new ones:

    yum swap -- remove "hapee-*" -- install "hapee-1.9r1-*"
  11. Restart HAProxy Enterprise services using init scripts, or systemd.

    Warning

    You must run this procedure on the slave load-balancer.

Test HAProxy Enterprise

After the upgrade, test HAProxy Enterprise to make sure it runs correctly:

  1. Disable the old HAProxy Enterprise branch from starting with the system, as follows:

    disable hapee-<previousversion>-lb
  2. Ensure that the new HAProxy Enterprise branch starts with the system, as follows:

    systemctl enable hapee-1.9r1-lb
  3. Stop the old HAProxy Enterprise daemon and start the new daemon:

    service hapee-<previousversion>-lb stop
    service hapee-1.9r1-lb start
  4. Run tail -f /var/log/syslog (or distribution equivalent) to check for warnings or errors.

  5. Run wget localhost to 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.

  6. Put HAProxy Enterprise back into the cluster.

  7. After the new HAProxy Enterprise branch has been running for a while, you can uninstall the old HAProxy Enterprise branch. If there are problems, you can stop the new version and revert to the old version.

Upgrade HAProxy Enterprise

  1. Fail out the node by lowering its priority (if using VRRP) or retracting its advertisement (if using BGP/OSPF).

  2. Install HAProxy Enterprise 1.9r1.

  3. Copy /etc/hapee-[previousversion]/hapee-lb.cfg over to /etc/hapee-1.9r1/hapee-lb.cfg and any associated files (maps/certificates/etc)

  4. Test HAProxy Enterprise to stop the old version and start the new one.

  5. Undo the change made in step 1 and proceed to the next node if everything continues smoothly. (If anything goes wrong, you can stop hapee-1.9r1-lb and restart hapee-<previousversion>-lb again.)

  6. Remove the repository URLs of the previous version and uninstall the old packages, after you are certain that you do not need to revert.

Upgrade HAProxy Enterprise within the same branch

Before you upgrade HAProxy Enterprise to a newer version, check that the following conditions apply:

  • The directory names do not change

  • The configuration files are located in the same place

  • The init scripts keep the same names

  • Each version in a branch is mutually exclusive, which means that another HAProxy Enterprise version and HAProxy Enterprise 1.9r1 cannot be installed together on the same server

  • HAProxy Enterprise repositories, GPG key, and customer subscription key remain the same

  1. Remove the old packages and install the new ones:

    yum swap -- remove "hapee-*" -- install "hapee-1.9r1-*"
  2. Restart HAProxy Enterprise services using init scripts or systemd.

  3. Test HAProxy Enterprise to make sure that it runs correctly.

Warning

You must run this procedure on the slave load-balancer.