Skip to content

Assessment performance issue with many servers #27

Description

@Thommil

Hi,

I'm currently working with @PierreRustOrange on LCAaC through Cloud Assess and I'm facing a critical performance issue.

Using this inventory containing about 300 servers, when accessing /virtual_machines/assess API endpoint:

  • Request for 1 VM:
~/workspace/cloud-assess$ curl -s -w "time_total: %{time_total}s\n" --header "Content-Type: application/json" -o /dev/null --request POST --data @vms-1.json http://localhost:8080/virtual_machines/assess
time_total: 2.553245s
  • Request for 10 VMs:
~/workspace/cloud-assess$ curl -s -w "time_total: %{time_total}s\n" --header "Content-Type: application/json" -o /dev/null --request POST --data @vms-10.json http://localhost:8080/virtual_machines/assess
time_total: 25.126882s
  • Request for 100 VMs:
~/workspace/cloud-assess$ curl -s -w "time_total: %{time_total}s\n" --header "Content-Type: application/json" -o /dev/null --request POST --data @vms-100.json http://localhost:8080/virtual_machines/assess
time_total: 267.101148s

Response time which is initialy pretty slow for 1 VM (>2s) increases linearly with number of VMs and seems tidly bound to the number of servers in inventory.

My need is for thousands of VMs each hour (more than 4000) and based on this inventory and my testing setup, we can't hardly handle 1500 VMs per hour and potential errors/timeouts will also become fatal issues.

Based on logs and the linear increase, I suspect that for each VM, many redundants processes are done.

Is there any way to introduce caching mechanism to improve response time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions