-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve worker load threshold detection
With 03b301d we have a worker load limit which helps but there can still be cases like happened on a PowerNV machine with the load going way above the configured load limit. The reason was that when the worker was idle within a short time frame of roughly one minute multiple jobs were assigned to individual worker instances on the machine. As we only looked at load15 which was still low at that time all jobs were picked up by the machine leading to overload only about one minute later. Further reducing the load limit would not realistically prevent this situation but only delay until load15 decays sufficiently enough so that new jobs will be picked up again. Instead this commit changes the evaluation to look at all three system load values, load1, load5 and load15, but considering the load evolution over time to react quickly enough if the load rises but still accept a falling edge to allow to pick up jobs again when the load decays. Related progress issue: https://progress.opensuse.org/issues/168244
- Loading branch information
Showing
2 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters