mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Optimized pools lock/unlock removing redis with a lock in ntopng
This commit is contained in:
parent
a9f7c69fab
commit
be90bf50df
11 changed files with 150 additions and 32 deletions
|
|
@ -8,8 +8,6 @@ package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package
|
|||
require "lua_utils"
|
||||
local graph_utils = require "graph_utils"
|
||||
local alert_utils = require "alert_utils"
|
||||
local host_pools = require "host_pools"
|
||||
local host_pools_instance = host_pools:create()
|
||||
local callback_utils = require "callback_utils"
|
||||
local ts_utils = require "ts_utils_core"
|
||||
local format_utils = require "format_utils"
|
||||
|
|
@ -921,7 +919,10 @@ function ts_dump.run_5min_dump(_ifname, ifstats, config, when, verbose)
|
|||
|
||||
-- Save Host Pools stats every 5 minutes
|
||||
if((ntop.isPro()) and (tostring(config.host_pools_rrd_creation) == "1")) then
|
||||
host_pools_instance:updateRRDs(ifstats.id, true --[[ also dump nDPI data ]], verbose)
|
||||
local host_pools = require "host_pools"
|
||||
local host_pools_instance = host_pools:create()
|
||||
|
||||
host_pools_instance:updateRRDs(ifstats.id, true --[[ also dump nDPI data ]], verbose)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue