Browse Source

Merge "[OVN] Change the default metadata_workers to 2"

tags/16.1.0
Zuul 1 week ago
parent
commit
46cd24bf1a
3 changed files with 14 additions and 3 deletions
  1. +2
    -2
      manifests/agents/ovn_metadata.pp
  2. +11
    -0
      releasenotes/notes/reduce-ovn-metadata-workers-6ed825307997f8b9.yaml
  3. +1
    -1
      spec/classes/neutron_agents_ovn_metadata_spec.rb

+ 2
- 2
manifests/agents/ovn_metadata.pp View File

@@ -45,7 +45,7 @@
# (optional) Number of separate worker processes to spawn. Greater than 0
# launches that number of child processes as workers. The parent process
# manages them.
# Defaults to: $::os_workers
# Defaults to: 2
#
# [*metadata_backlog*]
# (optional) Number of backlog requests to configure the metadata server socket with.
@@ -121,7 +121,7 @@ class neutron::agents::ovn_metadata (
$metadata_host = $::os_service_default,
$metadata_port = $::os_service_default,
$metadata_protocol = $::os_service_default,
$metadata_workers = $::os_workers,
$metadata_workers = 2,
$metadata_backlog = $::os_service_default,
$metadata_insecure = $::os_service_default,
$nova_client_cert = $::os_service_default,

+ 11
- 0
releasenotes/notes/reduce-ovn-metadata-workers-6ed825307997f8b9.yaml View File

@@ -0,0 +1,11 @@
---
upgrade:
- |
Switched the default value of the ``metadata_workers`` configuration
option for the OVN metadata agents to 2 (from $::os_workers). While
the OVS metadata agents runs on the controllers/gateway nodes (and
defaults to $::os_workers) the OVN metadata agents are distributed
and runs on the compute nodes instead so, there's no point in running
dozen of them on each compute. Also, by reducing the number of workers
we also reduce the burden on the OVSDB that the OVN metadata agent
connects to making OVN more scalable.

+ 1
- 1
spec/classes/neutron_agents_ovn_metadata_spec.rb View File

@@ -57,7 +57,7 @@ describe 'neutron::agents::ovn_metadata' do
should contain_ovn_metadata_agent_config('DEFAULT/nova_metadata_host').with(:value => '<SERVICE DEFAULT>')
should contain_ovn_metadata_agent_config('DEFAULT/nova_metadata_port').with(:value => '<SERVICE DEFAULT>')
should contain_ovn_metadata_agent_config('DEFAULT/nova_metadata_protocol').with(:value => '<SERVICE DEFAULT>')
should contain_ovn_metadata_agent_config('DEFAULT/metadata_workers').with(:value => facts[:os_workers])
should contain_ovn_metadata_agent_config('DEFAULT/metadata_workers').with(:value => 2)
should contain_ovn_metadata_agent_config('DEFAULT/metadata_backlog').with(:value => '<SERVICE DEFAULT>')
should contain_ovn_metadata_agent_config('DEFAULT/nova_metadata_insecure').with(:value => '<SERVICE DEFAULT>')
should contain_ovn_metadata_agent_config('DEFAULT/state_path').with(:value => params[:state_path])

Loading…
Cancel
Save