Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Don't monitor most of northbound external IDs.
ovn-northd copies external IDs from Logical Switch, Router and their Port records to corresponding Southbound Datapath and Port Binding records. IDs in other tables are not used by northd in any way, so there is no point in monitoring them. CMSes tend to create a huge amount of external IDs for every record to the point where they can take literally half of the database data. In high scale clusters that can be several hundreds of MB. Not monitoring them saves a lot of time and memory while downloading initial database snapshots on the first connection and should also reduce the ongoing cost while new resources are being created. Tested on a 500 MB Northbound DB that contains 1M ACLs created by ovn-kubernetes in a test cluster mimicing a real world setup. Before the change it took 20 seconds for the ovsdb-server to send out an initial database snapshot and 12.8 seconds for ovn-northd to receive it and run a full recompute, consuming 5.4 GB of RAM. With the change it takes 15 seconds on the database side and 7.5 seconds for northd, consuming 2.9 GB of RAM. (Note: the test was performed in a sandbox with no OVN chassis connected, so northd didn't generate a lot of logical flows for those ACLs.) So, we saved: - 25% of CPU time on the database side. - 41% of CPU time on the ovn-northd side. - 2.5 GB (46%) of RAM on ovn-northd. Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
- Loading branch information