Aurora imposes a cap on how long it will tolerate a task in a 'transient'
state.  If aurora doesn't hear back about a transient task after this
delay, it internally marks it as LOST and uses its state machine to handle
side-effects and follow-up actions.

Hopefully you'll get to see this soon, as we're preparing to release our
code very soon as a part of our proposal for apache incubation [1]!


-=Bill

[1]
http://apache-incubator-general.996316.n3.nabble.com/PROPOSAL-Aurora-for-Incubation-td36288.html

-=Bill


On Wed, Sep 18, 2013 at 10:38 AM, Bill Farner <[email protected]> wrote:

> Aurora imposes a cap on how long it will tolerate a task in a 'transient'
> state.  If aurora doesn't hear back about a transient task after this
> delay, it internally marks it as LOST and uses its state machine to handle
> side-effects and follow-up actions.
>
> Hopefully you'll get to see this soon, as we're preparing to release our
> code very soon as a part of our proposal for apache incubation [1]!
>
>
> -=Bill
>
> [1]
> http://apache-incubator-general.996316.n3.nabble.com/PROPOSAL-Aurora-for-Incubation-td36288.html
>
> On Wed, Sep 18, 2013 at 10:27 AM, Vinod Kone <[email protected]> wrote:
>
>> 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