Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1837

Improve implicit task history pruning

    XMLWordPrintableJSON

Details

    • Task
    • Status: Reviewable
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Current implementation of TaskHistoryPrunner registers all inactive tasks upon terminal state change for pruning. TaskHistoryPrunner::registerInactiveTask() uses a delay executor to schedule the process of pruning _task_s. However, we have noticed most of pruning takes place after scheduler recovers from a fail-over.

      Modify TaskHistoryPruner to a design similar to JobUpdateHistoryPruner:

      1. Instead of registering delay executor's upon terminal task state transitions, have it wake up on preconfigured intervals, find all terminal state tasks that meet pruning criteria and delete them.
      2. Make the initial task history pruning delay configurable so that it does not hamper scheduler upon start.

      Attachments

        Issue Links

          Activity

            People

              mnurolahzade Mehrdad Nurolahzade
              rezam Reza Motamedi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: