Commit graph

10 commits

Author SHA1 Message Date
Simone Mainardi
5fbe012134 Implements in-memory counters for alert queues and shows them in the UI 2020-09-01 17:42:03 +02:00
Luca Deri
7bd09fa5da Various leak fixes 2020-08-28 15:54:20 +02:00
Luca Deri
a05c336959 Leak fix in case of queue full 2020-08-28 14:45:43 +02:00
Luca Deri
de09d439bf Fixes #4318 2020-08-25 00:13:35 +02:00
emanuele-f
1f028a1a96 Fix improper usage of FifoQueue 2020-05-04 18:11:11 +02:00
emanuele-f
4ee9eed2ac Rework interface hosts restore
The hosts are now deserialized in the datapath, removing concurrency issues
2020-05-04 16:01:17 +02:00
emanuele-f
4c66c55103 Fix leaks in AlertsQueue when queue is full 2020-02-13 11:58:25 +01:00
Luca Deri
57e6a93065 Improved scheduling algorithm to guarantee minimum service time when number of entries allow
Updated (C)
2020-01-06 23:36:36 +01:00
Alfredo Cardigliano
72ddef5b93 FifoStringQueue now extends a generic FifoQueue 2019-12-27 15:22:31 +01:00
emanuele-f
df0556cb87 Optimize flow alerts generation
This provides a ~10x speedup by performing the JSON serialization work in C
(and thus avoiding Lua->C overhead). This also implements two in-memory alerts
queues (one for sqlite and one for the notifications) in order to reduce Redis load.
Alerts queue are now global instead of per-interface as there is only 1 dequeing thread.
2019-11-14 11:54:13 +01:00