HAProxy Enterprise Documentation 1.8r2
Amazon Web Services
Launch HAProxy Enterprise directly from the AWS Marketplace as an Amazon Machine Image (AMI), which creates a virtual machine instance with HAProxy Enterprise installed.
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
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:
[ec2-user@ip-172-31-39-22 ~]$ systemctl status hapee-2.0-lb
● hapee-2.0-lb.service - HAPEE Load Balancer
Loaded: loaded (/usr/lib/systemd/system/hapee-2.0-lb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-12-09 14:07:46 UTC; 14min ago
Main PID: 918 (hapee-lb)
├─918 /opt/hapee-2.0/sbin/hapee-lb -Ws -f /etc/hapee-2.0/hapee-lb.cfg -p /run/hapee-2.0-lb.pid -m 5212 -f /etc/hapee-2.0/dashboard-module.cfg
└─920 /opt/hapee-2.0/sbin/hapee-lb -Ws -f /etc/hapee-2.0/hapee-lb.cfg -p /run/hapee-2.0-lb.pid -m 5212 -f /etc/hapee-2.0/dashboard-module.cfg
Access the Web Dashboard
Display the Web Dashboard credentials, which are stored in the file /README.txt.
[ec2-user@ip-172-31-39-22 ~]$ sudo cat /README.txt
Connect to the Web 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 up Kubernetes