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

DockerLinuxContainer can't limit the cpu usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.8.0
    • None
    • nodemanager
    • None
    • CentOS7.1

    • Patch, Important

    Description

      When I use DockerLinuxContainer, I found that the function of limiting cpu usage doesn't make effect. Because DockerLinuxContainer regard the exitCode of "docker inpsect" as pid. But When I got this pid, the command of "launch.sh" has started, then we can't add the child process or threads into the cgroup, so the restrictions of cpu usage doesn't make effect。

      Attachments

        Issue Links

          Activity

            People

              shanekumpf@gmail.com Shane Kumpf
              zhengchenyu zhengchenyu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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