Increase the default poll duration for Cisco n1kv

Increase the poll duration for Cisco N1Kv, from 10s to 60s and also
clean up the /etc/neutron/plugins/cisco/cisco_plugins.ini file. The
current poll duration of 10s causes that VSM to unnecessarily taking
frequent CPU cycles, resulting in the failure of other tasks in scale
configurations.

Closes-Bug: 1357030

Change-Id: I95747f35bae5b7157391c1698c0fe84d2126aa10
This commit is contained in:
Saksham Varma
2014-08-14 14:39:20 -07:00
parent 3593b51cc3
commit 3cd5875c20
2 changed files with 13 additions and 18 deletions

View File

@@ -105,39 +105,34 @@
# (StrOpt) Specify the name of the integration bridge to which the VIFs are # (StrOpt) Specify the name of the integration bridge to which the VIFs are
# attached. # attached.
# # Default value: br-int
# integration_bridge = br-int # integration_bridge = br-int
# (StrOpt) Name of the policy profile to be associated with a port when no # (StrOpt) Name of the policy profile to be associated with a port when no
# policy profile is specified during port creates. # policy profile is specified during port creates.
# # Default value: service_profile
# default_policy_profile = # default_policy_profile = service_profile
# Example: default_policy_profile = service_profile
# (StrOpt) Name of the policy profile to be associated with a port owned by # (StrOpt) Name of the policy profile to be associated with a port owned by
# network node (dhcp, router). # network node (dhcp, router).
# # Default value: dhcp_pp
# network_node_policy_profile = # network_node_policy_profile = dhcp_pp
# Example: network_node_policy_profile = dhcp_pp
# (StrOpt) Name of the network profile to be associated with a network when no # (StrOpt) Name of the network profile to be associated with a network when no
# network profile is specified during network creates. Admin should pre-create # network profile is specified during network creates. Admin should pre-create
# a network profile with this name. # a network profile with this name.
# # Default value: default_network_profile
# default_network_profile = # default_network_profile = network_pool
# Example: default_network_profile = network_pool
# (IntOpt) Time in seconds for which the plugin polls the VSM for updates in # (IntOpt) Time in seconds for which the plugin polls the VSM for updates in
# policy profiles. # policy profiles.
# # Default value: 60
# poll_duration = # poll_duration = 60
# Example: poll_duration = 180
# (IntOpt) Number of threads to use to make HTTP requests to the VSM. # (IntOpt) Number of threads to use to make HTTP requests to the VSM.
# # Default value: 4
# http_pool_size = 4 # http_pool_size = 4
# (IntOpt) Timeout duration in seconds for the http request # (IntOpt) Timeout duration in seconds for the http request
# # Default value: 15
# http_timeout = # http_timeout = 15
# Example: http_timeout = 15

View File

@@ -76,7 +76,7 @@ cisco_n1k_opts = [
help=_("N1K default policy profile")), help=_("N1K default policy profile")),
cfg.StrOpt('network_node_policy_profile', default='dhcp_pp', cfg.StrOpt('network_node_policy_profile', default='dhcp_pp',
help=_("N1K policy profile for network node")), help=_("N1K policy profile for network node")),
cfg.IntOpt('poll_duration', default=10, cfg.IntOpt('poll_duration', default=60,
help=_("N1K Policy profile polling duration in seconds")), help=_("N1K Policy profile polling duration in seconds")),
cfg.IntOpt('http_pool_size', default=4, cfg.IntOpt('http_pool_size', default=4,
help=_("Number of threads to use to make HTTP requests")), help=_("Number of threads to use to make HTTP requests")),