Differences between revisions 8 and 9
Revision 8 as of 2018-01-08 20:21:35
Size: 955
Comment:
Revision 9 as of 2018-01-10 00:02:59
Size: 961
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
apt-get install haproxy apt-get install haproxy crmsh

HA-proxy

None of what you see below is true!

Setup dns for the virtual ip, then setup Corosync before starting with this guide.

HA-proxy is short for High Availibility proxy. It has features to check that the servers behind it are up, and round robins incoming requests between the servers. HA-proxy can be used with various server types. We will configure two HA-proxys, which later will be running an active/passive setup with Corosync

  • 192.168.1.48 haproxy01
  • 192.168.1.49 haproxy02

Software

apt-get install haproxy crmsh

Configuration

Apache

Add the following to /etc/haproxy/haproxy.cfg

listen webfarm 
        bind www:80
        mode http
        balance roundrobin
        cookie LBN insert indirect nocache
        option httpclose
        option forwardfor
        server haproxy01 www01:80 cookie node1 check
        server haproxy02 www02:80 cookie node2 check