diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 71e679bfef..34a4819622 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -110,6 +110,9 @@ docker_restart_policy_retry: "10" docker_configure_for_zun: "no" docker_zun_options: -H fd:// -H tcp://{{ api_interface_address }}:2375 --cluster-store=etcd://{% for host in groups['etcd'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ hostvars[host]['etcd_client_port'] }}{% if not loop.last %},{% endif %}{% endfor %} +# Timeout after Docker sends SIGTERM before sending SIGKILL. +docker_graceful_timeout: 60 + # Common options used throughout Docker docker_common_options: auth_email: "{{ docker_registry_email }}" @@ -120,6 +123,7 @@ docker_common_options: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" restart_policy: "{{ docker_restart_policy }}" restart_retries: "{{ docker_restart_policy_retry }}" + graceful_timeout: "{{ docker_graceful_timeout }}" #################### # Dimensions options diff --git a/releasenotes/notes/docker-stop-timeout-c8089f6bf92d6c28.yaml b/releasenotes/notes/docker-stop-timeout-c8089f6bf92d6c28.yaml new file mode 100644 index 0000000000..8673eee759 --- /dev/null +++ b/releasenotes/notes/docker-stop-timeout-c8089f6bf92d6c28.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Increases the default value of ``docker_graceful_timeout`` from 10 to 60. + This sets the time that docker will wait for a container to gracefully stop + before issuing a KILL signal.