]> git.proxmox.com Git - mirror_ovs.git/commitdiff
raft: Disable RAFT jsonrpc inactivity probe.
authorZhen Wang <zhewang@nvidia.com>
Tue, 31 Mar 2020 00:21:04 +0000 (17:21 -0700)
committerIlya Maximets <i.maximets@ovn.org>
Tue, 12 May 2020 18:03:42 +0000 (20:03 +0200)
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>
ovsdb/raft.c

index e0af6bd6252df9cd8b7ce69dd2a8c7fd72cc8b84..18f29973ec1e63b4d7f70f99405b990c1c4f8b75 100644 (file)
@@ -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