HAProxy Enterprise Documentation 2.3r1

Amazon Web Services

Launch HAProxy Enterprise directly from the AWS Marketplace.

Launch the HAProxy Enterprise AMI

  1. From the AWS Marketplace, search for HAProxy Enterprise and choose an HAProxy Enterprise AMI from the list. Options include an Ubuntu Server edition and a Red Hat Enterprise Linux edition.

    https://cdn.haproxy.com/documentation/hapee/2-3r1/assets/aws-ami-ubuntu-9747cae3539013583fdba215fd4e0077b7a005ac79b308cfb021e0412ff6c99a.png https://cdn.haproxy.com/documentation/hapee/2-3r1/assets/aws-ami-rhel-62e5667826df789f01ecd761e2afd2ea85f584bfcd1b575edf88c3bc59cd041f.png
  2. Click Continue to Subscribe to start a subscription to the HAProxy Enterprise software.

  3. Click Continue to Configuration and then Continue to Launch.

  4. Select the instance size.

  5. Create or import an RSA key pair, then launch the instance.

Connect to the HAProxy Enterprise instance

During installation, you had the option to configure an SSH keypair that you can use to connect to the virtual machine.

  1. If necessary, change the permissions of your private key:

    For example:

    $ chmod 600 my-private-key.pem
  2. Copy the public IPv4 address of the instance from the AWS instances console.

  3. Connect to the HAProxy Enterprise instance through its public IP:

    For example:

    $ ssh -i my-private-key.pem ubuntu@
    $ ssh -i my-private-key.pem ec2-user@

Manage the HAProxy Enterprise service

The HAProxy Enterprise service runs at startup. You can manage the process with systemctl.

For example, use systemctl status to check that the service is running:

$ systemctl status hapee-2.3-lb

hapee-2.3-lb.service - HAPEE Load Balancer
   Loaded: loaded (/usr/lib/systemd/system/hapee-2.3-lb.service; enabled; vendor preset: disabled)
   Drop-In: /etc/systemd/system/hapee-2.3-lb.service.d
   Active: active (running) since Wed 2020-12-09 14:07:46 UTC; 14min ago
   Main PID: 918 (hapee-lb)
   CGroup: /system.slice/hapee-2.3-lb.service
            ├─918 /opt/hapee-2.3/sbin/hapee-lb -Ws -f /etc/hapee-2.3/hapee-lb.cfg -p /run/hapee-2.3-lb.pid -m 5212 -f /etc/hapee-2.3/dashboard-module.cfg
            └─920 /opt/hapee-2.3/sbin/hapee-lb -Ws -f /etc/hapee-2.3/hapee-lb.cfg -p /run/hapee-2.3-lb.pid -m 5212 -f /etc/hapee-2.3/dashboard-module.cfg

Access the Real-time Dashboard

  1. Display the HAProxy Enterprise Real-time Dashboard credentials, which are stored in the file /README.txt.

    For example:

    $ sudo cat /README.txt
    username: dashboard
    password: 091l/Bw2
  2. Connect to the dashboard through either HTTP (port 9022) or HTTPS (port 9023). The URLs are http://<Public IPv4 address>:9022/ and https://<Public IPv4 address>:9023/.


Next up