Amazon Web Services
Launch HAProxy Enterprise directly from the AWS Marketplace.
Launch the HAProxy Enterprise AMI
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.
Click Continue to Subscribe to start a subscription to the HAProxy Enterprise software.
Click Continue to Configuration and then Continue to Launch.
Select the instance size.
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.
If necessary, change the permissions of your private key:
$ chmod 600 my-private-key.pem
Copy the public IPv4 address of the instance from the AWS instances console.
Connect to the HAProxy Enterprise instance through its public IP:
$ ssh -i my-private-key.pem email@example.com
$ ssh -i my-private-key.pem firstname.lastname@example.org
You can also connect to the HAProxy Enterprise instance through its private IP from a bastion host.
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 └─override.conf 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
Display the HAProxy Enterprise Real-time Dashboard credentials, which are stored in the file /README.txt.
$ sudo cat /README.txt username: dashboard password: 091l/Bw2
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/.
Connecting to http://<Public IPv4 address> displays the load balancer's statistics.
Next upAdditional Packages