HAproxy+++++++++++++Info+++++++++++VIP:192.168.1.222HA-Master IP:192.168.1.117HA-Backup IP:192.168.1.118Realserver1IP:192.168.1.120Realserver2IP:192.1...
分类:
系统相关 时间:
2015-09-12 00:50:59
阅读次数:
317
ip addr add 192.168.50.50/24 dev etho 添加辅助ip
ip addr del 192.168.50.50/24 dev etho 删除辅助ip
脑裂:某种原因导致集群各节点之间无法通讯,各自都为master或者slave
killall -0 haproxy 不杀死进程,只是用作检测。...
分类:
其他好文 时间:
2015-05-28 09:39:05
阅读次数:
183
HAProxy提供高可用性、负载均衡以及基于TCP和HTTP应用的代理,支持虚拟主机,它是免费、快速并且可靠的一种解决方案。Haproxy的四层负载均衡搭建主机规划:server192.168.1.148提供haproxy服务后台web1192.168.1.150web2192.168.1.136使用源码包安装解压:tar-zxvfhaproxy-1.4...
分类:
系统相关 时间:
2015-05-17 23:46:30
阅读次数:
532
首先在http 这里做一个门防御
frontend http
bind 10.0.0.20:80
acl anti_ddos always_true
#白名单
acl whiteip src -f /usr/local/haproxy/etc/whiteip.lst
#标记非法用户
stick-table type ip size 20k expire 2m store ...
分类:
其他好文 时间:
2014-12-24 11:54:21
阅读次数:
514
Keepalived部署
编译keepalived
#cd /opt/soft
# wget http://www.keepalived.org/software/keepalived-1.2.12.tar.gz
#tar zxvf keepalived-1.2.12.tar.gz
#cd keepalived-1.2.12
# ./configure && make && make...
分类:
其他好文 时间:
2014-12-07 11:22:04
阅读次数:
297
安装HAproxy,先用命令检查内核系统的版本,这里redhat5.5的内核为2.6[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.18-8.el5#1SMPFriJan2614:15:21EST2007i686i686i386GNU/Linux[root@red-hat6-serversetup]#tarzxfhaproxy-1.4.21.tar.gz[root@red-hat6-serversetu..
分类:
其他好文 时间:
2014-12-07 06:37:58
阅读次数:
257