forked from openvswitch/ovs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-controller: Only rebuild if something changed.
Most of the work done in the ovn-controller main loop only needs to happen if something has changed either in either the ovs or ovn-sb database. This patch makes most of the work get skipped if neither database changed. In a large scale environment, ovn-controller was using a large amouint of CPU in what should be an idle state. This was partially due to ovn-controller recalculating the full state of the system every time it woke up, due to some sort of keepalive (an ovsdb or openflow echo request). Reported-at: https://bugs.launchpad.net/networking-ovn/+bug/1536003 Signed-off-by: Russell Bryant <russell@ovn.org>
- Loading branch information
Showing
1 changed file
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters