Commit graph

597 commits

Author SHA1 Message Date
Simone Mainardi
8392e126f8 Simplifies and reduces the number of threads for purging idle entries 2020-09-29 18:51:44 +02:00
Simone Mainardi
5133af720f Reworks view interfaces with queues; rework idling and flow hooks exec 2020-09-29 18:30:10 +02:00
Luca Deri
80dfd37e04 Reworked baheviour analysis code 2020-09-28 12:55:37 +02:00
Simone Mainardi
90a5a57b36 Implements user script queues (avoids 5-sec HT walk) 2020-09-28 11:45:00 +02:00
Simone Mainardi
6e0c369fa9 Handles flow dump queues in view interfaces - and fixes races 2020-09-25 14:10:06 +02:00
Simone Mainardi
7f2a9b1420 Decouples flow dump from user scripts execution
Addresses #3545
2020-09-24 19:29:00 +02:00
Simone Mainardi
7962bc2565 Always use async dump for any kind of dumper (e.g, MySQL, nIndex, ...) 2020-09-24 14:31:38 +02:00
Simone Mainardi
a9a323acf1 Reworks (simplifies) hosts score calculation
Fixes #4459
Fixes #4460
2020-09-22 15:46:38 +02:00
Alfredo Cardigliano
a65b4ada64 Debug code cleanup, account flow allocation failures as dump drops in direct mode 2020-09-15 23:40:43 +02:00
Alfredo Cardigliano
0a6a569435 Add debug counter for flow allocation failures 2020-09-15 19:16:31 +02:00
Alfredo Cardigliano
0fb6f9472f Direct flow dump improbements and debug counters 2020-09-15 18:13:24 +02:00
Alfredo Cardigliano
14a30b7d66 Replace flow dump queue with SPSC queue 2020-09-14 19:04:27 +02:00
Luca Deri
18637f21e1 Reworked flow dump 2020-09-12 00:23:33 +02:00
Luca Deri
6cd3ebcc3b Flow dump code rework 2020-09-11 15:58:33 +02:00
Alfredo Cardigliano
2ce72cc6b7 Set runHousekeepingTasks as virtual on the interface 2020-09-08 10:24:49 +00:00
Luca Deri
75efc0ec0c Partial fix (community code is now clean) for #2533
Reworked inteface disaggregation
Moved to attic some unused classes
Added ability to disaggregate also for Probe IP + Ingress Interface
2020-08-07 17:20:26 +02:00
Simone Mainardi
99366d6ee3 Optimizes execution of user scripts (avoids multiple hosts HT walks) 2020-07-29 14:45:52 +02:00
Simone Mainardi
8fafd10769 Removes unused slow_stats_update from C and lua 2020-07-27 16:28:41 +02:00
Simone Mainardi
cd142f7448 Cleanup unused lua method to update stats 2020-07-27 15:55:09 +02:00
Simone Mainardi
c969bb9bef Cleanup code to update stats for pcap dump interfaces 2020-07-27 15:22:57 +02:00
Simone Mainardi
1baa7d6cc4 Avoids double 5-sec HT-walks to update stats 2020-07-27 14:22:59 +02:00
Alfredo Cardigliano
8b4f1c7e07 Add rest endpoint to get interface dscp stats 2020-07-20 17:35:03 +02:00
Alfredo Cardigliano
6e1e21f7ba Fix interface type detection with sub interfaces 2020-07-20 12:20:13 +02:00
Luca Deri
7ca59d0c26 Reworked periodicity stats 2020-07-19 08:13:08 +02:00
Luca Deri
40689081c7 Implemented periodicity stats 2020-07-17 13:12:53 +02:00
Alfredo Cardigliano
354866d16a Remove aggregated flows 2020-07-03 17:17:33 +02:00
Simone Mainardi
9e5e63e28f Avoids unnecessary executions of flow user script external_alert_check.lua
Fixes #4080
2020-06-26 12:08:10 +02:00
emanuele-f
340462ad73 Cleanup of the timeseries ring and NetworkInterfaceTsPoint 2020-05-20 15:18:03 +02:00
Simone Mainardi
88a3e05afd Compilation fix 2020-05-07 18:58:07 +02:00
Simone Mainardi
ebbe0155e3 Several ZMQ traffic and throughput calc fixes
Addresses #3863
2020-05-07 17:28:44 +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
Alfredo Cardigliano
848a5db012 Fix double eth stats update with pcap (fix #3787) 2020-04-17 16:08:00 +00:00
emanuele-f
ffb8fe8b41 Add network discovery support for multiple subnets on one interface
Network discovery is now performed on all the subnets of a network interface

Closes #3544
2020-03-24 20:53:11 +01:00
Alfredo Cardigliano
17121abd70 Do not initialize db on viewed interfaces to avoid exhausting max num of supported instances 2020-03-11 11:43:20 +01:00
Simone Mainardi
9fd86de371 Reworks timeseries export into classes {InfluxDB,RRD}TimeseriesExporter 2020-02-29 18:25:33 +01:00
emanuele-f
297195abab Add dropped/stored/queries system stats for alerts 2020-02-27 13:27:47 +01:00
emanuele-f
a6dab125d5 Improve dropped alerts information
- Add informative label
- Add dropped alerts timeseries and chart
- Generate a system alert whenever alerts are dropped on a network interface
- Add a periodic activity warning when some alerts are dropped on that activity

Closes #3025
2020-02-26 16:05:19 +01:00
Simone Mainardi
55cdb6c5ea Reworks slow rrd calc for periodic activites 2020-02-25 13:30:10 +01:00
emanuele-f
a428bb665f Add work completion indicator to ht_stats/stats/5min dump 2020-02-21 17:43:07 +01:00
Simone Mainardi
1cd375d756 Implements per-activity rrd writes duration 2020-02-19 15:34:29 +01:00
Simone Mainardi
0e64fd94d6 Implements deadlines for periodic and user scripts 2020-02-18 18:44:41 +01:00
Simone Mainardi
b54b3fec7e Reworks flows dump to avoid delays in ht_stats_update
Fixes #3419
2020-02-14 16:13:59 +01:00
Simone Mainardi
f7d79e50f9 Implements anti stall when dumping flows (MySQL, nIndex, ES, ...)
Implements #3411
2020-02-13 11:36:48 +01:00
Simone Mainardi
768e8ac207 Fixes mem leak with aggregated flows 2020-02-06 15:49:19 +01:00
emanuele-f
00b4fe17a6 Implement multitenant alerts support for in-memory alerts 2020-02-06 15:18:50 +01:00
Simone Mainardi
05750cf3ef Fixes and cleanup 2020-02-05 18:07:54 +01:00
Simone Mainardi
37975c1710 Fixes crashes with MySQL due to concurrency issues
Fixes #3381
2020-02-05 11:51:44 +01:00
Luca Deri
70dc07c3f1 ArpMatrix code moved to attic 2020-01-30 09:57:32 +01:00
emanuele-f
8d51dae0e5 Implement Misbehaving vs Alerted flows chart 2020-01-27 15:37:36 +01:00