Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.
https://icinga.com/docs/vsphere/latest
GNU General Public License v2.0
100 stars 34 forks source link

Checking DB for last Event Key is slow #445

Closed Thomas-Gelf closed 2 years ago

Thomas-Gelf commented 2 years ago

Expected Behavior

It costs 0,00 seconds to determine the last event key

Current Behavior

On a slow DB with lots of data, this can take a few seconds. Had this today, slow DB, two million events, took 2,8 seconds. As the related task runs every 2 seconds, this results in way too many "Task 'Events' is already running, skipping" log notices