NSX: bump http_timeout to 30 seconds
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
This commit is contained in:
parent
aecae0751b
commit
84b36f1df4
@ -10,7 +10,7 @@
|
||||
# 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
|
||||
|
@ -31,7 +31,7 @@ from neutron.plugins.vmware import api_client
|
||||
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
|
||||
|
@ -116,7 +116,7 @@ connection_opts = [
|
||||
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,
|
||||
|
@ -125,7 +125,7 @@ class ConfigurationTest(base.BaseTestCase):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user