Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@yifan-gu
Copy link
Contributor

Ref #2877

Depends on #2909 and #2891

The last 3 commits are new. Basically it adds an in-memory cache to cache image object, and reads the disk when there is a cache miss.

If the image is removed (by stating the image manifest path), return nil.

@yifan-gu
Copy link
Contributor Author

Blocking on #2891

@lucab
Copy link
Member

lucab commented Jul 28, 2016

#2891 is merged. I'm not sure what's remaining here.

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Aug 1, 2016

This has commits to add cache for the image info. I will rebase it.

@lucab lucab modified the milestones: v1.13.0, v1.12.0 Aug 3, 2016
@yifan-gu yifan-gu force-pushed the cache_image branch 2 times, most recently from 9e936bb to 9e1c212 Compare August 5, 2016 00:22
@yifan-gu
Copy link
Contributor Author

yifan-gu commented Aug 5, 2016

Updated the PR, ptal, thank you :)

@yifan-gu yifan-gu force-pushed the cache_image branch 3 times, most recently from 68fe74b to defa7da Compare August 6, 2016 01:16
const (
// Default size for the pod LRU cache.
defaultPodCacheSize = 512
// Default size for the image LUR cache.
Copy link
Contributor

Choose a reason for hiding this comment

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

LRU

@jonboulle
Copy link
Contributor

lgtm after small nit

@lucab
Copy link
Member

lucab commented Aug 8, 2016

No further concerns from my side.

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Aug 8, 2016

Updated.

@euank
Copy link
Member

euank commented Aug 9, 2016

LGTM

@euank euank merged commit 38acea1 into rkt:master Aug 9, 2016
@yifan-gu yifan-gu deleted the cache_image branch August 9, 2016 00:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants