neutron/releasenotes/notes/improve-acl-comparison-efficiency-9fc1027c37626419.yaml
zhouhenglc dbca7e1f8c 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] b86ca713f7/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py (L285-L291)

Change-Id: If4c886d928258450aac31e12a4e26e0cbe2ace62
2024-06-12 21:45:08 +00:00

8 lines
347 B
YAML

---
other:
- |
Neutron uses a new algorithm to compare the differences between security
group rules in Neutron and ACLs in OVN. Before comparison, the data is
sorted according to the security group rule ID, then the two ordered
arrays are compared. This increases efficiency when larger sets of rules
need to be synchronized.