Commit graph

42 commits

Author SHA1 Message Date
emanuele-f
c6a87fbc69 Little fix to avoid possible race 2019-11-04 12:47:47 +01:00
emanuele-f
94643f1fe1 Fix system script concurrent run
Multiple instances of the housekeeping and timeseries scripts were launched
since commit 84bf948f0f .

Fixes #3035
2019-11-04 12:42:26 +01:00
Luca Deri
64e33a2018 Fixed script execution for pcap interfaces 2019-11-01 15:34:18 +01:00
Luca Deri
84bf948f0f Reworked thread handling policy 2019-11-01 12:15:08 +01:00
Luca Deri
aee1b3defb Split threaded activities in high and standard priority tasks 2019-11-01 11:03:56 +01:00
Simone Mainardi
5b4c31718f Handles threaded activities stats for up to MAX_NUM_INTERFACE_IDS
Fixes #3027
2019-10-30 15:53:13 +01:00
Simone Mainardi
09b5ec032f View interfaces updates and comments 2019-10-30 11:58:05 +01:00
Simone Mainardi
e8277e46ff Reworks view interfaces implementation 2019-10-30 11:47:56 +01:00
Simone Mainardi
dc748b1b6d Implements stats for periodic scripts duration 2019-10-28 17:10:03 +01:00
Alfredo Cardigliano
9992179645 Set affinity mask for service threads (implements #3012) 2019-10-28 15:54:33 +01:00
Simone Mainardi
68246efd01 Decouples periodic hash table updates using a thread pool 2019-10-27 17:40:07 +01:00
Alfredo Cardigliano
2da3bafe10 Do not run periodic scripts with pcap files unless --original-speed has been specified (fix #2957) 2019-10-25 16:18:28 +02:00
emanuele-f
e4a67824c1 Migrate slow periodic activity to alerts queue 2019-07-29 18:38:02 +02:00
emanuele-f
d8d2638d50 Avoid triggering slow script alert on discover.lua and timeseries.lua 2019-07-02 14:11:11 +02:00
emanuele-f
8a239f97f4 Trace periodic activities duration and generate an alert for long lasting ones 2019-06-21 11:41:38 +02:00
Emanuele Faranda
5f9e8b17df
Implement System interface
The system interface now holds system wide alerts and timeseries
2019-06-03 08:53:26 +00:00
emanuele-f
849d691649 Improve second activity alignment 2019-05-13 12:32:48 +02:00
emanuele-f
6f94f7b132 Add thread names for debugging 2019-02-21 11:51:57 +01:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Luca Deri
8545c78cfc Compilation fixes 2018-12-20 11:03:12 +01:00
Luca Deri
25039127e4 Win changes 2018-12-20 10:44:03 +01:00
Simone Mainardi
6c70cf5e2c Better handling of Lua states creation failures. 2018-10-22 12:26:54 +02:00
Simone Mainardi
f30e042cfc Implements data cleanup for pcap interfaces
Implements #2092
2018-10-11 18:10:30 +02:00
Emanuele Faranda
d24f998002 Fix shutdown script execution 2018-06-20 11:18:59 +02:00
Luca
29caa78eb1 Renamed Lua into LuaEngine to avoid name clashes 2018-06-13 18:17:49 +02:00
Luca Deri
4a1c5c5696 Improved ntopng shutdown time/latency 2018-06-13 00:27:38 +02:00
Simone Mainardi
9f3f56999c Reworks shutdown to allow graceful periodic activ term 2018-06-01 12:38:31 +02:00
Luca Deri
f1b50009f6 Added PERIODIC_DEBUG for debugging purposes 2018-05-29 08:11:22 +02:00
Simone Mainardi
078a0df62d Adds thread names on OS X 2018-04-13 18:35:09 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Luca Deri
0a5bb7faf0 Fixed invalid memory free 2018-03-18 22:03:01 +01:00
emanuele-f
6ebdcc33d6 Fix crashes on network discovery when capabilities are not available 2018-01-31 14:09:53 +00:00
emanuele-f
8ad7b4ce08 Quotas fixes and improvements
- Fix concurrency issue while resetting quotas
  - Fix quota serialization issues
  - Add missing total stats serialization
  - Add per-pool quotas reset
  - Fix missing string cast on cross application quotas
  - Fix quota reset after midnight when ntopng is restarted
2018-01-05 10:16:50 +01:00
Luca Deri
659e52ff47 Win fixes 2017-12-02 10:38:56 +01:00
Luca Deri
60b5e6c1db Script fixes, increased number of periodic threads 2017-11-30 10:59:16 +01:00
emanuele-f
0288d5f0f4 Fix concurrent periodic scripts logic
The isRunning check is now performed on a per-interface basis
2017-11-29 16:26:14 +01:00
Luca
e1749daa23 Reworked callback scripts to make them concurrent and thus tackle issues related to slow execution on machines with many interfaces 2017-11-23 19:03:46 +01:00
Luca
2e8be3ee97 Added check to avoid race condition on periodic scripts 2017-10-20 08:07:51 +02:00
emanuele-f
ccb4c2cf19 Fix pthread_join on invalid pthread_t 2017-10-19 12:04:24 +02:00
Luca Deri
7f8bddcff1 Implemented thread pool to be used for splitting callback scripts 2017-10-18 22:32:00 +02:00
Luca Deri
466be6de1c Added ntop.traceEvent() call 2017-10-18 09:15:02 +02:00
Simone Mainardi
22cc759e25 Scaffolding code for implementing per-interface threaded activities 2017-06-29 11:13:57 +02:00