亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標題:
lvs-dr 模式異常
[打印本頁]
作者:
greysky-zfj
時間:
2013-05-07 10:10
標題:
lvs-dr 模式異常
lvs-dr模式對 80 端口做了集群,使用rr算法。在dr上用 ipvsadm 命令查看,一切正常,3臺realserver均在其中。
[root@localhost ~]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress
ort Scheduler Flags
-> RemoteAddress
ort Forward Weight ActiveConn InActConn
FWM 3 rr
-> x. x. x. x:80 Local 1 0 0
-> x. x. x. x:80 Route 1 0 0
-> x. x. x. x:80 Route 1 0 0
從分配的連接數上可以看出有異常,但其實2臺realserver并未有任何連接被分配,所有的連接都被分配到第三臺,而且每次都是這樣。重啟keepalived服務后,恢復正常。keepalived的日志中并未有任何異常信息。
May 6 15:17:55 localhost Keepalived[19816]: Starting Keepalived v1.2.6 (01/22,2013)
May 6 15:17:55 localhost Keepalived[19817]: Starting Healthcheck child process, pid=19818
May 6 15:17:55 localhost Keepalived[19817]: Starting VRRP child process, pid=19819
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Initializing ipvs 2.6
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Interface queue is empty
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: No such interface, eth1
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Netlink reflector reports IP x. x. x. x added
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Netlink reflector reports IP fe80::2e:4fff:fec:436 added
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Registering Kernel netlink reflector
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Interface queue is empty
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Registering Kernel netlink command channel
May 6 15:17:55 localhost Keepalived_vrrp[19819]: No such interface, eth1
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Netlink reflector reports IP x. x. x. x added
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Netlink reflector reports IP fe80::2e:4fff:fec:436 added
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Registering Kernel netlink reflector
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Registering Kernel netlink command channel
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Registering gratuitous ARP shared channel
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Initializing ipvs 2.6
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Opening file '/etc/keepalived/keepalived.conf'.
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Configuration is using : 34487 Bytes
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Opening file '/etc/keepalived/keepalived.conf'.
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Configuration is using : 62292 Bytes
May 6 15:17:55 localhost Keepalived_vrrp[19819]: Using LinkWatch kernel netlink reflector...
May 6 15:17:55 localhost Keepalived_vrrp[19819]: VRRP sockpool: [ifindex(2), proto(112), fd(11,12)]
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Using LinkWatch kernel netlink reflector...
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Activating healthchecker for service [x. x. x. x]:80
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Activating healthchecker for service [x. x. x. x]:80
May 6 15:17:55 localhost Keepalived_healthcheckers[19818]: Activating healthchecker for service [x. x. x. x]:80
May 6 15:17:56 localhost Keepalived_vrrp[19819]: VRRP_Instance(VI_1) Transition to MASTER STATE
May 6 15:17:57 localhost Keepalived_vrrp[19819]: VRRP_Instance(VI_1) Entering MASTER STATE
May 6 15:17:57 localhost Keepalived_vrrp[19819]: VRRP_Instance(VI_1) setting protocol VIPs.
May 6 15:17:57 localhost Keepalived_vrrp[19819]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for x. x. x. x
May 6 15:17:57 localhost Keepalived_healthcheckers[19818]: Netlink reflector reports IP x. x. x. x added
May 6 15:18:02 localhost Keepalived_vrrp[19819]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for x. x. x. x
求解
作者:
xiaodylan
時間:
2013-05-07 16:15
"其實2臺realserver并未有任何連接被分配" 這個在哪里看出來的?
作者:
greysky-zfj
時間:
2013-05-07 16:17
回復
2#
xiaodylan
在這2臺realserver上看的 80端口沒有任何連接,而第三臺卻有大量的80端口連接
作者:
xiaodylan
時間:
2013-05-07 16:20
在lvs上直接telnet realserver的80 試試 可否連接呢?
作者:
greysky-zfj
時間:
2013-05-07 16:21
回復
4#
xiaodylan
可以
作者:
xiaodylan
時間:
2013-05-07 16:23
那如果可以的話,我覺得應該是配置的問題,能否貼一下配置?
作者:
greysky-zfj
時間:
2013-05-07 16:28
回復
6#
xiaodylan
! Configuration File for keepalived
global_defs {
router_id LVS_DEVEL
}
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 90
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
x.x.x.250 }
}
virtual_server fwmark 3 {
delay_loop 3
lb_algo rr
lb_kind DR
# persistence_timeout 50
protocol TCP
real_server x.x.x..132 80 {
MISC_CHECK {
misc_path "/lvs/checkHTTP.sh x.x.x.132"
misc_timeout 6
nb_get_retry 3
}
}
real_server x.x.x.136 80 {
MISC_CHECK {
misc_path "/lvs/checkHTTP.sh x.x.x.136"
misc_timeout 2
nb_get_retry 2
}
}
real_server x.x.x.144 80 {
MISC_CHECK {
misc_path "/lvs/checkHTTP.sh x.x.x.144"
misc_timeout 2
nb_get_retry 2
}
}
}
作者:
xiaodylan
時間:
2013-05-07 17:24
有人遇到過這樣的情況"以前一直使用tcp_check,現(xiàn)在準備換成misc_check用于動態(tài)調整權重,在我的rs經歷一次reboot后,lvs沒有恢復其權重,而是把權重變成了0" 但是和你的情況不太一樣,我不知道你嘗試過試用tcp_check么?
作者:
greysky-zfj
時間:
2013-05-07 17:27
回復
8#
xiaodylan
沒有
不過 既然 ipvsadm
顯示是realserver存在的,就應該往上面分配啊
作者:
xiaodylan
時間:
2013-05-07 17:32
你說的重啟過后就恢復正常是什么意思?
作者:
greysky-zfj
時間:
2013-05-07 17:39
本帖最后由 greysky-zfj 于 2013-05-07 17:40 編輯
回復
10#
xiaodylan
重啟keepalived服務后,那2臺沒有連接的服務,馬上就有連接分配過來了,每次都這樣,而且每次都是這2臺有問題,第3臺正常
作者:
xiaodylan
時間:
2013-05-07 17:43
額...防火墻的設置呢?
作者:
greysky-zfj
時間:
2013-05-07 17:44
回復
12#
xiaodylan
防火墻不用考慮了
作者:
i.am
時間:
2013-05-09 08:47
那你重啟后大概多久問題會出現(xiàn)呢?前后有么有什么日志呢
歡迎光臨 Chinaunix (http://www.72891.cn/)
Powered by Discuz! X3.2