[
https://issues.apache.org/jira/browse/MESOS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Klaus Ma updated MESOS-3892:
----------------------------
Assignee: (was: Klaus Ma)
> 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
> 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)