Skip to content

fix: prewarm containerd, increase timeout value for wait for containerd ready#8496

Merged
awesomenix merged 1 commit into
mainfrom
nishp/fix/containerdissues
May 12, 2026
Merged

fix: prewarm containerd, increase timeout value for wait for containerd ready#8496
awesomenix merged 1 commit into
mainfrom
nishp/fix/containerdissues

Conversation

@awesomenix
Copy link
Copy Markdown
Contributor

We noticed in production, containerd can take upto 21s and in E2E at minimum it takes 5s, speed everything up.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce containerd-related startup delays during Linux node provisioning by (1) pre-warming containerd early in basePrep() and (2) increasing the retry window in waitForContainerdReady() to better match observed production timings.

Changes:

  • Add a background “pre-warm” invocation of containerd version output in basePrep().
  • Increase waitForContainerdReady() retry attempts from 120 to 240 (0.1s sleep) to allow up to ~24s for readiness.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
parts/linux/cloud-init/artifacts/cse_main.sh Adds a background containerd version call intended to pre-warm containerd.
parts/linux/cloud-init/artifacts/cse_helpers.sh Extends containerd readiness wait window by increasing retry count.

setupCNIDirs

# pre-warm containerd by checking its version.
nohup /bin/sh -c '/usr/bin/containerd --version >/dev/null 2>&1' >/dev/null 2>&1 &
@awesomenix awesomenix merged commit 332503f into main May 12, 2026
37 checks passed
@awesomenix awesomenix deleted the nishp/fix/containerdissues branch May 12, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants