[
https://issues.apache.org/jira/browse/MYRIAD-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14963960#comment-14963960
]
Santosh Marella commented on MYRIAD-105:
----------------------------------------
Commits that went in to support "profile" parameter in flexdown and "LIKE"
operator in flexup/flexdown:
https://github.com/apache/incubator-myriad/commit/afa9ac904e11d72c544f6cd2499cf724dc62ab35
https://github.com/apache/incubator-myriad/commit/0acbdbdd4aeecf500c43f14244def727d1be52de
https://github.com/apache/incubator-myriad/commit/72f2f3f93612823d0e9658513d51946124559e2b
https://github.com/apache/incubator-myriad/commit/10b9e6a6dd1af8a1721f438901d2a631da51a8b6
https://github.com/apache/incubator-myriad/commit/b3d9f0ccb2cbffb88d64c38767be3fad23011b2e
https://github.com/apache/incubator-myriad/commit/14cddf0581f22a4addc001a1d6e15e0be387fd24
https://github.com/apache/incubator-myriad/commit/e8ec5174dd88f048643fb2535c09671bfd0aa4f8
https://github.com/apache/incubator-myriad/commit/34e3958c4134b079fbc766f4fe4d2f88b42840f4
https://github.com/apache/incubator-myriad/commit/e1841949196f62e861ac0a7e6f39a77d3f55fcdd
> Support NM placement with LIKE operator on 'hostname' and Mesos slave
> attributes
> ---------------------------------------------------------------------------------
>
> Key: MYRIAD-105
> URL: https://issues.apache.org/jira/browse/MYRIAD-105
> Project: Myriad
> Issue Type: Sub-task
> Reporter: Santosh Marella
> Assignee: Santosh Marella
> Fix For: Myriad 0.1.0
>
>
> Today Myriad exposes a REST end point for operators to expand the YARN
> cluster by X number of Node Managers. The following is an example of the API:
> {code}
> PUT /api/cluster/flexup
> {"instances": 4, "profile": "medium"}
> {code}
> The above API doesn't impose restrictions on "where" the NMs would be
> launched. Thus, Myriad freely chooses to launch a NM on ANY slave the master
> has offered the resources on, as long as the offered resources are sufficient
> to launch the NM with the specified profile.
> However, for production deployments, the operators would like to have the
> flexibility to control/optimize placement of NMs on a subset of slaves. This
> is because, the operators have the best knowledge about the type of machines
> in their datacenter, the network topology for the machines, data locality
> etc.
> The two most common usecases seem to be:
> 1. Launch NMs on slaves matching certain hostnames/racks (for e.g.{code}
> "hostname LIKE prod-[1-12].example.com", "rack_id LIKE "rack-[1-3]"{code}).
> 2. Launch NMs on slaves with certain mesos slave attributes (for e.g.
> {code}"os LIKE centos6", "hdfsDataNode LIKE true"{code}).
> These are very similar to how marathon provides task placement via
> [constraints]
> (https://github.com/mesosphere/marathon/blob/master/docs/docs/constraints.md)
> in its REST API.
> Myriad can start small, perhaps with just LIKE operator.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)