Increasing agents neutron report interval and agent down time

Changes:
'agent_down_time' => '30'
'report_interval' => '10'

This changes helps neutron agents send messages over messaging
less frequently and do not overload neutron-server, messaging and DB.

Other confirmations to do this:
1) We have multiple agents in controllers
2) DVR mode where this issue was found has multiple l3 agents in computes
3) Change in upstream available since Juno:
   https://review.openstack.org/#/c/80829/

Change-Id: Ia92e94fe1775ef63b8de8fcd36d220d4f0ab2922
Related-Bug: #1493732
This commit is contained in:
Alexander Ignatov 2015-09-11 19:16:06 +03:00 committed by Vladimir Kuklin
parent efad8288dd
commit ad6d46378b
3 changed files with 20 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class openstack::network (
mac_generation_retries => 32,
dhcp_lease_duration => 600,
dhcp_agents_per_network => 2,
report_interval => 5,
report_interval => 10,
rabbit_user => $amqp_user,
rabbit_host => $amqp_host,
rabbit_hosts => $amqp_hosts,
@ -224,7 +224,7 @@ class openstack::network (
database_connection => $neutron_db_uri,
database_max_retries => -1,
agent_down_time => 15,
agent_down_time => 30,
allow_automatic_l3agent_failover => true,
api_workers => $service_workers,

View File

@ -36,6 +36,12 @@ describe manifest do
)
end
it 'should configure report_interval for neutron' do
should contain_class('neutron').with(
'report_interval' => '10',
)
end
it 'should configure auth region for neutron-agents' do
should contain_class('openstack::network::neutron_agents').with(
'auth_region' => 'RegionOne',

View File

@ -85,6 +85,18 @@ describe manifest do
)
end
it 'should configure agent_down_time for neutron-server' do
should contain_class('neutron::server').with(
'agent_down_time' => '30',
)
end
it 'should configure report_interval for neutron' do
should contain_class('neutron').with(
'report_interval' => '10',
)
end
it 'should configure identity uri for neutron' do
should contain_class('openstack::network').with(
'identity_uri' => "http://#{service_endpoint}:35357",