Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9738

Optimize vm expunge process for instances with vm snapshots

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.10.0.0
    • 4.10.0.0
    • None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Description

      It was noticed that expunging instances with many vm snapshots took a look of time, as hypervisor received as many tasks as vm snapshots instance had, apart from the delete vm task. We propose a way to optimize this process for instances with vm snapshots by sending only one delete task to hypervisor, which will delete vm and its snapshots

      Use cases

      1. deleteVMsnapohsot-> no changes to current behavior
      2. destroyVM with expunge=false -> no actions to VMsnaphsot is performed at the moment. When VM cleanup thread is executed it will perform the same sequence as #3. If instance is recovered before expunged by the cleanup thread it will remain intact with VMSnapshot chain present
      3. destroyVM with expunge=true:
        • Vmsnaphsot is marked with removed timestamp and state = Expunging in DB
        • VM is deleted in HW

      Attachments

        Issue Links

          Activity

            People

              nicolas.vazquez Nicolas Vazquez
              nicolas.vazquez Nicolas Vazquez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: