It looks like default-executor have not yet handle
`--executor_shutdown_grace_period`。

On Mon, Jan 16, 2017 at 7:41 PM, Tomek Janiszewski <[email protected]>
wrote:

> Hi
>
> I tried to use grace period with default Mesos executor. I assumed it
> works as follow:
>
>    1. Start command: sh -c "command ..."
>    2. Sent SIGSTOP to process tree: sh, command
>    3. Sent SIGTERM to process tree: sh, command
>    4. Wait for processes to finish or grace period to elapse
>    5. sh finish while command could be still running and attached to init
>    6. Sent SIGKILL to process tree: command
>
> I notice that SIGKILL is not sent and executor finished when sh returns.
> When Mesos is running with POSIX contenerizer this leads command to live
> forever (if it ignores SIGTERM). When contenerizer is used command is
> killed when it's container is destroyed.
>
> Is this desired behavior? How to use grace period with default executor?
>
> Thanks
> Tomek
>



-- 
Best Regards,
Haosdent Huang

Reply via email to