]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NSX: make sync backend run more often
authorAaron Rosen <aaronorosen@gmail.com>
Wed, 26 Feb 2014 18:26:20 +0000 (10:26 -0800)
committerAaron Rosen <aaronorosen@gmail.com>
Mon, 3 Mar 2014 22:17:13 +0000 (14:17 -0800)
This patch bumps the state_sync_interval from 120 seconds to 10 seconds
so that resource's operation status are synced to the db quicker. This cuts
the amount of time that tempest takes to run by half.

Closes-bug: 1285338
Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
Change-Id: I494a6f95c2321befc3c0bfedc719e18a1826d9d5

etc/neutron/plugins/vmware/nsx.ini
neutron/plugins/vmware/common/config.py

index f30c501f99505f3ec34ae21620b028028450d5c2..e6add1997195f1d423a4c065ab902d7895147362 100644 (file)
 # as soon as the previous is completed.
 # If this value is set to 0, the state synchronization thread for this
 # Neutron instance will be disabled.
-# state_sync_interval = 120
+# state_sync_interval = 10
 
 # Random additional delay between two runs of the state synchronization task.
 # An additional wait time between 0 and max_random_sync_delay seconds
 # interval between two subsequent requests.
 # The value for this parameter must never exceed state_sync_interval.
 # If this does, an error will be raised at startup.
-# min_sync_req_delay = 10
+# min_sync_req_delay = 1
 
 # Minimum number of resources to be retrieved from NSX in a single status
 # synchronization request.
index 9f1b73534b37d38da5f983b1f20117fd9fc313a8..8b135da8bce5c4eb1d02abf7490713a3e09f7249 100644 (file)
@@ -65,7 +65,7 @@ base_opts = [
 ]
 
 sync_opts = [
-    cfg.IntOpt('state_sync_interval', default=120,
+    cfg.IntOpt('state_sync_interval', default=10,
                deprecated_group='NVP_SYNC',
                help=_("Interval in seconds between runs of the state "
                       "synchronization task. Set it to 0 to disable it")),
@@ -74,7 +74,7 @@ sync_opts = [
                help=_("Maximum value for the additional random "
                       "delay in seconds between runs of the state "
                       "synchronization task")),
-    cfg.IntOpt('min_sync_req_delay', default=10,
+    cfg.IntOpt('min_sync_req_delay', default=1,
                deprecated_group='NVP_SYNC',
                help=_('Minimum delay, in seconds, between two state '
                       'synchronization queries to NSX. It must not '