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

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


[b]Official Site:[/b]
[url]http://www.keepalived.org/[/url]



//查看状态
$ /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



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


[b]介绍基于LVS及Keepalived的负载均衡及服务器集群的中文pdf(即附件):[/b]
[url]http://www.keepalived.org/pdf/sery-lvs-cluster.pdf[/url]
[b]Deploying Highly Available Virtual Interfaces With Keepalived:[/b]
[url]http://prefetch.net/articles/linuxkeepalivedvrrp.html[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值