HAProxy Enterprise Documentation 1.6r2

Linux

HAProxy Enterprise 1.6r2 is distributed through the Operating System package manager for the following Linux distributions:

Install HAProxy Enterprise 1.6r2 on CentOS
CentOS
7 6
Install HAProxy Enterprise 1.6r2 on Debian
Debian
8
Install HAProxy Enterprise 1.6r2 on RedHat
RedHat
7 6
Install HAProxy Enterprise 1.6r2 on Ubuntu
Ubuntu
16.04 14.04
Install HAProxy Enterprise 1.6r2 on Oracle
Oracle
7 6

Install HAProxy Enterprise

The following procedure adds package repositories and installs HAProxy Enterprise 1.6r2. After the installation, you can install additional components to get the most out of your load balancer.

  1. Run the following command on the server where you would like to install HAProxy Enterprise, replacing <HAProxy Enterprise Key> with the key you were given when you registered.

    $ curl -s https://www.haproxy.com/static/install_haproxy_enterprise.sh | \
       sudo bash /dev/stdin 1.6r2 <HAProxy Enterprise key>

    To verify the integrity of the script before installing, download it and its hash to a local directory:

    Then run these commands to verify the checksum of the script:

    $ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0xCA2DF14657C5A207
    $ gpg --verify ./install_haproxy_enterprise.sh.sha512.asc
  2. Start HAProxy Enterprise:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb

    On systems that do not have systemctl, use:

    $ sudo service hapee-1.6-lb start

Install additional modules

HAProxy Enterprise comes with additional native and third-party modules like the Real-time Dashboard. Packages are separated into three repositories, which you already added during the installation.

Package Repository

Description

Common

Contains the primary components for HAProxy Enterprise.

Plus

Contains add-on modules that extend HAProxy Enterprise.

See all available packages.

Search for additional modules

The list of additional modules is also available by running the following commands:

$ # On Debian/Ubuntu
$ apt-cache search hapee-1.6r2


$ # On CentOs/RedHat
$ yum search hapee-1.6r2

Install a module

$ # On Debian/Ubuntu
$ sudo apt-get install hapee-1.6r2-lb-update
$ # On CentOS/RedHat/Oracle
$ sudo yum install hapee-1.6r2-lb-update

See other parts of this documentation for instructions on how to enable and configure each package.

Locate installed directories

Binaries and documentation

/opt/hapee-1.6/
  |-- bin
  |-- doc
  |-- modules
  |-- sbin
  |-- version

Configuration files

/etc/hapee-1.6/
  |-- hapee-lb.cfg

Init scripts

/etc/init.d/
  |-- hapee-1.6-lb

Configure HAProxy Enterprise

After you complete the installation, you can configure HAProxy Enterprise using the instructions in the Configuration section from the left-hand menu bar.

Install HAProxy Enterprise manually

The following section gives detailed information on how to install HAProxy Enterprise 1.6r2 its associated components manually on all supported Operating Systems.

Use this procedure if our installation script is not suited for your infrastructure or if you want to customize your installation.

Instructions for CentOS 7

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for CentOS 6

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for Debian 8

  1. Create a new file /etc/apt/sources.list.d/hapee.list if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/debian-jessie/amd64/ jessie main
    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/debian-jessie/amd64/ jessie main
  2. Install required dependencies:

    $ sudo apt-get install --yes apt-transport-https dirmngr gnupg-agent
  3. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ wget -O - https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc | sudo apt-key add -

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  4. Update the repository cache:

    $ sudo apt-get update
  5. To install the load balancer, run:

    $ sudo apt-get install hapee-1.6r2-lb

    Output of a successful installation:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
           hapee-1.6r2-base openssl
    Suggested packages:
           ca-certificates
    The following NEW packages will be installed:
           hapee-1.6r2-base hapee-1.6r2-lb openssl
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    [...]
  6. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  7. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for RedHat 7

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for RedHat 6

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for Ubuntu 16.04

  1. Create a new file /etc/apt/sources.list.d/hapee.list if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/ubuntu-16.04/amd64/ xenial main
    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/ubuntu-16.04/amd64/ xenial main
  2. Install required dependencies:

    $ sudo apt-get install --yes apt-transport-https dirmngr gnupg-agent
  3. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ wget -O - https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc | sudo apt-key add -

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  4. Update the repository cache:

    $ sudo apt-get update
  5. To install the load balancer, run:

    $ sudo apt-get install hapee-1.6r2-lb

    Output of a successful installation:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
           hapee-1.6r2-base openssl
    Suggested packages:
           ca-certificates
    The following NEW packages will be installed:
           hapee-1.6r2-base hapee-1.6r2-lb openssl
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    [...]
  6. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  7. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for Ubuntu 14.04

  1. Create a new file /etc/apt/sources.list.d/hapee.list if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/ubuntu-14.04/amd64/ trusty main
    deb [arch=amd64] https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/ubuntu-14.04/amd64/ trusty main
  2. Install required dependencies:

    $ sudo apt-get install --yes apt-transport-https dirmngr gnupg-agent
  3. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ wget -O - https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc | sudo apt-key add -

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  4. Update the repository cache:

    $ sudo apt-get update
  5. To install the load balancer, run:

    $ sudo apt-get install hapee-1.6r2-lb

    Output of a successful installation:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
           hapee-1.6r2-base openssl
    Suggested packages:
           ca-certificates
    The following NEW packages will be installed:
           hapee-1.6r2-base hapee-1.6r2-lb openssl
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    [...]
  6. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  7. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for Oracle 7

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-7/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Instructions for Oracle 6

  1. Create a new file /etc/yum.repos.d/hapee.repo if it does not exist and add the contents below. Replace <HAProxy Enterprise Key> with the key you were given when you registered.

    [hapee-base]
    name=hapee-base
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-common/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
    
    [hapee-plus]
    name=hapee-plus
    enabled=1
    baseurl=https://www.haproxy.com/download/hapee/key/<HAProxy Enterprise Key>-plus/1.6r2/rhel-6/$basearch/bin/
    gpgcheck=1
  2. The packages that HAProxy Technologies provides are signed. To install them, you first must import the public key.

    Run the following commands:

    $ rpm --import https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    Tip

    We encourage you to validate any fingerprints by downloading them first locally.

    $ wget https://pks.haproxy.com/linux/enterprise/HAPEE-key-1.6r2.asc

    You can compare it with the output of this command:

    $ gpg --keyid-format long --with-fingerprint HAPEE-key-1.6r2.asc
    Long PGP fingerprint (HAProxy Enterprise 1.6r2)
    0DEF 0A71 63AD D67D C219 212A A1C3 8036 331B 5228
  3. Update the repository cache:

    $ yum makecache
  4. To install the load balancer, run:

    $ yum install -y hapee-1.6r2-lb

    Output of a successful installation:

    [...]
    Running Transaction
    Installing : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Note: you should edit /etc/sysctl.conf for system tuning.
    Installing : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Verifying  : hapee-1.6r2-base-1.6r2.0-16.0.noarch      1/2
    Verifying  : hapee-1.6r2-lb-1.6r2.0-67.20.x86_64       2/2
    Installed:
    hapee-1.6r2-lb.x86_64 0:1.6r2.0-67.20
    Dependency Installed:
    hapee-1.6r2-base.noarch 0:1.6r2.0-16.0
    Complete!
  5. To start HAProxy Enterprise, run:

    $ sudo systemctl enable hapee-1.6-lb
    $ sudo systemctl start hapee-1.6-lb
  6. If you have installed Rsyslog, restart it now to begin collecting HAProxy Enterprise logs:

    $ sudo systemctl restart rsyslog

Next up

Install Additional Packages