All actions will also be relevant for CentOS/RHEL systems. In this example, a user will be added for access via SFTP using an SSH key to the web directory under Apache management. There is a default for Apache group “apache”, if necessary, replace the desired one.
To verify failover occurs as expected, set up a continuous ping against the virtual IP and stop the keepalived…
In this article, you can learn how to install HAProxy 2.0 on Amazon Linux 2/CentOS and set up an HAProxy configuration for your load balancing web server.
By default, HAProxy resolves all DNS records (e.g. for backends) at startup/reload. These resolved DNS records then stay in HAProxy’s own DNS cache. So you would have to launch a reload of HAProxy to renew the DNS cache.
Parsing the logs with HALog isn’t the only way to get metrics out of HAProxy. The HAProxy Stats Page can be enabled by adding the stats enable directive to a frontend or listen section.
With the release of HAProxy 1.9, you can record CPU time spent on processing a request within HAProxy