summaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorZhen Wang <zhewang@nvidia.com>2020-03-30 17:21:04 -0700
committerIlya Maximets <i.maximets@ovn.org>2020-05-12 20:03:42 +0200
commitdb5a066c17bdeaa7ecac08870331ae583f5ddfcc (patch)
tree2669de48a583cac10b15de7aef23e9833ca298d9 /ovsdb
parente398275024e815b52e796fcfe350fdd0d139ebba (diff)
downloadopenvswitch-db5a066c17bdeaa7ecac08870331ae583f5ddfcc.tar.gz
raft: Disable RAFT jsonrpc inactivity probe.
With the scale test of 640 nodes k8s cluster, raft DB nodes' jsonrpc session got closed due to the timeout of default 5 seconds probe. It will cause disturbance of the raft cluster. Since we already have the heartbeat for RAFT, just disable the probe between the servers to avoid the unnecessary jsonrpc inactivity probe. Acked-by: Han Zhou <hzhou@ovn.org> Signed-off-by: Zhen Wang <zhewang@nvidia.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r--ovsdb/raft.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/raft.c b/ovsdb/raft.c
index e0af6bd62..18f29973e 100644
--- a/ovsdb/raft.c
+++ b/ovsdb/raft.c
@@ -938,6 +938,7 @@ raft_add_conn(struct raft *raft, struct jsonrpc_session *js,
&conn->sid);
conn->incoming = incoming;
conn->js_seqno = jsonrpc_session_get_seqno(conn->js);
+ jsonrpc_session_set_probe_interval(js, 0);
}
/* Starts the local server in an existing Raft cluster, using the local copy of