Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-826

GCE list nodes performance improvement

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compute
    • Labels:

      Description

      list_nodes currently makes at least one independent API call to the disks/get API (to obtain disk information) for each node in the list. This change will use the disks/aggregatedList API for this instead, reducing NUM_INSTANCES API calls to one.

      I ran some simple command-line tests to demonstrate the improvements in response time and API calls.

      Below is an in-network comparison using 40 nodes in 4 different regions.

      Code instances/zones/regions Time (sec) API Calls
      Current 1.0 40/4/2 6.805 43
      with disks/aggregatedList 40/4/2 0.919 4

      I have a PR forthcoming to implement this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                supertom Tom Melendez
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: