- 论坛徽章:
- 0
|
keepalived 只有2个进程在,看日志也没什么错误。 手工关闭可以正常漂移到另外一台物理机器。但无法对健康进行监控。
[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
}
}
}
根据之前的经验和网上的搜索 ip_vs 和 kernel-devel 也配置安装了。。
问题依旧,求高手解答 |
|