[openstack-dev] [Nova] Instance backing file cleanup?

Lloyd Dewolf lloydostack at gmail.com
Fri Sep 7 22:55:19 UTC 2012


Thank Michael and again Vish!

On Thu, Sep 6, 2012 at 9:40 PM, Michael Still <mikal at stillhq.com> wrote:
> On 09/07/2012 05:28 AM, Lloyd Dewolf wrote:
>> Is there a blueprint for having nova clean up backing files that are
>> no longer in use?
>>
>> Do people currently have a scripted workaround to clean these up when
>> throwing instances of a lot of different images at a testing
>> environment?
>
> Can I assume you're using libvirt? If so, Essex implemented image cache
> management, which does what you want here. There's no scripting
> required, its built in.
>
> Knobs you might want to tune for a test environment are:
>
> remove_unused_base_images (should be True)
>
> remove_unused_resized_minimum_age_seconds (defaults to 3600 seconds,
> perhaps make this lower?)
>
> remove_unused_original_minimum_age_seconds (defaults to 24 * 3600
> seconds, make this lower)
>
> checksum_base_images (set this to false to reduce filesystem IO if
> you're churning base files a lot)
>
> image_cache_manager_interval(defaults to 40 ticks, set this lower to
> make the cleaner run more frequently)
>
> Hope this helps.
>
> Mikal



-- 
--
@lloyddewolf
http://www.pistoncloud.com/



More information about the OpenStack-dev mailing list