r/openstack • • Jun 07 '24

Shelve instance

Are You use this function ? shelve instance ? Is there any disadvantages other then keep space for snapshot ?

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/przemekkuczynski Jun 08 '24

Dude shelving instance do snapshot and then placement is done while unshelve create new instance

How it works…
When told to shelve an instance, OpenStack compute will first stop the instance. It then creates an instance snapshot to retain the state of the instance. The runtime details, such as number of vCPUs, memory, and IP addresses, are retained so that the instance can be unshelved and rescheduled at a later time.
This differs from shutdown an instance, in that the resources of a shutdown instance are still reserved on the host on which it resided, so that it can be powered back on quickly. A shelved instance however, will still show in openstack server list, while the resources that were assigned will remain available. Additionally, as the shelved instance will need to be restored from an image OpenStack compute will perform placement as if the instance were new, and starting it will take some time.