-
Notifications
You must be signed in to change notification settings - Fork 950
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
daemon/mgr/image: update deadline for loading images #2736
daemon/mgr/image: update deadline for loading images #2736
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2736 +/- ##
==========================================
+ Coverage 69.31% 69.37% +0.06%
==========================================
Files 278 278
Lines 17442 17442
==========================================
+ Hits 12090 12101 +11
+ Misses 4025 4018 -7
+ Partials 1327 1323 -4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Wait for ci pass |
daemon/mgr/image.go
Outdated
@@ -30,7 +30,9 @@ import ( | |||
"github.com/sirupsen/logrus" | |||
) | |||
|
|||
var deadlineLoadImagesAtBootup = time.Second * 10 | |||
// NOTE: make it to 10 minutes because it will take long time to load the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is not overtime because of image, but the machine env, like load, or other thing, would you mind to change the comment? @fuweid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. it is one of reason. the biggest issue is high load in machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually not vary accurately, also ok
PouchContainer will load all the images from containerd into memory. At the beginning, we assume that it can load it in 10 secs. But if the system has busy IO, it will take long time to load it, especially the more-layers and huge-size images. So update it from 10 secs to 10 mins. Signed-off-by: Wei Fu <fuweid89@gmail.com>
Signed-off-by: Wei Fu fuweid89@gmail.com
Ⅰ. Describe what this PR did
PouchContainer will load all the images from containerd into memory. At
the beginning, we assume that it can load it in 10 secs. But if the
system has busy IO, it will take long time to load it, especially the
more-layers and huge-size images. So update it from 10 secs to 10 mins.
Ⅱ. Does this pull request fix one issue?
none
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
no need.
Ⅳ. Describe how to verify it
CI
Ⅴ. Special notes for reviews