- 論壇徽章:
- 0
|
keepalived 只有2個進程在,看日志也沒什么錯誤。 手工關(guān)閉可以正常漂移到另外一臺物理機器。但無法對健康進行監(jiān)控。
[root@localhost kernels]# ps -ef | grep keep
root 27748 1 0 14:16 ? 00:00:00 keepalived -D
root 27749 27748 0 14:16 ? 00:00:00 keepalived -D
root 27752 26427 0 14:16 pts/2 00:00:00 grep keep
日志:
Jul 18 14:19:06 localhost Keepalived: Starting Keepalived v1.1.19 (07/18,2016)
Jul 18 14:19:06 localhost Keepalived: Starting VRRP child process, pid=27789
Jul 18 14:19:06 localhost Keepalived_vrrp: Registering Kernel netlink reflector
Jul 18 14:19:06 localhost Keepalived_vrrp: Registering Kernel netlink command channel
Jul 18 14:19:06 localhost Keepalived_vrrp: Registering gratutious ARP shared channel
Jul 18 14:19:06 localhost Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Jul 18 14:19:06 localhost Keepalived_vrrp: Configuration is using : 64985 Bytes
Jul 18 14:19:06 localhost Keepalived_vrrp: Using LinkWatch kernel netlink reflector...
Jul 18 14:19:06 localhost Keepalived_vrrp: VRRP_Instance(loadmqdb) Entering BACKUP STATE
Jul 18 14:19:06 localhost Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), fd(9,10)]
配置很簡單:
vrrp_instance loadmqdb {
state BACKUP
nopreempt
interface eth0
virtual_router_id 230
priority 180
advert_int 1
authentication {
auth_type PASS
auth_pass 111
}
virtual_ipaddress {
172.16.3.230
}
}
virtual_server 172.16.3.230 3306 {
delay_loop 2
lb_algo rr
lb_kind DR
persistence_timeout 20
protocol TCP
real_server 172.16.3.234 3306 {
weight 3
notify_down /usr/bin/mysql_down.sh
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 3306
}
}
}
根據(jù)之前的經(jīng)驗和網(wǎng)上的搜索 ip_vs 和 kernel-devel 也配置安裝了。。
問題依舊,求高手解答 |
|