Currently, Volume Snapshots in Cloudstack take a considerable amount of time to complete thereby blocking other operations on the VM. This is because, the volume snapshot operation involves 2 steps - creating a snapshot of the volume on primary storage and then backing it up on secondary storage. This feature will separate the creation of the snapshot on primary and its copying onto secondary.
Purpose
This is a functional specification of the feature "Separate creation and backup operations for a volume snapshot".
master
Author | Description | Date |
---|---|---|
Harika Punna | First Revision | May 2nd, 2017 |
Feature Specification
.
Design Description
This feature will only improve the experience with volume snapshots.
A separate thread pool will be maintained for backup task.
Configuration parameters:
Param Name | Default Value |
---|---|
backup.max.attempts | 3 |
backup.retry.interval | 300 seconds |
API Changes
An additional param will be added to CreateSnapshotCmd, on whose value the decision of, if to separate the snapshot and copy operations or if to continue with the existing one is decided.
API | Parameter |
---|---|
createSnapshot | asyncBackup(optional)
|
DB Changes
NA
UI Flow
A checkbox will be added to the "Create Volume Snapshot" dialog box, which when checked, snapshot and copy operations will be separated and if left unchecked the existing flow continues.
Hypervisors supported
XenServer, KVM
Parallel operations that can happen during backing up of snapshot
All the other VM/Volume operations not listed above are not supported.