Re: Framework change role

2017-07-05 Thread Gabriel Hartmann
* Maybe have a look at the DefaultScheduler there as well, if you're just trying to get things building and off the ground ( https://github.com/mesosphere/dcos-commons/blob/master/sdk/scheduler/src/main/java/com/mesosphere/sdk/scheduler/DefaultScheduler.java#L53 ). On Wed, Jul 5, 2017 at 9:03 AM

Re: Framework change role

2017-07-05 Thread Gabriel Hartmann
You may register in multiple roles simultaneously. Register with the MULTI_ROLE capability ( https://github.com/apache/mesos/blob/master/include/mesos/mesos.proto#L345). Our frameworks all register with a role, but never the role '*'. We get Offers from all agents that don't have statically

Re: How to detemine Mesos Capabilities?

2017-07-05 Thread Vinod Kone
When a scheduler registers or re-registers with the master, `MasterInfo` is provided as the callback. This includes the version information which can be used to determine which capabilities a Master has. This is admittedly not great; there is a ticket to introduce Master capabilities and include

Re: Dynamic reservations without a principal

2017-07-05 Thread James Peach
> On Jul 4, 2017, at 5:27 PM, Srikanth Viswanathan wrote: > > Hi folks, > > I am trying to have the Chronos framework consume dynamic reservations in > Mesos. However, it appears that Chronos is unable to do this because it does > not pass the framework principal to

Re: Framework change role

2017-07-05 Thread James Peach
> On Jul 5, 2017, at 2:39 AM, Thodoris Zois wrote: > > Ok, probably you are right but what you don’t understand is that i am a > completely newbie and i see such systems for the first time. It’s about a > university project that i am working on in order to get my bachelor

Re: Framework change role

2017-07-05 Thread Thodoris Zois
Ok, probably you are right but what you don’t understand is that i am a completely newbie and i see such systems for the first time. It’s about a university project that i am working on in order to get my bachelor degree. I don’t really know the proper way to express what i want to like you do.

Re: Framework change role

2017-07-05 Thread James Peach
> On Jul 5, 2017, at 12:54 AM, Thodoris Zois wrote: > > Hi, > > No, i would like my framework to be offered resources from agent with role > (e.g: thz) and after running the specific tasks change its role to (*) in > order to get offers from different agents, but it will

Re: Framework change role

2017-07-05 Thread Thodoris Zois
Hi, No, i would like my framework to be offered resources from agent with role (e.g: thz) and after running the specific tasks change its role to (*) in order to get offers from different agents, but it will run the same tasks because i am never terminating the scheduler driver (that’s what i