Blogs

lvs+keepalived+dr+nginx反向代理架构,lvs访问网站很慢

lvs+keepalived+dr+nginx反向代理架构,lvs访问网站很慢。
之后我把lvs去掉,直接让用户通过nginx反向代理去访问站点,就恢复正常了。我就是找不出哪里是什么原因导致速度过慢了。请教各位朋友帮帮我:
配置文件如下:
! Configuration File for keepalived

global_defs {
router_id LVS_MASTER
}
vrrp_sync_group http {
group {
nginx
}
}

vrrp_instance nginx {
state MASTER
interface eth1
virtual_router_id 51
priority 101
advert_int 1
authentication {

LVS/NAT模式求教

最近在研究LVS/NAT结构,碰到一个问题:
客户划分了3个VLAN放置LVS服务器,WEB服务器,DB服务器。
LVS vlan :
LVS active server :eth0 172.16.203.10
LVS standby server :eth0 172.16.203.11
WEB VLAN:
WEB active1 eth0:172.16.200.10
WEB active1 eth0:172.16.200.11
DB vlan :
DB active eth0:172.16.201.10
DB standby eth0:172.16.200.11
我测试时对于NAT Route和WEB 服务器的默认网关配置产生了疑问。
因为web服务器所在VLAN 的GateWay 是172.16.200.1。

双网卡使用keepalive配置LVS的direct模式,只有一个IP生效(双线双IP)

生产环境
CentOS 6.2 2.6.32-220.7.1.el6.x86_64
eth0 : 电信IP
eth1 : 联通IP

配置文件(/etc/keepalived/keepalived.conf)如下:
global_defs {
router_id LVS-HA-1
}
vrrp_sync_group TEL {
group {
TELNET
}
}
vrrp_sync_group UNI {
group {
UNICOM
}
}
vrrp_instance TELNET {
state MASTER
interface eth0
mcast_src_ip 113.74.32.22
virtual_router_id 31
priority 200
advert_int 1
authentication {
auth_type PASS
auth_pass LVS-HA-1
}

LVS+Keepalived+Nginx的奇怪问题

最近因为项目中服务器架构要升级,考虑到高可用性,决定采用keepalived做LVS Server的双机互备,然后LVS作为DB和前端Nginx的load balancer。

我的环境:
VIP 10.8.12.200
DB RealServer1 10.8.12.208
DB RealServer2 10.8.12.209
Tomcat 1 10.8.12.203
Tomcat 2 10.8.12.204
LVS Server1 & Nginx RealServer1 10.8.12.201
LVS Server2 & Nginx RealServer2 10.8.12.202

gateway 10.8.12.254

上述服务器都只配一块网卡,Ubuntu 11.04 Server

启动keepalived只会,狂出日志文件,并且说VRRP child process(11856) died: Respawning,这是什么原因呢?

Mar 27 22:13:26 localhost Keepalived: VRRP child process(11856) died: Respawning
Mar 27 22:13:26 localhost Keepalived_vrrp: Netlink reflector reports IP 192.168.122.1 added
Mar 27 22:13:26 localhost Keepalived_vrrp: Netlink reflector reports IP 192.168.137.129 added
Mar 27 22:13:26 localhost Keepalived_vrrp: Netlink reflector reports IP 192.168.137.100 added
Mar 27 22:13:26 localhost Keepalived_vrrp: Registering Kernel netlink reflector
Mar 27 22:13:26 localhost Keepalived_vrrp: Registering Kernel netlink command channel

我的微博帐户

我的新浪微博帐户是“淘宝正明”,http://weibo.com/wensong8

twitter的帐户是wensong,http://twitter.com/wensong

最近用微博多一些,大家多交流,谢谢!

LVS 服务器集成配置

对于这点我几乎啥都不懂,希望在这里可以学习到需要的知识

页面

Subscribe to RSS - Blog
randomness