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:
Tony Murray
2023-07-25 11:27:34 -05:00
committed by GitHub
parent 5172e63d39
commit a2f906c3f4
3 changed files with 16 additions and 1 deletions

View File

@@ -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
)

View File

@@ -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.',

View File

@@ -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": {