diff options
author | Zhen Wang <zhewang@nvidia.com> | 2020-03-30 17:21:04 -0700 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2020-05-12 17:07:15 +0200 |
commit | 6f21f8af779346eae734ada8684cdbe84f0efbf1 (patch) | |
tree | c86e8ae3d994b6ed1d430fc66547fccc21e5108c | |
parent | 4f14b59a09199be6f00daeb9a6335d05207e0636 (diff) | |
download | openvswitch-6f21f8af779346eae734ada8684cdbe84f0efbf1.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>
-rw-r--r-- | ovsdb/raft.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/raft.c b/ovsdb/raft.c index 150581413..395cc5611 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 |