[ovs-dev] [PATCH] raft: Disable RAFT jsonrpc inactivity probe

Han Zhou hzhou at ovn.org
Fri Apr 17 03:45:19 UTC 2020


Hi Ben

We talked in a previous week's OVN meeting. I think you reviewed this patch
already and was about to merge it. Would you like to merge it when you get
time? Please also backport to 2.12 if no issues.

Thanks,
Han

On Mon, Mar 30, 2020 at 5:21 PM Zhen Wang <zhewang at nvidia.com> wrote:

> 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 at ovn.org>
> Signed-off-by: Zhen Wang <zhewang at nvidia.com>
> ---
>  ovsdb/raft.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/ovsdb/raft.c b/ovsdb/raft.c
> index 6391eeb13..c974e91b6 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
> --
> 2.20.1
>
>
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and
> may contain
> confidential information.  Any unauthorized review, use, disclosure or
> distribution
> is prohibited.  If you are not the intended recipient, please contact the
> sender by
> reply email and destroy all copies of the original message.
>
> -----------------------------------------------------------------------------------
>


More information about the dev mailing list