hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhengchenyu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5827) DockerLinuxContainer can't limit the cpu usage
Date Sun, 20 Nov 2016 11:08:58 GMT

    [ https://issues.apache.org/jira/browse/YARN-5827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15680979#comment-15680979
] 

zhengchenyu commented on YARN-5827:
-----------------------------------

Thanks! I tried Yarn-4553! I think that's a reasonable way to solve this problem! But my docker
only supports the name like "xxx.slice" as the parameter of "--cgroup-parent", and yarn will
set the parameter of "--cgroup-parent" like "--cgroup-parent=/hadoop-yarn/container_1479368276135_0020_02_000001".
So my YarnChild will report the following error:
Exception message: docker: Error response from daemon: cgroup-parent for systemd cgroup should
be a valid slice named as "xxx.slice".

notes: docker version is 
Client:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-common-1.10.3-46.el7.centos.14.x86_64
 Go version:      go1.6.3
 Git commit:      cb079f6-unsupported
 Built:           Fri Sep 16 13:24:25 2016
 OS/Arch:         linux/amd64

Server:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-common-1.10.3-46.el7.centos.14.x86_64
 Go version:      go1.6.3
 Git commit:      cb079f6-unsupported
 Built:           Fri Sep 16 13:24:25 2016
 OS/Arch:         linux/amd64


> DockerLinuxContainer can't limit the cpu usage
> ----------------------------------------------
>
>                 Key: YARN-5827
>                 URL: https://issues.apache.org/jira/browse/YARN-5827
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.8.0
>         Environment: CentOS7.1
>            Reporter: zhengchenyu
>   Original Estimate: 240h
>  Remaining Estimate: 240h
>
> 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。



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message