Skip to content

Commit

Permalink
set_docker_options_non_ubuntu: Disable aufs module which is no longer…
Browse files Browse the repository at this point in the history
… used by Docker

AUFSUmountHung kernel error slows down the node and caused timeout for other processes. Docker now prefers overlay2 to aufs and containerd prefers overlay so it is safe to disable AUFS.

Replicate of kubernetes#103831

Change-Id: I1b5dc48c50cb0553308e21f3c92e00386f814132
Bug: 193674321
  • Loading branch information
lizhuqi authored and hoskeri committed Jul 23, 2024
1 parent fd2a729 commit 406443e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gke/cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,13 @@ EOF
fi
}

function disable_aufs() {
# disable aufs module if aufs is loaded
if lsmod | grep "aufs" &> /dev/null ; then
sudo modprobe -r aufs
fi
}

function detect_mtu {
local MTU=1460
if [[ "${DETECT_MTU:-}" == "true" ]];then
Expand Down Expand Up @@ -1595,6 +1602,7 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\",
docker_opts+="--registry-mirror=${DOCKER_REGISTRY_MIRROR_URL} "
fi

disable_aufs
set_docker_options_non_ubuntu

echo "setting docker logging options"
Expand Down

0 comments on commit 406443e

Please sign in to comment.