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

Miklos Szegedi commented on YARN-7715:
--------------------------------------

I would separate {{preStart}} into two functions, {{preStart}} and {{apply}}. 
Both would get the container as a parameter. {{preStart}} would create the 
cgroup and call {{apply}}. {{apply}} would set the cgroup settings based on the 
current state of the cgroup.

> Update CPU and Memory cgroups params on container update as well.
> -----------------------------------------------------------------
>
>                 Key: YARN-7715
>                 URL: https://issues.apache.org/jira/browse/YARN-7715
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Arun Suresh
>
> In YARN-6673 and YARN-6674, the cgroups resource handlers update the cgroups 
> params for the containers, based on opportunistic or guaranteed, in the 
> *preStart* method.
> Now that YARN-5085 is in, Container executionType (as well as the cpu, memory 
> and any other resources) can be updated after the container has started. This 
> means we need the ability to change cgroups params after container start.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to