You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Hendrik Haddorp <he...@gmx.net> on 2016/10/26 08:33:56 UTC

default docker stop timeout

Hi,

what's the reason the the docker stop timeout is set to 0?

http://mesos.apache.org/documentation/latest/configuration/
--docker_stop_timeout=VALUE    The time docker daemon waits after 
stopping a container before killing that container.
                                                     This flag is 
deprecated; use task's kill policy instead. (default: 0ns)

Without changing this containers can not be gracefully stopped. Wouldn't 
a value of say 10 seconds be better?

thanks,
Hendrik

Re: default docker stop timeout

Posted by Alex Rukletsov <al...@mesosphere.com>.
Note that this flag is deprecated in Mesos 1.0.0 in favor of kill policies.

On Wed, Oct 26, 2016 at 3:36 PM, Hendrik Haddorp <he...@gmx.net>
wrote:

> right, that's what I found and it also works. I was just wondering if the
> default is a good choice.
>
> On 26.10.2016 11:45, haosdent wrote:
>
>> It is because try to keep compatible with the old behavior. Before
>> https://issues.apache.org/jira/browse/MESOS-1925, only support use
>> `docker kill` to stop docker containers. You could specific
>> --docker_stop_timeout if your want to make docker exit gracefully.
>>
>> On Wed, Oct 26, 2016 at 4:33 PM, Hendrik Haddorp <hendrik.haddorp@gmx.net
>> <ma...@gmx.net>> wrote:
>>
>>     Hi,
>>
>>     what's the reason the the docker stop timeout is set to 0?
>>
>>     http://mesos.apache.org/documentation/latest/configuration/
>>     <http://mesos.apache.org/documentation/latest/configuration/>
>>     --docker_stop_timeout=VALUE    The time docker daemon waits after
>>     stopping a container before killing that container.
>>                                                         This flag is
>>     deprecated; use task's kill policy instead. (default: 0ns)
>>
>>     Without changing this containers can not be gracefully stopped.
>>     Wouldn't a value of say 10 seconds be better?
>>
>>     thanks,
>>     Hendrik
>>
>>
>>
>>
>> --
>> Best Regards,
>> Haosdent Huang
>>
>
>

Re: default docker stop timeout

Posted by Hendrik Haddorp <he...@gmx.net>.
right, that's what I found and it also works. I was just wondering if 
the default is a good choice.

On 26.10.2016 11:45, haosdent wrote:
> It is because try to keep compatible with the old behavior. Before 
> https://issues.apache.org/jira/browse/MESOS-1925, only support use 
> `docker kill` to stop docker containers. You could specific 
> --docker_stop_timeout if your want to make docker exit gracefully.
>
> On Wed, Oct 26, 2016 at 4:33 PM, Hendrik Haddorp 
> <hendrik.haddorp@gmx.net <ma...@gmx.net>> wrote:
>
>     Hi,
>
>     what's the reason the the docker stop timeout is set to 0?
>
>     http://mesos.apache.org/documentation/latest/configuration/
>     <http://mesos.apache.org/documentation/latest/configuration/>
>     --docker_stop_timeout=VALUE    The time docker daemon waits after
>     stopping a container before killing that container.
>                                                         This flag is
>     deprecated; use task's kill policy instead. (default: 0ns)
>
>     Without changing this containers can not be gracefully stopped.
>     Wouldn't a value of say 10 seconds be better?
>
>     thanks,
>     Hendrik
>
>
>
>
> -- 
> Best Regards,
> Haosdent Huang


Re: default docker stop timeout

Posted by haosdent <ha...@gmail.com>.
It is because try to keep compatible with the old behavior. Before
https://issues.apache.org/jira/browse/MESOS-1925, only support use `docker
kill` to stop docker containers. You could specific --docker_stop_timeout
if your want to make docker exit gracefully.

On Wed, Oct 26, 2016 at 4:33 PM, Hendrik Haddorp <he...@gmx.net>
wrote:

> Hi,
>
> what's the reason the the docker stop timeout is set to 0?
>
> http://mesos.apache.org/documentation/latest/configuration/
> --docker_stop_timeout=VALUE    The time docker daemon waits after stopping
> a container before killing that container.
>                                                     This flag is
> deprecated; use task's kill policy instead. (default: 0ns)
>
> Without changing this containers can not be gracefully stopped. Wouldn't a
> value of say 10 seconds be better?
>
> thanks,
> Hendrik
>



-- 
Best Regards,
Haosdent Huang