Limit alerts insertions if the queues are full

This commit is contained in:
emanuele-f 2019-11-08 11:26:08 +01:00
parent 3a0e4b13f7
commit af1dc8a05e
2 changed files with 70 additions and 27 deletions

View file

@ -14,7 +14,8 @@ if(ntop.isPro()) then
end
-- NOTE: sqlite can handle about 10-50 alerts/sec
alert_consts.MAX_NUM_QUEUED_ALERTS_PER_INTERFACE = 256
alert_consts.MAX_NUM_QUEUED_ALERTS_PER_INTERFACE = 512
alert_consts.MAX_NUM_QUEUED_ALERTS_NOTIFICATIONS = 1024
alert_consts.MAX_NUM_QUEUED_ALERTS_PER_MODULE = 1024 -- should match ALERTS_MANAGER_MAX_ENTITY_ALERTS
-- Alerts (see ntop_typedefs.h)