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

Klaus Ma edited comment on MESOS-3892 at 1/3/16 2:38 AM:
---------------------------------------------------------

https://reviews.apache.org/r/41855/
https://reviews.apache.org/r/41856/
https://reviews.apache.org/r/41857/
https://reviews.apache.org/r/41850/


was (Author: klaus1982):
RR: https://reviews.apache.org/r/41345/

> Add a helper function to the Agent to retrieve the list of executors that are 
> using optimistically offered, revocable resources.
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-3892
>                 URL: https://issues.apache.org/jira/browse/MESOS-3892
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Artem Harutyunyan
>            Assignee: Klaus Ma
>              Labels: mesosphere
>
> In the agent, add a helper function to get the list of the exeuctor using 
> ALLOCATION_SLACK.
> It's short term solution which is different the design document, because 
> master did not have executor for command line executor. Send evicatble 
> executors from master to slave will addess in post-MVP after MESOS-1718.
> {noformat}
> class Slave {
> ...
>   // If the executor used revocable resources, add it into 
> `evictableExecutors`
>   // list.
>   void addEvictableExecutor(Executor* executor);
>   // If the executor used revocable resources, remove it from
>   // `evictableExecutors` list.
>   void removeEvictableExecutor(Executor* executor);
>   // Get evictable executor ID list by `request resources`. The return value 
> is `Result<list<Executor*>>`:
>   //  - if `isError()`, there's not enough resources to launch tasks
>   //  - if `isNone()`, no evictable exectuors need to be terminated
>   //  - if !`isNone()`, the list of executors that need to be evicted for 
> resources
>   Result<std::list<Executor*>> getEvictableExecutors(const Resources& 
> request);
> ...
>   // The map of evictable executor list. If there's not enough resources,
>   // the evictable executor will be terminated by slave to release resources.
>   hashmap<FrameworkID, std::set<ExecutorID>> evictableExecutors;
> ...
> }
> {noformat}



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

Reply via email to