前言前面说过基于heartbeat的LVS高可用方案,今天带来另一种解决方案:基于Keepalived实现LVS双主高可用集群。什么是Keepalived呢,keepalived观其名可知,保持存活,在网络里面就是保持在线了,也就是所谓的高可用或热备,用来防止单点故障的发生。本文将详细讲述Keepalived工..
分类:
其他好文 时间:
2015-06-16 19:26:32
阅读次数:
184
一.概述LVS作用:实现负载均衡Keepalived作用:监控集群系统中各个服务节点的状态,HA cluster。配置LVS有两种方式:1. 通过ipvsadm命令行方式配置2. 通过Redhat提供的工具piranha来配置LVS软件下载:ipvsadm下载地址:http://www.linuxv...
分类:
其他好文 时间:
2015-06-16 18:51:39
阅读次数:
241
nginx+keepalived实现双机双主高可用性...
不懂运维的程序员,不是好的工程师!...
分类:
其他好文 时间:
2015-06-12 11:48:05
阅读次数:
163
版本:centos5.1164位因公司服务器比较老,想要上线高可用,所以我虚拟机上测试也用这个版本haproxy-1.3.20keepalived-1.2.7192.168.6.128haproxy主192.168.6.129haproxy备192.168.6.130192.168.6.131nginx192.168.6.132vip在128,129上haproxy安装:1、tarzxvfhaproxy-1.3.20...
分类:
其他好文 时间:
2015-05-29 12:15:50
阅读次数:
167
1.下载:wgethttp://www.keepalived.org/software/keepalived-1.2.15.tar.gz2.解压安装:yuminstallipvsadmtar-zxvfkeepalived-1.2.15.tar.gzcdkeepalived-1.2.15./configure--prefix=/usr/local/keepalived-1.2.15--disable-fwmark--sysconfdir=/etcmake&&makeinstallcd..
分类:
其他好文 时间:
2015-05-29 06:21:32
阅读次数:
264
配置keepalive实现mysql双主高可用1.安装keepalive2。配置keepaliveglobal_defs{notification_email{acassen@firewall.locfailover@firewall.locsysadmin@firewall.loc}router_idmysql_ha}vrrp_scriptcheck_mysqld{script"/etc/keepalived/mysqlcheck/keepalived_check_mysql.s..
分类:
数据库 时间:
2015-05-23 18:39:54
阅读次数:
177
一:试验环境主机名IP地址集群角色集群服务虚拟IP地址node110.43.2.11MASTERNginx10.43.2.99node310.43.2.65BACKUPNginx二:Keepalived的安装配置1.解决依赖关系:yuminstall-yopen-developenssl2.wgethttp://www.keepalived.org/software/keepalived-1.2.11.tar.gztarxfkeepal..
分类:
其他好文 时间:
2015-05-20 15:03:47
阅读次数:
295
前期准备:1、实验拓扑图2、地址规划Master10.10.0.224(VIP:10.10.0.220)keepalived、nginxBackup10.10.0.226(VIP:10.10.0.220)keepalived、nginxRealServer110.10.0.225httpdRealServer210.10.0.221httpd一、安装keepalived和nginxMaster和Backup分别安装:1、安装keepalived[r..
分类:
其他好文 时间:
2015-05-19 16:56:56
阅读次数:
192
一、地址规划VIP:10.10.0.228MasterAIP:10.10.0.224MasterBIP:10.10.0.226二、mysql双热热备master-master1、安装mysql(编译或yum安装)2、配置MasterA,修改配置文件,添加以下内容#vim/etc/my.cnflog-bin=mysql-binlog=/home/mysqld.logserver-id=1binlog-do-db=data1auto-incr..
分类:
数据库 时间:
2015-04-09 20:10:15
阅读次数:
216
nginx安装rpm-ivhhttp://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmyuminstallnginx/etc/init.d/nginxstartyuminstallkeepalivedservicenginxstartservicekeepalivedstartvi/etc/keepalived/keepalived.conf修改以下1)vrrp_instan..
分类:
其他好文 时间:
2015-04-08 09:21:56
阅读次数:
184