diff options
author | Rodolfo Alonso Hernandez <ralonsoh@redhat.com> | 2022-10-05 21:35:48 +0200 |
---|---|---|
committer | Rodolfo Alonso <ralonsoh@redhat.com> | 2022-10-26 14:36:05 +0000 |
commit | 93e7091a13f8471cfe77310802c12ede479e779f (patch) | |
tree | 8a2e3d1ed6105c5151f37f7698b8f7f0b6ba99da | |
parent | 4d96313af5618dd13359ed85b88b67f4ff493ff4 (diff) | |
download | neutron-wallaby-em.tar.gz |
[OVN] Set the default OVN metadata worker number to 0wallaby-em18.6.0
If the configuration variable ``metadata_workers`` is not set,
the default value for ML2/OVN mechanism driver will be zero.
This value defines the number of separate workers that will
be spawned by the OVN metadata agent. By default, the OVN
metadata proxy handler will be executed inside the same OVN
metadata agent process, in a parallel thread. That reduces the
number of OVN SB database connections to one.
Related-Bug: #1993181
Change-Id: I8bc4f2784ccefe6078506bc27cc7a98c48192ad2
(cherry picked from commit 70a2029ca1309ef4a784d2f08f5b5f4bc69617a6)
-rw-r--r-- | neutron/agent/ovn/metadata/server.py | 3 | ||||
-rw-r--r-- | releasenotes/notes/ovn-metadata-workers-fa8a2019f34bd572.yaml | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/neutron/agent/ovn/metadata/server.py b/neutron/agent/ovn/metadata/server.py index abd0c92fb5..5942b5f6bc 100644 --- a/neutron/agent/ovn/metadata/server.py +++ b/neutron/agent/ovn/metadata/server.py @@ -223,8 +223,7 @@ class UnixDomainMetadataProxy(object): 'neutron-ovn-metadata-agent') # Set the default metadata_workers if not yet set in the config file md_workers = self.conf.metadata_workers - if md_workers is None: - md_workers = 2 + md_workers = 0 if md_workers is None else md_workers sb_idl = self.sb_idl if md_workers == 0 else None self.server.start(MetadataProxyHandler(self.conf, self.chassis, sb_idl), diff --git a/releasenotes/notes/ovn-metadata-workers-fa8a2019f34bd572.yaml b/releasenotes/notes/ovn-metadata-workers-fa8a2019f34bd572.yaml new file mode 100644 index 0000000000..50516cb19e --- /dev/null +++ b/releasenotes/notes/ovn-metadata-workers-fa8a2019f34bd572.yaml @@ -0,0 +1,9 @@ +--- +upgrade: + - | + The default value for the ``metadata_workers`` configuration option + has changed to 0 for the ML2/OVN driver. Since `[OVN] Allow to execute + "MetadataProxyHandler" in a local thread <https://review.opendev.org/c/openstack/neutron/+/861649>`_, + the OVN metadata proxy handler can be spawned in the same process of + the OVN metadata agent, in a local thread. That reduces the number of + OVN SB database connections to one. |