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

find and kill hung cf-agent processes

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Sometimes cf-agent hangs due to external or internal issues. cf-execd should have a way to remember the running cf-agent PID (e.g. by persisting a class running_cf_agent_PID for 30 minutes) and if an agent is running for more than 30 minutes, send a warning or even kill the agent (this could be an arbitrary shell command to give the user a chance to hook into other tools or processes). Putting this in cf-execd makes it less likely that it will hang on the same things that hung the cf-agent.

      I think this would make hung agents less frequent and easier to catch when they happen (early detection really helps in debugging these issues).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jiraadmin Old User (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel