List AVZs can take several seconds
Bug #1801897 reported by
Belmiro Moreira
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Matt Riedemann | ||
Queens |
Confirmed
|
Medium
|
Unassigned | ||
Rocky |
In Progress
|
Medium
|
Matt Riedemann | ||
Stein |
In Progress
|
Medium
|
Matt Riedemann |
Bug Description
Getting the list of AVZs can take several seconds (~30 secs. in our case)
This is noticeable in Horizon when creating a new instance because the user can't select an AVZ until this completes.
workflow:
- get all services from all cells (~10000 for us)
- fetch all aggregates which are tagged as an AVZ
- construct a dict of {'service['host']: avz.value}
- return a dict of {'avz_value': list of hosts}
- separate available and not available zones.
Reproducible in Queens, Rocky
Changed in nova: | |
assignee: | nobody → Surya Seetharaman (tssurya) |
tags: | added: availability-zones performance |
Changed in nova: | |
assignee: | Surya Seetharaman (tssurya) → Andrey Volkov (avolkov) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Andrey Volkov (avolkov) → Matt Riedemann (mriedem) |
Changed in nova: | |
importance: | High → Medium |
Changed in nova: | |
assignee: | Andrey Volkov (avolkov) → Matt Riedemann (mriedem) |
To post a comment you must log in.
Hmm, we do do a scatter/gather here when listing services:
https:/ /github. com/openstack/ nova/blob/ b93b40c6c01a116 1f40592d29353c3 461669de19/ nova/compute/ api.py# L5106
Would be good to know where the majority of the time is spent in the overall flow.