BGP Session Polling Very Slow

Tags: #<Tag:0x00007f6cbeb991f0>

Polling excess of 1700 BGP sessions on ASR1009-X takes around 370 seconds after performance tunning. It took 530 seconds before that. Is there anything that can be done to speed this up?

Currently, LibreNMS is running on a VM with 16 cores and 8 GB RAM - none of which are 50% utilised.

Polled in 376.744 seconds
### Start Device Groups ###
### End Device Groups, runtime: 0.0031s ###

#### Start Alerts ####
#### End Alerts ####
SNMP [5299/319.19s]: Get[5249/254.68s] Getnext[4/0.17s] Walk[46/64.34s]
MySQL [10567/44.01s]: Cell[1/0.01s] Row[3/-0.00s] Rows[1734/2.03s] Column[1/0.00s] Update[8827/41.97s] Insert[1/0.00s] Delete[0/0.00s]
RRD [9037/2.01s]: Update[9037/2.01s]
  • The output of ./validate.php
Component Version
LibreNMS 21.3.0-75-g40517f695
DB Schema 2021_03_26_014054_change_cache_to_mediumtext (206)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8
[OK]    Composer Version: 2.0.12
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

I can’t share the output of discovery.php / poller.php - sorry.

If you cannot share the debug data, you’ll understand our help will be limited. What we can suggest to you is to check how fast the ASR replies the SNMP. If most of those 370 seconds are the time taken by ASR to give the data, you won’t be able to improve it (unless replace ASR with a more powerfull device).