[QoS] qos_plugin._extend_port_resource_request is killing port retrieval performance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Rodolfo Alonso |
Bug Description
The function [1], called during the port retrieval, is killing the performance. Although this code is needed for the BW aware scheduler (Nova-Neutron RFE), the high number of DB calls done inside this function is reducing the performance.
Instead of this, we propose:
- To publish inside the port DB object its own network qos policy, if any.
- Use it inside this function to retrieve only once, if needed, the QoS policy.
NOTE: the patches, if accepted, should be cherry-picked into Stein too.
NOTE: benchmarks: done with 60 ports in a development laptop. Command executed: "openstack port list"
- Stein and master: 6.5 secs
- Stein and master, deleting the code of this function: 1.5 secs
- Rocky: 1.5 secs.
[1] https:/
tags: | added: qos |
tags: | added: stein-backport-potential |
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
description: | updated |
Changed in neutron: | |
importance: | Undecided → High |
tags: | added: api |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential stein-backport-potential |
Related fix proposed to branch: master /review. opendev. org/667981
Review: https:/