[
https://issues.apache.org/jira/browse/MESOS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Klaus Ma updated MESOS-3892:
----------------------------
Description:
{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}
was:
The Mesos master already keeps track of all executors running on a given agent.
We may wish to add a helper to retrieve the evictable executors:
* The evictable executor will hash by role; only Lender Framework/Role can
reclaim its resources back
* The RevocableInfo::type of executor & task must be consistent (MESOS-XXXX)
{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
>
> {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}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)