Simple example scenario:

If my Framework/Scheduler gets an Offer for say 2 cpu and 10G (from a
single Slave/OfferID) and let's say I have two job requests that each need
1 cpu and 5G each. Now, can I make both requests against the same Offer
(same OfferID) or can I only make one request even though there are enough
resources for the second job?

As I am looping through the Offers and comparing them to my requests, how
should I keep track that my first request already "consumed" and
(launchedTask) resources of 1cpu and 5G on this OfferID (should I update
the Offer/Resource to reflect the change as I loop to the next request in
my list)? Or can I only make one request per OfferID and just wait to
presented with the left over resources on the next time Mesos callbacks?

Basically my question is if I have not consumed the full resources for that
Offer, do I have to wait for the next time Mesos presents me with the rest
of the Offer resource in order to launch my second request or do I track
all this on my Framework side as I am matching Offers to Requests?

Thanks,
Sam Taha

http://www.grandlogic.com

Reply via email to