mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Set maximum cache duration for service daemons to the right value (#759)
* Set maximum cache duration for service daemons to the right value This commit sets the maximum duration for cached data for service daemons to the proper amount. Previously it was multiplied by 60, probably a typo from a time when the assigned value was in minutes and not in seconds directly. Therefore the value was 60 times to high which leads to a massive amount of cached data which drags down the performance significantly. * Updates changelog --------- Co-authored-by: Lord Hepipud <contact@lordhepipud.de>
This commit is contained in:
parent
0fc5d5e4c9
commit
5c1f477926
2 changed files with 7 additions and 1 deletions
|
|
@ -7,6 +7,12 @@ documentation before upgrading to a new release.
|
|||
|
||||
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
|
||||
|
||||
## 1.13.0 (2025-01-30)
|
||||
|
||||
### Bugfixes
|
||||
|
||||
* [#759](https://github.com/Icinga/icinga-powershell-framework/pull/759) Fixes maximum cache duration for service daemons to the right value
|
||||
|
||||
## 1.13.0 Beta-2 (2024-09-19)
|
||||
|
||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/36)
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ function New-IcingaServiceCheckDaemonEnvironment()
|
|||
}
|
||||
}
|
||||
|
||||
$Global:Icinga.Private.Daemons.ServiceCheck.MaxTimeInSeconds = $Global:Icinga.Private.Daemons.ServiceCheck.MaxTime * 60;
|
||||
$Global:Icinga.Private.Daemons.ServiceCheck.MaxTimeInSeconds = $Global:Icinga.Private.Daemons.ServiceCheck.MaxTime;
|
||||
|
||||
if ($Global:Icinga.Private.Scheduler.CheckData.ContainsKey($CheckCommand) -eq $FALSE) {
|
||||
$Global:Icinga.Private.Scheduler.CheckData.Add(
|
||||
|
|
|
|||
Loading…
Reference in a new issue