在 Debian 系统上,keepalived 占用了两个 kibana 节点的全部 CPU 使用率

在 Debian 系统上,keepalived 占用了两个 kibana 节点的全部 CPU 使用率

我在 Debian 10 上有主/从 kibana 机器。几天以来,两个节点上的 keepalived 守护进程的 CPU 使用率都达到 100%。keepalived 重启后恢复正常,然后一直循环。

我不确定我的 keepalived 配置到底出了什么问题。你能指导我一下吗?

root@kib-e01:/var/log# keepalived -v
Keepalived v2.0.10 (11/12,2018)
root@kib-e01:/var/log# uname -r
4.19.0-13-amd64
root@kib-e01:/var/log#

root@kib-e02:/var/log# keepalived -v
Keepalived v2.0.10 (11/12,2018)
root@kib-e02:/var/log# uname -r
4.19.0-17-amd64
root@kib-e02:/var/log#

系统日志

Jan 21 08:16:38 kibana-s02 kib-e01[35862]: Registering Kernel netlink reflector
Jan 21 08:16:38 kibana-s02 kib-e01[35862]: Registering Kernel netlink command channel
Jan 21 08:16:38 kibana-s02 kib-e01[35862]: Opening file '/etc/keepalived/keepalived.conf'.
Jan 21 08:16:38 kibana-s02 kib-e01[35862]: Registering gratuitous ARP shared channel
Jan 21 08:16:39 kibana-s02 kib-e01[35862]: VRRP_Script(check_script) succeeded
Jan 21 08:16:39 kibana-s02 kib-e01[35862]: (ha-kibana-s) Entering BACKUP STATE
Jan 21 08:16:42 kibana-s02 kib-e01[35862]: (ha-kibana-s) Entering MASTER STATE

我的 /etc/keepalived/keepalived.conf 来自MASTER 保活

vrrp_script check_script {
        script "/usr/bin/curl --noproxy "127.0.0.1" -s -k https://127.0.0.1:443/status"
        interval 2
        fall 2
        rise 2
}

global_defs {
    notification_email {
        [email protected]
    }
    notification_email_from kib-e01
    smtp_server localhost
    smtp_connect_timeout 30
    enable_script_security
}

vrrp_instance ha-kibana-s {
        interface eth0
        state MASTER
        priority 200
  advert_int 1
        virtual_router_id 33
        unicast_src_ip 10.14.150.34

        unicast_peer {
                10.14.150.35
        }

        track_script {
                check_script
        }

authentication {
                auth_type PASS
                # Only the first eight (8) characters are used.
                auth_pass fderty6y
}

        virtual_ipaddress {
                10.14.150.33 brd 10.14.150.255 dev eth0 label vip
        }

}

主机的ip a:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:50:56:b2:67:8b brd ff:ff:ff:ff:ff:ff
    inet 10.14.150.34/24 brd 10.14.150.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 10.14.150.33/32 brd 10.14.150.255 scope global vip
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:feb2:678b/64 scope link
       valid_lft forever preferred_lft forever

相关内容