SNMP problems with more than 1k virtual ips

Manuel Alberer <[email protected]> Wed, 7 Oct 2020 14:07:14 +0000
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Keepalived does not react to snmp requests via master x agent if there are more then 1-2k virtual ips.
All ips are setup via virtual_ipaddress_excluded except one.

How to reproduce.

SETUP:
Keepalived running with -x
v2.0.10 on Debian buster with all updates.
Installed via Debian repo.


###Minimal config:
vrrp_instance ANX_MA {
  @anx-ma-cluster01 priority 200
  @anx-ma-cluster02 priority 100
  @anx-ma-cluster03 priority 50

  interface eth0
  virtual_router_id 117
  nopreempt
  virtual_ipaddress {
    192.12.115.223/23
  }
  virtual_ipaddress_excluded {
   10.201.36.14/24
  }
}

###snmp running with config:
agentAddress udp:161
rocommunity public
disk /
disk /boot
dontLogTCPWrappersConnects true
skipNFSInHostResources true
master agentx

### setup with 1-1k ips
snmpwalk -v2c -cpublic localhost KEEPALIVED-MIB::vrrpInstanceTable;
snmpwalk -v2c -c public localhost .1.3.6.1.4.1.9586.100.5.1.1.0

both commands return status within very short time.

### setup with 2k+ ips
snmpwalk -v2c -c public localhost .1.3.6.1.4.1.9586.100.5.1.1.0

snmpwalk runs into a timeout, even when only the keepalived version is requested.

Log shows:
Keepalived_vrrp[122818]: AgentX master disconnected us, reconnecting in 15


Best regards
MA