Haproxy
Haproxy documentation
failover configuration examples
http://blog.haproxy.com/2013/12/23/failover-and-worst-case-management-with-haproxy/
not so pratical guide
http://severalnines.com/tutorials/mysql-replication-high-availability-tutorial
SSL with HAProxy
from this guide https://serversforhackers.com/using-ssl-certificates-with-haproxy you can have two types of ssl for haproxy
- SSL Pass-Through , your haproxy is only at the tcp level and forward the connection to the destination , it is easy to configure but you don't have full control of the http connection because for you remain encrypted
- SSL Termination, your haproxy is a https level so it terminates the connections and create a new one for the destination , you have full control in this way
my working example with Pass-Through
cat /etc/haproxy/haproxy.cfg
defaults
timeout connect 5000ms
timeout client 5000ms
timeout server 5000ms
frontend http-in
bind *:443
mode tcp
default_backend my-backend
backend my-backend
mode tcp
option ssl-hello-chk
server pvs_01 mymachine.mydomain.com:443
versione della pagina: 1, ultima modifica: 16 Nov 2016 16:41