[
https://issues.apache.org/jira/browse/SPARK-15155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272227#comment-15272227
]
Chris Heller commented on SPARK-15155:
--------------------------------------
I have started work on an implementation targeting the master branch of spark,
and would like to eventually back port the fix, since its useful in all
versions that support {{spark.mesos.role}}.
https://github.com/hellertime/spark/tree/SPARK-15155
> Selectively accept Mesos resources by role
> ------------------------------------------
>
> Key: SPARK-15155
> URL: https://issues.apache.org/jira/browse/SPARK-15155
> Project: Spark
> Issue Type: Improvement
> Components: Mesos
> Affects Versions: 1.5.0, 1.6.0
> Reporter: Chris Heller
>
> SPARK-6284 added support for Mesos roles, but the framework will still accept
> resources from both the reserved role specified in {{spark.mesos.role}} and
> the default role {{*}}.
> I'd like to propose the addition of a new property
> {{spark.mesos.acceptedResourceRoles}} which would be a comma-delimited list
> of roles that the framework will accept resources from.
> This is similar to {{spark.mesos.constraints}}, except that constraints look
> at the attributes of an offer, and this will look at the role of a resource.
> In the default case {{spark.mesos.acceptedResourceRoles}} will be set to
> {{*[,spark.mesos.role]}} giving the exact same behavior to the framework if
> no value is specified in the property.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]