Ah, I see it now :). So I just basically program my scheduler to accept offers that contain the appropriate attributes. Thanks so much!
On Saturday, July 23, 2016 01:11:01 PM Tomek Janiszewski wrote: > To run tasks on Mesos you need scheduler/framework > http://mesos.apache.org/documentation/latest/architecture/ You can write > one on your own or use some existing like Marathon depending on your > needs. > Both HTTP API and native API supports constraints but at offer accepting > level. > > sob., 23.07.2016, 15:04 użytkownik Mark Hammons < > > [email protected]> napisał: > > Should I be using marathon on top of my Mesos? Or just the raw mesos http > > apis? The java api for mesos does not seem to have the ability to use > > constraints. > > > > On Saturday, July 23, 2016 12:44:10 PM Tomek Janiszewski wrote: > > > You can define roles that allows you to reserve resources for specific > > > > > > frameworks http://mesos.apache.org/documentation/latest/roles/ > > > > > > You can also mark agents with attributes. Then framework could filter > > > > > > offers based on that attributes > > > > > > http://mesos.apache.org/documentation/latest/attributes-resources/ > > > > > > What framework are you using? If marathon then attributes will be > > > easiest > > > > > > option. After adding agent attributes, add constraints to you app > > > > > > definition https://mesosphere.github.io/marathon/docs/constraints.html > > > > > > > > > > > > sob., 23.07.2016, 14:37 użytkownik Mark Hammons < > > > > > > [email protected]> napisał: > > > > I'm sorry, I'm still fairly new to mesos, so I'm not sure what this > > > > means > > > > > > or how to do that. Could you link to some documentation or an example > > > > that > > > > > > discusses this in more detail? > > > > > > > > On Saturday, July 23, 2016 12:32:52 PM Tomek Janiszewski wrote: > > > > > You can mark all slave resources as cuda role or add attribute to > > > > > run > > > > > > > > tasks > > > > > > > > > on this agent. > > > > > > > > -- > > > > > > > > > > > > > > > > Mark Hammons - +33 06 03 69 56 56 > > > > > > > > > > > > > > > > Research Engineer @ BioEmergences <http://bioemergences.iscpif.fr> > > > > > > > > > > > > > > > > Lab Phone: 01 69 82 34 19 > > > > -- > > > > Mark Hammons - +33 06 03 69 56 56 > > > > Research Engineer @ BioEmergences <http://bioemergences.iscpif.fr> > > > > Lab Phone: 01 69 82 34 19-- Mark Hammons - +33 06 03 69 56 56 Research Engineer @ BioEmergences[1] Lab Phone: 01 69 82 34 19 -------- [1] bioemergences.iscpif.fr
signature.asc
Description: This is a digitally signed message part.

