mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharma Podila <spod...@netflix.com>
Subject Re: How to kill a task gracefully?
Date Tue, 22 Sep 2015 16:49:56 GMT
I believe this depends on the executor being used. A kill request to mesos
driver from the framework scheduler is delivered to the executor. The kill
request by itself is not a guarantee that the task will be killed, until
honored by the executor. So, it is possible that the executor can be
written to achieve the "graceful" behavior you desire. The resources
assigned to the task aren't reclaimed until the task is reported
killed/terminated by the executor. It is possible, for example, to perform
"clean up" or "checkpointing" as part of a task kill request. But, that can
be tricky in terms of delaying the actual kill logistics, and therefore
making the resources available.

If your question regarding a specific executor you are already using?

In case you are referring to resource oversubscription feature recently
introduced, those kills are determined by an entity local to the Mesos
agent node. "Grace" would be majorly influenced by that entity and less by
the executor.


On Tue, Sep 22, 2015 at 9:39 AM, Jerry Lam <chilinglam@gmail.com> wrote:

> Hi mesos users,
>
> anyone knows how to kill a task running in Mesos gracefully? Thanks!
>
>
> Best Regards,
>
> Jerry
>

Mime
View raw message