Page MenuHomePhabricator

[Keepalived] Memory Leak ?
Open, Requires assessmentPublic

Description

Hi,
I've 2 VRRP group. One for each interface off my node.

adminsib@vpn-front01-a.sib.fr# run show vrrp
Name                     Interface      VRID  State    Last Transition
-----------------------  -----------  ------  -------  -----------------
vpnfront-vrrp-interco    eth1             10  MASTER   4d2h19m10s
vpnfront-vrrp-intercoFW  eth0             20  MASTER   4d2h19m10s
[edit]

since the VRRP was implemented wee see that every 2/3 day, there is a node switchover

We can see that in /var/log/messages :

Jun 21 00:17:50 vpn-front01-a kernel: [659082.424326] Out of memory: Kill process 2002 (keepalived) score 605 or sacrifice child
Jun 21 00:17:50 vpn-front01-a kernel: [659082.427243] Killed process 2002 (keepalived) total-vm:691972kB, anon-rss:612568kB, file-rss:64kB, shmem-rss:0kB

We also note that Vyos consumes 80MB more per day

I think than when keepalived consumes a lot off memory, and memory is full, Vyos kill one of two keepalived process

More information :

Version:          VyOS 1.2.1
Built by:         Sentrium S.L.
Built on:         Sun 14 Apr 2019 12:13 UTC
Build ID:         4ccd819a-db31-452e-b34b-a0b24af4e984

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     Unknown
Hardware UUID:    Unknown

Copyright:        VyOS maintainers and contributors
adminsib@vpn-front01-a.sib.fr# show high-availability
 vrrp {
     group vpnfront-vrrp-interco {
         authentication {
             password mypassword
             type plaintext-password
         }
         hello-source-address 172.31.6.22
         interface eth1
         no-preempt
         virtual-address 172.31.6.24/24
         vrid 10
     }
     group vpnfront-vrrp-intercoFW {
         authentication {
             password mypassword
             type plaintext-password
         }
         hello-source-address 172.31.20.12
         interface eth0
         no-preempt
         virtual-address 185.150.X.X/24
         vrid 20
     }
 }
[edit]

Thanks for your work ;)

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

doe35 created this task.Jun 25 2019, 9:16 AM
doe35 created this object in space S1 VyOS Public.
doe35 updated the task description. (Show Details)Jun 25 2019, 9:21 AM
doe35 updated the task description. (Show Details)
doe35 updated the task description. (Show Details)