Skip to content

Commit

Permalink
daemon/mgr/image: update deadline for loading images
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fuweid authored and Ace-Tang committed Mar 8, 2019
1 parent 5ef1508 commit 90a412a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion daemon/mgr/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ import (
"github.com/sirupsen/logrus"
)

var deadlineLoadImagesAtBootup = time.Second * 10
// The daemon 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.
var deadlineLoadImagesAtBootup = time.Minute * 10

// the filter tags set allowed when pouch images -f
var acceptedImageFilterTags = map[string]bool{
Expand Down

0 comments on commit 90a412a

Please sign in to comment.