From 112ede2ab47d8f398a9ca471e9a5aad7b1558d10 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Thu, 20 Mar 2014 00:27:19 +0100 Subject: [PATCH] network/neutron: increase agent polling interval To improve performances and scalability, this patch aims to increase the interval of agent healthcheck. When having many nodes, it could generate too much traffic on database and API servers for nothing. This patch aims to increase the value to avoid any performances issues without affecting the stability of Neutron. Feature #369 Signed-off-by: Emilien Macchi --- manifests/network.pp | 2 +- manifests/network/controller.pp | 2 ++ spec/classes/cloud_network_controller_spec.rb | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifests/network.pp b/manifests/network.pp index a6a81cbd..3dea9c18 100644 --- a/manifests/network.pp +++ b/manifests/network.pp @@ -121,7 +121,7 @@ class cloud::network( neutron_plugin_ml2 { 'agent/tunnel_types': value => ['gre']; 'agent/l2_population': value => true; - 'agent/polling_interval': value => '2'; + 'agent/polling_interval': value => '15'; 'OVS/local_ip': value => $tunnel_eth; 'OVS/enable_tunneling': value => true; 'OVS/integration_bridge': value => 'br-int'; diff --git a/manifests/network/controller.pp b/manifests/network/controller.pp index 840ca6d1..b9c38c4b 100644 --- a/manifests/network/controller.pp +++ b/manifests/network/controller.pp @@ -40,6 +40,8 @@ class cloud::network::controller( auth_port => $ks_keystone_public_port, database_connection => "mysql://${encoded_user}:${encoded_password}@${neutron_db_host}/neutron?charset=utf8", api_workers => $::processorcount, + agent_down_time => '60', + report_interval => '30', } # Note(EmilienM): diff --git a/spec/classes/cloud_network_controller_spec.rb b/spec/classes/cloud_network_controller_spec.rb index 76bb4d61..d4138dd3 100644 --- a/spec/classes/cloud_network_controller_spec.rb +++ b/spec/classes/cloud_network_controller_spec.rb @@ -86,7 +86,9 @@ describe 'cloud::network::controller' do :auth_host => '10.0.0.1', :auth_port => '5000', :database_connection => 'mysql://neutron:secrete@10.0.0.1/neutron?charset=utf8', - :api_workers => '2' + :api_workers => '2', + :agent_down_time => '60', + :report_interval => '30' ) end