Commit ebc8e406 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39691 from yujuhong/bump_timeout

Automatic merge from submit-queue (batch tested with PRs 39694, 39383, 39651, 39691, 39497) Bump container-linux and gci timeout for docker health check The command `docker ps` can take longer time to respond under heavy load or when encountering some known issues. In these cases, the containers are running fine, so aggressive health check could cause serious disruption. Bump the timeout to 60s to be consistent with the debian-based containerVM. This addresses #38588
parents 95968754 4e87973a
...@@ -26,7 +26,7 @@ set -o pipefail ...@@ -26,7 +26,7 @@ set -o pipefail
# automatically restart the process. # automatically restart the process.
function docker_monitoring { function docker_monitoring {
while [ 1 ]; do while [ 1 ]; do
if ! timeout 10 docker ps > /dev/null; then if ! timeout 60 docker ps > /dev/null; then
echo "Docker daemon failed!" echo "Docker daemon failed!"
pkill docker pkill docker
# Wait for a while, as we don't want to kill it again before it is really up. # Wait for a while, as we don't want to kill it again before it is really up.
......
...@@ -26,7 +26,7 @@ set -o pipefail ...@@ -26,7 +26,7 @@ set -o pipefail
# automatically restart the process. # automatically restart the process.
function docker_monitoring { function docker_monitoring {
while [ 1 ]; do while [ 1 ]; do
if ! timeout 10 docker ps > /dev/null; then if ! timeout 60 docker ps > /dev/null; then
echo "Docker daemon failed!" echo "Docker daemon failed!"
pkill docker pkill docker
# Wait for a while, as we don't want to kill it again before it is really up. # Wait for a while, as we don't want to kill it again before it is really up.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment