Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add concurrency control when pull image in daemon #1918

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ABNER-1
Copy link
Member

@ABNER-1 ABNER-1 commented Feb 11, 2025

Ⅰ. Describe what this PR does

add concurrency control when pull image in daemon

Ⅱ. Does this pull request fix one issue?

fixes #1681

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 2.94118% with 33 lines in your changes missing coverage. Please review.

Project coverage is 42.54%. Comparing base (6d2f3f5) to head (ec217dd).

Files with missing lines Patch % Lines
pkg/daemon/imagepuller/imagepuller_worker.go 0.00% 23 Missing ⚠️
pkg/daemon/imagepuller/imagepuller_controller.go 0.00% 7 Missing ⚠️
pkg/daemon/daemon.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1918      +/-   ##
==========================================
- Coverage   42.57%   42.54%   -0.04%     
==========================================
  Files         313      313              
  Lines       31364    31387      +23     
==========================================
  Hits        13354    13354              
- Misses      16642    16665      +23     
  Partials     1368     1368              
Flag Coverage Δ
unittests 42.54% <2.94%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zmberg zmberg added this to the 1.9 milestone Feb 11, 2025
@@ -94,7 +95,7 @@ func NewController(opts daemonoptions.Options, secretManager daemonutil.SecretMa
},
})

puller, err := newRealPuller(opts.RuntimeFactory.GetImageService(), secretManager, recorder)
puller, err := newRealPuller(opts.RuntimeFactory.GetImageService(), secretManager, recorder, opts.MaxWorkersForPullImages)
Copy link
Member

@zmberg zmberg Feb 24, 2025

Choose a reason for hiding this comment

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

The stats for the newStatus field in the sync function, do we need to add waiting filed as well. also, add some e2e or UT as well.

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.

[feature request] best practices about pre-downloading base images in new nodes
3 participants