Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-795

Splay time does not work as expected when the agent run time is significant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-execd
    • Labels:
      None

      Description

      cf-execd wakes up every minute to check if it is within the scheduled time - meaning exactly at Min00, Min05, Min10, Min15, etc...
      When it wakes and and is on the scheduled time, it will sleep from zero to "splaytime" seconds.
      If the splaytime sleeps over the scheduled time, it will not run.

      Example:

      Splaytime is 280 seconds (note: 360 seconds is 5 minutes)
      cf-execd wakes up at Min00
      cf-execd sleeps 280 seconds
      runs failsafe and regular run. Duration 90 seconds. Min00 + 280 sleep seconds +90 run seconds = Min06 (370 seconds later)
      cf-execd wakes up at Min05 which is not within schedule.
      cf-execd waits until Min10 before it will run again, so the whole Min05 schedule is skipped.

      The solution may be to either manually or automatically determine additional run time in advance and adjust the chosen splay time - reduce it by the cumulative delays that would be incurred by an agent run.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              jiraadmin Old User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: