We've seen that sometimes NSX takes longer then 10 seconds to return
in production setups under high bursts. Setting this value to 30 seconds
seems more appropriate and solves the issue at load.
Suggestion by: Jacob Cherkas
Change-Id: If604d5d52d15cc1165e19d20b38774dfecec275f
Closes-bug:
1325055
# req_timeout = 30
# Time before aborting a request on an unresponsive controller
-# http_timeout = 10
+# http_timeout = 30
# Maximum number of times a particular request should be retried
# retries = 2
LOG = logging.getLogger(__name__)
DEFAULT_REQUEST_TIMEOUT = 30
-DEFAULT_HTTP_TIMEOUT = 10
+DEFAULT_HTTP_TIMEOUT = 30
DEFAULT_RETRIES = 2
DEFAULT_REDIRECTS = 2
DEFAULT_API_REQUEST_POOL_SIZE = 1000
default=30,
help=_('Total time limit for a cluster request')),
cfg.IntOpt('http_timeout',
- default=10,
+ default=30,
help=_('Time before aborting a request')),
cfg.IntOpt('retries',
default=2,
self.assertEqual('admin', cfg.CONF.nsx_user)
self.assertEqual('admin', cfg.CONF.nsx_password)
self.assertEqual(30, cfg.CONF.req_timeout)
- self.assertEqual(10, cfg.CONF.http_timeout)
+ self.assertEqual(30, cfg.CONF.http_timeout)
self.assertEqual(2, cfg.CONF.retries)
self.assertEqual(2, cfg.CONF.redirects)
self.assertIsNone(cfg.CONF.nsx_controllers)