QoS plugin slows down get_ports operation

Bug #1835369 reported by Adit Sarfaty on 2019-07-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Undecided
Unassigned

Bug Description

When the QoS plugin is enabled, get_ports for about 10K ports takes over 10 minutes.
removing _extend_port_resource_request which was added in https://review.opendev.org/#/c/590363/
reduces the time to around 3 minutes only.
This was tested with stable/stein

The "blame" is with the code that retrieves the network object for each port (unless the port was assigned with a qos policy): https://opendev.org/openstack/neutron/src/branch/stable/stein/neutron/services/qos/qos_plugin.py#L103

This code should be improved.
Another partial fix can be to skip _extend_port_resource_request in case the driver does not support minimum-bw rules

Adit Sarfaty (asarfaty) wrote :

Seems like a duplication of bug 1834484

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers