framework icon indicating copy to clipboard operation
framework copied to clipboard

Delete snapshots - handle snapshot lookup and make it concurrent

Open JeffreyDevloo opened this issue 6 years ago • 2 comments

  • Deleting a large number of snapshots sequentially is very slow. We can optimize it by working storagedriver based and launch multiple concurrent tasks this way
  • vdisk.snapshot_ids can throw errors if the volumedriver does not respond. This path is currently not caught and causes the whole task to bail out

JeffreyDevloo avatar May 08 '19 08:05 JeffreyDevloo

Will be implemented by https://github.com/openvstorage/framework/pull/2298

JeffreyDevloo avatar May 10 '19 12:05 JeffreyDevloo

Framework concurrency added by #2298. This implementation still iterates on the snapshots, causing a snapshot.xml update each time.

The volumedriver implemented a delete_snapshots call which can be used instead: https://github.com/openvstorage/volumedriver-ee/issues/207

JeffreyDevloo avatar May 21 '19 11:05 JeffreyDevloo