Hey Bernerd,

All great questions and observations. Mesos currently doesn't guarantee
reliable delivery of messages. So the onus is on the frameworks to do the
retries. That said, as you correctly observed, there are race conditions
where a framework might get conflicting status updates when it retries.
I'll let someone from Twitter framework (Aurora) team answer how they deal
with these issues.

>From mesos side we plan to implement a stateful scheduler driver which
would help answer some of these questions more easily. We are in the
process of roadmapping features for the next quarter, so if this is
something that is important to you please let us know and we will
prioritize accordingly. Maybe you can send in some patches too :)

Cheers,



On Wed, Sep 18, 2013 at 9:12 AM, Bernerd Schaefer <[email protected]>wrote:

> Thanks, Tobi
>
> In Marathon's case there are a couple of things in place to ensure
>> reliable launching.
>> Marathon tracks tasks via the Mesos state abstraction (backed by ZK) so
>> it can recover after getting disconnected.
>> It only considers a task running after it received a TASK_RUNNING from
>> Mesos:
>>
>> https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/marathon/MarathonScheduler.scala#L107-L109
>>
>
> Is there more information about the state abstraction? Also, unless I'm
> missing something, the flow is: mark task as starting, call launchTasks,
> wait for confirmation of running. So if the launchTasks message is not
> delivered, the task will stay in the "starting" state, even though Mesos
> doesn't know about it. Is there another component that re-queues tasks that
> seem to be stuck in starting?
>
> Bernerd
>
>

Reply via email to