标签: Keepalived

LVS/NAT+Keepalived 构建高可用Web集群

安装约定 LVS-VIP:192.168.1.4 LVS-NVIP:10.0.0.1 LVS-MASTER: eth0:192.168.1.10 eth1:10.0.0.10 LVS-BACKUP: eth0:192.168.1.11 eth1:10.0.0.11 WEB-1-REAL_SERVER: eth0:192.168.1.20 WEB-2-REAL-SERVER: eth0:192.168.1.21 在LVS-MASTER服务器上配置keepalived.conf # vim /etc…

阅读全文 »

LVS/DR+Keepalived 构建高可用Web集群

安装约定 LVS-VIP:192.168.1.4 LVS-MASTER:192.168.1.10 LVS-BACKUP:192.168.1.11 WEB-1-REAL_SERVER:192.168.1.20 WEB-2-REAL-SERVER:192.168.1.21 在LVS-MASTER服务器上配置keepalived.conf # vim /etc/keepalived/keepalived.conf 添加如下内容 ! Configuration File for keepalived g…

阅读全文 »

keepalived开启不抢占功能

当采用mysql主主高可用方案后,如果master主服务器挂掉,那么backup服务器接管,如果master服务器修复后,由于优先级比backup高,这时候master将接管服务,会出现数据会出现问题,因此需要配置策略,解决办法如下 将keepalived master和backup服务器状态state都配置为backup,在优先级高的那台服务器priority 100下面加上参数nopreempt

阅读全文 »

CentOS 安装 Keepalived

方法1:使用yum安装 # yum -y install keepalived # chkconfig keepalived on 方法2:源码编译安装 安装约定 keepalived源码路径:/usr/local/src keepalived配置文件路径:/etc/keepalived/keepalived.conf 下载源码 # cd /usr/local/src # wget http://www.keepalived.org/software/keepalived-1.2.12.tar….

阅读全文 »