Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
lxd-images: Use temp file instead of memory for split-image uploads #1300
Comments
stgraber
added
Bug
Easy
labels
Nov 11, 2015
stgraber
added this to the lxd-0.23 milestone
Nov 11, 2015
added a commit
to stgraber/lxd
that referenced
this issue
Nov 11, 2015
tych0
closed this
in
#1301
Nov 11, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stgraber commentedNov 11, 2015
Current lxd-images prepares the LXD image upload in memory, this is fine on systems with 400MB+ of free memory but fails pretty miserably on low-memory ARM devices.
Instead of using an in-memory array, we should be writing to a tempfile and then pass an fd to urllib.