[ovs-dev] [PATCH v3 5/5] ovsdb raft: Support leader election time change online.

Han Zhou zhouhan at gmail.com
Thu Aug 22 21:14:26 UTC 2019


On Mon, Aug 19, 2019 at 9:30 AM Han Zhou <zhouhan at gmail.com> wrote:
>
> From: Han Zhou <hzhou8 at ebay.com>
>
> A new unixctl command cluster/change-election-timer is implemented to
> change leader election timeout base value according to the scale needs.
>
> The change takes effect upon consensus of the cluster, implemented through
> the append-request RPC.  A new field "election-timer" is added to raft log
> entry for this purpose.
>
> Signed-off-by: Han Zhou <hzhou8 at ebay.com>
> ---
>  Documentation/ref/ovsdb.5.rst |  32 ++++----
>  ovsdb/ovsdb-server.1.in       |  15 ++++
>  ovsdb/raft-private.c          |  10 +++
>  ovsdb/raft-private.h          |   2 +
>  ovsdb/raft-rpc.h              |   1 +
>  ovsdb/raft.c                  | 187
+++++++++++++++++++++++++++++++++++-------
>  tests/ovsdb-cluster.at        |  56 +++++++++++++
>  7 files changed, 259 insertions(+), 44 deletions(-)
>

Hi Ben,

As discussed in the meeting today, this patch has bugs and here are the
fixes:

https://patchwork.ozlabs.org/patch/1151821/
https://patchwork.ozlabs.org/patch/1151822/

Please take a look. If review passed, please back port to 2.12. Sorry for
the inconvenience.

Thanks,
Han


More information about the dev mailing list