高可用与负载均衡:Haproxy(or lVS) + keepalived

  

sources:
Setting Up A High-Availability Load Balancer With HAProxy/Keepalived On Debian Lenny:
http://www.howtoforge.com/setting-up-a-high-availability-load-balancer-with-haproxy-keepalived-on-debian-lenny
Load Balancing with HAProxy:
https://serversforhackers.com/editions/2014/07/15/haproxy/
用HAProxy和KeepAlived构建高可用的反向代理系统:
http://weizhifeng.net/HA-with-HAProxy-and-KeepAlived.html
How-to: Basic HAProxy Active/Backup Example Configuration (keepalived) for CentOS/RHEL 6:
http://jasonscalia.com/2013/07/how-to-basic-haproxy-activebackup-example-configuration-keepalived-for-centosrhel-6/
Install HAProxy and Keepalived (Virtual IP)
http://support.severalnines.com/entries/23612682-Install-HAProxy-and-Keepalived-Virtual-IP-
HOW TO LOAD BALANCE TCP CONNECTIONS WITH HAPROXY
http://www.tenfourty.com/2011/04/09/how-to-load-balance-tcp-connections-with-haproxy/
An Introduction to HAProxy and Load Balancing Concepts
https://www.digitalocean.com/community/tutorials/an-introduction-to-haproxy-and-load-balancing-concepts#TypesofLoadBalancing
How To Use HAProxy to Set Up HTTP Load Balancing on an Ubuntu VPS
https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps
HAProxy Logging in Ubuntu Lucid
http://kvz.io/blog/2010/08/11/haproxy-logging/




Official Site:
http://www.keepalived.org/


//查看状态
$ /etc/init.d/keepalived status
//重启
$ /etc/init.d/keepalived restart
# 在本地或其他内网机器上 ping virtual IP。在 keepalived 所在的 master 节点上使用下面的命令监听收到的 ping request,从而测试 virtual IP 是否已经在 keepalived master 上起作用了:
$ sudo tcpdump ip proto \\icmp
# 或者直接在 keepalived master 上使用 ip addr,查看 virtual IP 是否已经成功绑定到了指定的网卡(network interface)上(注意用 ipconfig 命令是看不到绑定的 virtual IP 的):
$ ip addr




备忘:
linux下配置文件所在: /etc/keepalived/keepalived.conf
VRRP:Virtual Router Redundancy Protocol
LVS: Linux Virtual Server ( http://www.linuxvirtualserver.org/)
IPVS: IP Virtual Server



介绍基于LVS及Keepalived的负载均衡及服务器集群的中文pdf(即附件):
http://www.keepalived.org/pdf/sery-lvs-cluster.pdf
Deploying Highly Available Virtual Interfaces With Keepalived:
http://prefetch.net/articles/linuxkeepalivedvrrp.html

你可能感兴趣的:(keepalived,LVS,cluster,haproxy,vrrp)