Public bug reported: 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 ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1835369 Title: QoS plugin slows down get_ports operation Status in neutron: New 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 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1835369/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp