This can't be achieved with the offer model as it stands today, unless you have only a single framework in the cluster. There is no visibility into what other resources are available on the agent which weren't offered to your framework.
However, for the short term, you can use a hack to put in custom attributes that indicate the total amount of resources available on the agent. So, when you get the offer, you can verify if you got the offer for the entire agent's resources. Mesos-4138 is interesting, as Jeff pointed out. On Mon, May 2, 2016 at 11:07 AM, haosdent <[email protected]> wrote: > It sounds like you could reserve resources by a role in that machine. And > then your framework launched by that role. > > On Tue, May 3, 2016 at 1:57 AM, Christoph Heer <[email protected]> > wrote: > >> Hi everyone, >> >> sometimes in my Mesos use-case it's required to ensure that my own >> framework is able to schedule a task which consume all resources of a >> machine. >> >> Do you have some advises how to implement such a scheduler. Is there >> another scheduler which already implemented something similar? >> >> Thank you and best regards >> Christoph >> > > > > -- > Best Regards, > Haosdent Huang >

