diff --git a/manifests/agents/metadata.pp b/manifests/agents/metadata.pp index dc74bf0aa..03511a7cb 100644 --- a/manifests/agents/metadata.pp +++ b/manifests/agents/metadata.pp @@ -55,6 +55,10 @@ # The parent process manages them. Having more workers will help to improve performances. # Defaults to: 0 # +# [*metadata_backlog*] +# (optional) Number of backlog requests to configure the metadata server socket with. +# Defaults to 4096 +# class neutron::agents::metadata ( $auth_password, @@ -71,7 +75,8 @@ $auth_region = 'RegionOne', $metadata_ip = '127.0.0.1', $metadata_port = '8775', - $metadata_workers = '0' + $metadata_workers = '0', + $metadata_backlog = '4096' ) { include neutron::params @@ -92,6 +97,7 @@ 'DEFAULT/nova_metadata_port': value => $metadata_port; 'DEFAULT/metadata_proxy_shared_secret': value => $shared_secret; 'DEFAULT/metadata_workers': value => $metadata_workers; + 'DEFAULT/metadata_backlog': value => $metadata_backlog; } if $auth_ca_cert { diff --git a/spec/classes/neutron_agents_metadata_spec.rb b/spec/classes/neutron_agents_metadata_spec.rb index 4c084675e..d47c1f172 100644 --- a/spec/classes/neutron_agents_metadata_spec.rb +++ b/spec/classes/neutron_agents_metadata_spec.rb @@ -19,6 +19,7 @@ :metadata_ip => '127.0.0.1', :metadata_port => '8775', :metadata_workers => '2', + :metadata_backlog => '4096', :shared_secret => 'metadata-secret' } end @@ -57,6 +58,7 @@ should contain_neutron_metadata_agent_config('DEFAULT/nova_metadata_ip').with(:value => params[:metadata_ip]) should contain_neutron_metadata_agent_config('DEFAULT/nova_metadata_port').with(:value => params[:metadata_port]) should contain_neutron_metadata_agent_config('DEFAULT/metadata_workers').with(:value => params[:metadata_workers]) + should contain_neutron_metadata_agent_config('DEFAULT/metadata_backlog').with(:value => params[:metadata_backlog]) should contain_neutron_metadata_agent_config('DEFAULT/metadata_proxy_shared_secret').with(:value => params[:shared_secret]) end end