Offering RamDisk Storage Option for Instances

asked 2014-08-27 07:29:11 -0500

daryl gravatar image

I am setting up an all-in-one OpenStack node for development/testing purposes on a desktop-class machine. RAM is reasonably plentiful at 32 GB but I/O is just painful, so I decided to try running /var/lib/nova/instances off a RamDisk (in-memory FS), which helped a lot:

ext4 on /var/lib/nova/instances type ramfs (rw,size=8g)

However, the problem is that makes all ephemeral storage volatile (more volatile than usual anyway). There are cases where I might choose to suffer the slow I/O (i.e. for testing a larger cluster than I can fit in RAM or for a longer running instance). I'm also guessing there is probably information in /var/lib/nova/instances that I'd want to keep between reboots.

Ideally, I'd like some way to specify volatile or persistent storage when creating an instance. Would there be a way to specify a different storage type for Cinder that used a RamDisk?

edit retag flag offensive close merge delete