Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5972

Support Pausing/Freezing of opportunistic containers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      YARN-2877 introduced OPPORTUNISTIC containers, and YARN-5216 proposes to add capability to customize how OPPORTUNISTIC containers get preempted.

      In this JIRA we propose introducing a PAUSED container state.
      Instead of preempting a running container, the container can be moved to a PAUSED state, where it remains until resources get freed up on the node then the preempted container can resume to the running state.

      Note that process freezing this is already supported by 'cgroups freezer' which is used internally by the docker pause functionality. Windows also has OS level support of a similar nature.

      One scenario where this capability is useful is work preservation. How preemption is done, and whether the container supports it, is implementation specific.

      For instance, if the container is a virtual machine, then preempt call would pause the VM and resume would restore it back to the running state.
      If the container executor / runtime doesn't support preemption, then preempt would default to killing the container.

      Attachments

        1. container-pause-resume.pdf
          315 kB
          Arun Suresh

        Activity

          People

            hrsharma Hitesh Sharma
            hrsharma Hitesh Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified