[
https://issues.apache.org/jira/browse/MESOS-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guangya Liu updated MESOS-3955:
-------------------------------
Description:
Stateless are {{No Persistent Volume}} resources, it’s used by allocator to
calculate optimised resources (reserved().stateless() -allocated()).
{code}
class Resources {
...
// Tests if the given Resource object has no stateful elements.
static bool isStateless(const Resource& resource);
...
// Returns the resources that do not have stateful elements.
Resources stateless() const;
...
}
{code}
was:
Stateless are {{No Persistent Volume}} resources, it’s used by allocator to
calculate optimised resources (stateless - unreserved - reserved(role)).
{code}
class Resources {
...
// Tests if the given Resource object has no stateful elements.
static bool isStateless(const Resource& resource);
...
// Returns the resources that do not have stateful elements.
Resources stateless() const;
...
}
{code}
> Add helper function to get stateless resources.
> -----------------------------------------------
>
> Key: MESOS-3955
> URL: https://issues.apache.org/jira/browse/MESOS-3955
> Project: Mesos
> Issue Type: Bug
> Reporter: Guangya Liu
> Assignee: Guangya Liu
>
> Stateless are {{No Persistent Volume}} resources, it’s used by allocator to
> calculate optimised resources (reserved().stateless() -allocated()).
> {code}
> class Resources {
> ...
> // Tests if the given Resource object has no stateful elements.
> static bool isStateless(const Resource& resource);
> ...
> // Returns the resources that do not have stateful elements.
> Resources stateless() const;
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)