Comment 4 for bug 2023130

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/885449
Committed: https://opendev.org/openstack/neutron/commit/dbca7e1f8cc339c5c87ea5a68f1e1dd2c78c94c3
Submitter: "Zuul (22348)"
Branch: master

commit dbca7e1f8cc339c5c87ea5a68f1e1dd2c78c94c3
Author: zhouhenglc <email address hidden>
Date: Fri Jun 9 10:13:16 2023 +0800

    Improve ACL comparison efficiency

    The current comparison strategy is very time-consuming, and if
    there are hundreds of thousands of security group rules, the
    comparison time can still vary from several hours. The main
    time-consuming operations are [1].

    This patch is sorted first by security group rule ID and then
    compared. The execution of sorting actions is relatively fast.
    After actual measurement, the total time consumption is in the
    minute level.

    Partial-Bug: #2023130
    [1] https://github.com/openstack/neutron/blob/b86ca713f7d422489f2526c1a94ffc8393b3ed75/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py#L285-L291

    Change-Id: If4c886d928258450aac31e12a4e26e0cbe2ace62