The HAProxy Configuration template is stored on the controller in /usr/share/cmon/templates/haproxy.cfg and in that directory you also have a the template for the mysqlchk script.ģ. Install HAproxy into both nodes, select in the UI Manage -> Load BalancerĬlick "Install HAProxy" when you are happy with the settings. Copy the SSH keys to the load balancer nodes: $ ssh-copy-id -i ~/.ssh/id_rsa 192.168.10.101 Before we start to deploy, make sure LB1 and LB2 are accessible using passwordless SSH. You may refer to following diagram for the architecture:ġ. When LB1 is down, the VIP will be taking over by LB2 and once the LB1 up again, the VIP will be failback to LB1 since it hold the higher priority number. In this example, we are using 2 nodes to act as the load balancer with IP failover in front of our database cluster. VIP will be floating around between LB1 (master) and LB2 (backup). This is seamless because the two HAProxy instances need no shared state. VRRP provides a virtual IP address to the active HAProxy, and transfers the Virtual IP to the standby HAProxy in case of failure. To avoid a single point of failure with your HAProxy, one would set up two identical HAProxy instances (one active and one standby) and use Keepalived to run VRRP between them.
0 Comments
Leave a Reply. |