Commit graph

4 commits

Author SHA1 Message Date
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