Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-774

_get_file_info is unnecessarily slow for vSphere provisioning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 2.4
    • vcld (backend)
    • VMware vSphere

    Description

      The vSphere_SDK.pm:_get_file_info subroutine is unnecessarily slow on systems with large numbers of virtual machines (especially vCenter clusters).

      This is due to an overly comprehensive query definition in the HostDatastoreBrowserSearchSpec object.

      The query definition includes the following (around line 2483):

      VmDiskFileQuery->new(...),
      FileQuery->new(),
      FloppyImageFileQuery->new(),
      FolderFileQuery->new(),
      IsoImageFileQuery->new(),
      VmConfigFileQuery->new(),
      VmLogFileQuery->new(),
      VmNvramFileQuery->new(),
      VmSnapshotFileQuery->new()

      But in truth only the following are needed in the query:

      VmDiskFileQuery->new(...),
      FileQuery->new(),
      FolderFileQuery->new(),

      In my system, this drops the execution time of _get_file_info() from ~ 3.5 minutes to ~ 5 seconds.

      Attachments

        Issue Links

          Activity

            People

              acoburn Aaron Coburn
              acoburn Aaron Coburn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: