Yes. You can definitely launch multiple tasks within the same offer (launchTasks() takes multiple TaskInfos) as long as the sum total of resources required by the tasks (and their executors) can fit in the offered resources. In fact, if you are hoarding offers (not recommended if you are running multiple frameworks), you could use multiple offers in launchTasks() as long as the offers belong to the same slave.
On Mon, Jul 14, 2014 at 8:53 AM, Whitney Sorenson <[email protected]> wrote: > During some recent testing, I found it could take quite a few offer cycles > in order to launch a high number of small tasks. > > Unfortunately, my reading of the framework + driver API didn't yield a > definitive answer. > > So, I wrote the code to calculate the remaining resources in an offer, and > tried it and it seems to work (the tasks launch and run on slave); however, > I do see warning messages: > > W0714 16:45:40.227408 400543744 sched.cpp:901] Attempting to launch task > test-sleep-101-1405352740168-2-localhost-DEFAULT with an unknown offer > 20140714-163828-16777343-5050-53164-67 > > -Whitney > >

