mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow dispatcher service master timeout to be set (#15161)
and increase default to 20s from 10s 20s should still be fast enough to prevent gaps, but larger installs can take longer than 10s (or even 20s) to do dispatch work.
This commit is contained in:
@@ -115,6 +115,9 @@ class ServiceConfig(DBConfig):
|
||||
)
|
||||
|
||||
# backward compatible options
|
||||
self.update_frequency = config.get(
|
||||
"service_master_timeout", ServiceConfig.master_timeout
|
||||
)
|
||||
self.poller.workers = config.get(
|
||||
"poller_service_workers", ServiceConfig.poller.workers
|
||||
)
|
||||
|
||||
@@ -1312,6 +1312,10 @@ return [
|
||||
'description' => 'Enable Polling',
|
||||
'help' => 'Enable poller workers. Sets the default value for all nodes.',
|
||||
],
|
||||
'service_master_timeout' => [
|
||||
'description' => 'Master Dispatcher Timeout',
|
||||
'help' => 'The amount of time before the master lock expires. If master goes away, it will take this much time for another node to take over. However if it takes longer than the timeout to dispatch the work, you will have multiple masters',
|
||||
],
|
||||
'service_poller_workers' => [
|
||||
'description' => 'Poller Workers',
|
||||
'help' => 'Amount of poller workers to spawn. Sets the default value for all nodes.',
|
||||
|
||||
@@ -5390,11 +5390,19 @@
|
||||
"CRITICAL": "CRITICAL"
|
||||
}
|
||||
},
|
||||
"service_master_timeout": {
|
||||
"default": 20,
|
||||
"group": "poller",
|
||||
"section": "distributed",
|
||||
"order": 25,
|
||||
"type": "integer",
|
||||
"units": "seconds"
|
||||
},
|
||||
"service_watchdog_enabled": {
|
||||
"default": false,
|
||||
"group": "poller",
|
||||
"section": "distributed",
|
||||
"order": 25,
|
||||
"order": 26,
|
||||
"type": "boolean"
|
||||
},
|
||||
"sfdp": {
|
||||
|
||||
Reference in New Issue
Block a user