From: Renat Nurgaliyev <imple...@gmail.com>

Before the value configured in northd_probe_interval can be actually
applied, connection to both northbound and southbound databases must be
established. In big scale environments, the southbound database can be so
big that northd cannot establish connection in 5 seconds, before the
connection is killed by an unreplied probe. This causes endless
reconnection, and northd can never stabilize. This patch makes sure that
probes are initially disabled on connections to northbound and southbound
databases, so that northd can take its time to establish connections
properly. After we can "reach" the northd_probe_interval option set in
northbound DB, it is applied to both connections, or
DEFAULT_PROBE_INTERVAL_MSEC is used if nothing is set by the user.

Signed-off-by: Renat Nurgaliyev <imple...@gmail.com>
---
 northd/ovn-northd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index 684c2bd47..073c6a0f3 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -100,8 +100,8 @@ static struct eth_addr svc_monitor_mac_ea;

 /* Default probe interval for NB and SB DB connections. */
 #define DEFAULT_PROBE_INTERVAL_MSEC 5000
-static int northd_probe_interval_nb = DEFAULT_PROBE_INTERVAL_MSEC;
-static int northd_probe_interval_sb = DEFAULT_PROBE_INTERVAL_MSEC;
+static int northd_probe_interval_nb = 0;
+static int northd_probe_interval_sb = 0;

 #define MAX_OVN_TAGS 4096
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to