reduce snmp poller concurrency
This commit is contained in:
parent
712aa63b04
commit
617e8c5414
1 changed files with 3 additions and 3 deletions
|
|
@ -232,7 +232,7 @@ defmodule Towerops.Snmp.PollerWorker do
|
|||
result = poll_sensor_value(sensor, client_opts)
|
||||
handle_sensor_poll_result(sensor, result, timestamp)
|
||||
end,
|
||||
max_concurrency: 10,
|
||||
max_concurrency: 2,
|
||||
timeout: 10_000,
|
||||
on_timeout: :kill_task
|
||||
)
|
||||
|
|
@ -372,7 +372,7 @@ defmodule Towerops.Snmp.PollerWorker do
|
|||
|
||||
Snmp.create_interface_stat(stats)
|
||||
end,
|
||||
max_concurrency: 10,
|
||||
max_concurrency: 2,
|
||||
timeout: 10_000,
|
||||
on_timeout: :kill_task
|
||||
)
|
||||
|
|
@ -392,7 +392,7 @@ defmodule Towerops.Snmp.PollerWorker do
|
|||
Logger.debug("Failed to get interface attributes for #{interface.if_name}: #{inspect(reason)}")
|
||||
end
|
||||
end,
|
||||
max_concurrency: 10,
|
||||
max_concurrency: 2,
|
||||
timeout: 10_000,
|
||||
on_timeout: :kill_task
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue