diff options
author | Pádraig Brady <pbrady@redhat.com> | 2012-02-01 21:29:28 +0000 |
---|---|---|
committer | Pádraig Brady <pbrady@redhat.com> | 2012-02-09 11:13:52 +0000 |
commit | 7cd4b62098e46b26f4df4932b100f3be07ad4516 (patch) | |
tree | 618e8230bfe6aad9ac28a114a8f04cfd3f794092 /nova/utils.py | |
parent | 1815aaf13af1c5d6d4225fa0f8f4adb2b10548e6 (diff) | |
download | nova-7cd4b62098e46b26f4df4932b100f3be07ad4516.tar.gz nova-7cd4b62098e46b26f4df4932b100f3be07ad4516.tar.xz nova-7cd4b62098e46b26f4df4932b100f3be07ad4516.zip |
optimize libvirt image cache usage
When dealing with cow images, minimize the number of downloads,
by caching both the original download and a resized derivative,
with extra disk space being used for the downloaded image.
This part was suggested by Vish Ishaya.
When dealing with raw images, don't bother caching the resized
derivative, as it's quicker to just copy the downloaded image
to the instance dir and resize in place. Similarly when
generating a raw image, do so directly to the instance dir.
Change-Id: I1458b2c39a51d7d9f5bdfff53155431c863b8a40
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions