Change default local ovs connection timeout

Large number of flows can cause local ovs connection
timeout. Ultimately getting succeed will be better
than a retry or fullsync.

Related-Bug: #1813703
Related-Bug: #1813705
Related-Bug: #1813707
Related-Bug: #1813709

Change-Id: Ifa0608a7e131df3cad2f7727426720afce641a58
(cherry picked from commit 64ea642359)
This commit is contained in:
LIU Yulong 2019-02-21 16:34:40 +08:00 committed by Swaminathan Vasudevan
parent d9eccad736
commit 7a4bc6e43f
2 changed files with 9 additions and 2 deletions

View File

@ -85,11 +85,11 @@ ovs_opts = [
cfg.PortOpt('of_listen_port', default=6633,
help=_("Port to listen on for OpenFlow connections. "
"Used only for 'native' driver.")),
cfg.IntOpt('of_connect_timeout', default=30,
cfg.IntOpt('of_connect_timeout', default=300,
help=_("Timeout in seconds to wait for "
"the local switch connecting the controller. "
"Used only for 'native' driver.")),
cfg.IntOpt('of_request_timeout', default=10,
cfg.IntOpt('of_request_timeout', default=300,
help=_("Timeout in seconds to wait for a single "
"OpenFlow request. "
"Used only for 'native' driver.")),

View File

@ -0,0 +1,7 @@
---
other:
- |
In order to improve heavy load ovs agent restart success rate, instead
a retry or fullsync, the native driver ``of_connect_timeout`` and
``of_request_timeout`` are now set to 300s. The value does not have side
effect for the regular pressure ovs agent.