[ 
https://issues.apache.org/jira/browse/MESOS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Klaus Ma updated MESOS-3892:
----------------------------
    Description: 
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 `Resource::RevocableInfo::Type`.
  std::list<ExecutorID> getEvictableExecutors(
      Resource::RevocableInfo::Type type);

...

  // The map of evictable executor list. If there's not enough resources,
  // the evictable executor will be terminated by slave to release resources.
  hashmap<mesos::Resource::RevocableInfo::Type, std::list<ExecutorID>>
      evictableExecutors;
...
}
{noformat}


  was:

{noformat}
class Slave {
  ...
  // How the master currently keeps track of executors.
  hashmap<FrameworkID, hashmap<ExecutorID, ExecutorInfo>> executors;
  ...
  // Returns the list of executors that are using optimistically-
  // offered, revocable resources.
  list<ExecutorID> getEvictableExecutors() { ... }
  ...
}
{noformat}


> 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 `Resource::RevocableInfo::Type`.
>   std::list<ExecutorID> getEvictableExecutors(
>       Resource::RevocableInfo::Type type);
> ...
>   // The map of evictable executor list. If there's not enough resources,
>   // the evictable executor will be terminated by slave to release resources.
>   hashmap<mesos::Resource::RevocableInfo::Type, std::list<ExecutorID>>
>       evictableExecutors;
> ...
> }
> {noformat}



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

Reply via email to