Submitted by 123yph321 on 周四, 2012-06-21 05:48
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 {
Submitted by wood on 周三, 2012-04-11 10:45
最近在研究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。
Submitted by higkoo on 周日, 2012-04-01 10:20
生产环境
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
}
Submitted by yue_ch on 周六, 2012-03-31 03:57
最近因为项目中服务器架构要升级,考虑到高可用性,决定采用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
Submitted by 全龙军 on 周三, 2012-03-28 01:04
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
Submitted by wensong on 周日, 2012-03-18 08:48
Submitted by microchen on 周三, 2012-03-14 13:49
对于这点我几乎啥都不懂,希望在这里可以学习到需要的知识
Submitted by wensong on 周六, 2012-03-10 04:39
Submitted by wensong on 周六, 2012-03-10 04:24
Submitted by wensong on 周六, 2012-03-10 04:13
页面