canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.39k stars 931 forks source link

Tune image publishing schedule #13294

Open simondeziel opened 7 months ago

simondeziel commented 7 months ago

AFAIK, LXD images are cached locally for a certain period of time and refreshed either on a schedule or on demand. I think the refresh behaviour is to always pull the newest image available from the remote server.

Assuming that refresh behaviour of always pulling the newest image is accurate, I think we should stop publishing images on weekend days. Here's a practical use case:

I think most distros don't publish updates during weekends (Ubuntu doesn't publish updates from Friday to Sunday) so rebuilding/republishing those works against the local cache that LXD manages.

Taking the same scenario but assuming we only publish from Monday-Friday:

@MusicDin does that make sense?

tomponline commented 7 months ago

It does make some sense. But I worry we may delay important updates by doing this.

I think this is a potential optimization we can look at a little later once we understand access patterns better.