commit 1a9db2168a87d79947c0f1afdb431d603a0db60e
Author: Daniel Alvarez Sanchez <email address hidden>
Date: Thu Oct 7 09:23:21 2021 +0200
[ovn] Stop monitoring the SB MAC_Binding table to reduce mem footprint
The MAC_Binding table in the SB database may grow indefinitely (due
to a lack of an aging mechanism of its entries) and eventually
lead to OOM killers for neutron-server which maintains an in-memory
copy of the database.
In order to stop monitoring this table, this patch is invoking
the ovsdb-client tool to remove the entries associated to
Floating IPs that have just been detached. The execution of this
tool is really fast as it will just invoke a JSON-RPC transact command
which doesn't require downloading the database contents.
In a scale test, the memory consumption of neutron-server dropped
from 75GB to 7GB with this patch.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/814871 /opendev. org/openstack/ neutron/ commit/ 1a9db2168a87d79 947c0f1afdb431d 603a0db60e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 1a9db2168a87d79 947c0f1afdb431d 603a0db60e
Author: Daniel Alvarez Sanchez <email address hidden>
Date: Thu Oct 7 09:23:21 2021 +0200
[ovn] Stop monitoring the SB MAC_Binding table to reduce mem footprint
The MAC_Binding table in the SB database may grow indefinitely (due
to a lack of an aging mechanism of its entries) and eventually
lead to OOM killers for neutron-server which maintains an in-memory
copy of the database.
In order to stop monitoring this table, this patch is invoking
the ovsdb-client tool to remove the entries associated to
Floating IPs that have just been detached. The execution of this
tool is really fast as it will just invoke a JSON-RPC transact command
which doesn't require downloading the database contents.
In a scale test, the memory consumption of neutron-server dropped
from 75GB to 7GB with this patch.
Closes-Bug: #1946318
Conflicts: plugins/ ml2/drivers/ ovn/mech_ driver/ mech_driver. py tests/functiona l/plugins/ ml2/drivers/ ovn/mech_ driver/ ovsdb/test_ ovsdb_monitor. py
neutron/
neutron/
Signed-off-by: Daniel Alvarez Sanchez <email address hidden> 415d611bfc19803 8fb6f811de3 e6f73a6a3613c9b eebb563840)
Change-Id: Id84bf17953527c
(cherry picked from commit f6c35527698119e