[
https://issues.apache.org/jira/browse/MESOS-6821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruce Merry updated MESOS-6821:
-------------------------------
Description: The agent code for auto-detecting resources (cpus, mem, disk)
assumes that, say, "cpus" has been specified if the string "cpus" appears
anywhere in the resource string (see
[here|https://github.com/apache/mesos/blob/1.1.0/src/slave/containerizer/containerizer.cpp#L79]).
This means that using a custom resource called, say, "members", will disable
auto-detection of the "mem" resource. (was: The agent code for auto-detecting
resources (cpus, mem, disk) assumes that, say, "cpus" has been specified if the
string "cpus" appears anywhere in the resource string (see
[here](https://github.com/apache/mesos/blob/1.1.0/src/slave/containerizer/containerizer.cpp#L79)).
This means that using a custom resource called, say, "members", will disable
auto-detection of the "mem" resource.)
> Override of automatic resources should be by exact match not substring
> ----------------------------------------------------------------------
>
> Key: MESOS-6821
> URL: https://issues.apache.org/jira/browse/MESOS-6821
> Project: Mesos
> Issue Type: Improvement
> Components: agent
> Affects Versions: 1.1.0
> Environment: Ubuntu 16.04 x86_64
> Reporter: Bruce Merry
> Priority: Minor
> Labels: newbie
>
> The agent code for auto-detecting resources (cpus, mem, disk) assumes that,
> say, "cpus" has been specified if the string "cpus" appears anywhere in the
> resource string (see
> [here|https://github.com/apache/mesos/blob/1.1.0/src/slave/containerizer/containerizer.cpp#L79]).
> This means that using a custom resource called, say, "members", will disable
> auto-detection of the "mem" resource.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)