You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Chandni Singh (JIRA)" <ji...@apache.org> on 2018/08/23 20:53:00 UTC
[jira] [Created] (YARN-8706) DelayedProcessKiller is executed for
Docker containers even though docker stop sends a KILL signal after the
specified grace period
Chandni Singh created YARN-8706:
-----------------------------------
Summary: DelayedProcessKiller is executed for Docker containers even though docker stop sends a KILL signal after the specified grace period
Key: YARN-8706
URL: https://issues.apache.org/jira/browse/YARN-8706
Project: Hadoop YARN
Issue Type: Sub-task
Reporter: Chandni Singh
Assignee: Chandni Singh
{{DockerStopCommand}} adds a grace period of 10 seconds.
10 seconds is also the default grace time use by docker stop
[https://docs.docker.com/engine/reference/commandline/stop/]
Documentation of the docker stop:
{quote}the main process inside the container will receive {{SIGTERM}}, and after a grace period, {{SIGKILL}}.
{quote}
There is a {{DelayedProcessKiller}} in {{ContainerExcecutor}} which executes for all containers after a delay when {{sleepDelayBeforeSigKill>0}}. By default this is set to {{250 milliseconds}} and so irrespective of the container type, it will get always get executed.
For a docker container, {{docker stop}} takes care of sending a {{SIGKILL}} after the grace period, so having {{DelayedProcessKiller}} seems redundant.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org