Chapter 8. Add an HAProxy load balancer
If you are using multiple HAProxy nodes and have not set up a round-robin DNS entry for the host name that you used as the value of the --cds-lb-hostname
parameter when you ran rhui-installer
(as instructed in Section 6.6, “Run the rhui-installer”) that resolves to the IP addresses of all HAProxy nodes, see Chapter 3, Prerequisites for installing Red Hat Update Infrastructure for more details.
Procedure
-
Make sure
sshd
is running on the HAProxy node and that ports 443 and 5000 are open. Navigate to the Red Hat Update Infrastructure Management Tool home screen.
[root@rhua ~]# rhui-manager
In the Red Hat Update Infrastructure Management Tool home screen, press
l
to select manage HAProxy load-balancer instances.-= Red Hat Update Infrastructure Management Tool =- -= Home =- r manage repositories c manage content delivery servers (CDS) l manage HAProxy load-balancer instances s synchronization status and scheduling e create entitlement certificates and client configuration RPMs n manage Red Hat entitlement certificates u manage RHUI users Connected: rhua.example.com
Press
a
to select register (add) a new HAProxy Load-balancer instance.------------------------------------------------------------------------------ = Red Hat Update Infrastructure Management Tool = = Load-balancer (HAProxy) Management = l list all known HAProxy Load-balancer instances managed by the RHUI a register (add) a new HAProxy Load-balancer instance r reinstall and reapply configuration to an existing HAProxy Load-balancer instance d unregister (delete) a HAProxy Load-balancer instance from the RHUI Connected: rhua.example.com ------------------------------------------------------------------------------ rhui (loadbalancers) => a
Enter the host name of the HAProxy to add.
Hostname of the HAProxy Load-balancer instance to register: haproxy1.example.com
Enter the user name that will have SSH access to the HAProxy load balancer and have sudo privileges.
Username with SSH access to haproxy1.example.com and sudo privileges: root
Enter the absolute part to the SSH private key for logging in to the HAProxy load balancer and press
Enter
.Absolute path to an SSH private key to log into haproxy1.example.com as root: /root/.ssh/id_rsa ......................................................................... The following HAProxy Load-balancer has been successfully added: Hostname: <haproxy1.example.com> SSH Username: root SSH Private Key: /root/.ssh/id_rsa The HAProxy Load-balancer will now be configured: ………………………………………………………….. The HAProxy Load-balancer was successfully configured.
After successful configuration, repeat these steps for any remaining HAProxy load balancers. You can also add an HAProxy load balancer through the command line interface.
# rhui haproxy add <haproxy1.example.com> root /root/.ssh/id_rsa -u