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.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/885449 /opendev. org/openstack/ neutron/ commit/ dbca7e1f8cc339c 5c87ea5a68f1e1d d2c78c94c3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit dbca7e1f8cc339c 5c87ea5a68f1e1d d2c78c94c3
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 /github. com/openstack/ neutron/ blob/b86ca713f7 d422489f2526c1a 94ffc8393b3ed75 /neutron/ plugins/ ml2/drivers/ ovn/mech_ driver/ ovsdb/ovn_ db_sync. py#L285- L291
[1] https:/
Change-Id: If4c886d9282584 50aac31e12a4e26 e0cbe2ace62