-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check events: More accurately determine if auto-rescheduling is needed.
Previously we were looking at timed_event.run_time which has second precision. This would cause rescheduling to be run only when events occured in the same second. By looking at squeue_event.when we get the actual run times used by the event scheduling priority queue with microsecond precision.
- Loading branch information
Showing
1 changed file
with
17 additions
and
27 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
a647000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a general question about rescheduling.

Are rescheduled events a FORCED reschedule? If so, they would only be rescheduled once during auto_rescheduling:
(events.c near line 1501)
If they are not FORCED, I am thinking they could potentially be rescheduled indefinitely as long as the load remains high.
This appears to be true because auto_rescheduling_window is larger than auto_rescheduling_interval by default.
More info: https://support.nagios.com/forum/viewtopic.php?f=7&t=65475
Issue #893