HAProxy is free, open-source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers. It is written in C and has a reputation for being fast and efficient.
Below is the SCP command needed to copy a configuration file from one server to the other.
– SCP Command
root@HA-Proxy-CL2:/# scp /etc/haproxy/haproxy.cfg email@example.com:/etc/haproxy/haproxy.cfg
Now navigate to the other node and view the copied files.
root@ha-proxy-cl1:/etc/haproxy# cp haproxy.cfg haproxy.cfg.bak