diff options
author | Han Zhou <hzhou8@ebay.com> | 2019-08-19 09:30:00 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-08-21 11:30:08 -0700 |
commit | 8e35461419a63fc5ca1e492994d08c02295137e1 (patch) | |
tree | e6d5ad83245237d78a1cf139eae9d74eda3010d9 /ovsdb/raft-rpc.h | |
parent | 923f01cad678228224ae4fe86466e2f61ab2c9d0 (diff) | |
download | openvswitch-8e35461419a63fc5ca1e492994d08c02295137e1.tar.gz |
ovsdb raft: Support leader election time change online.
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@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/raft-rpc.h')
-rw-r--r-- | ovsdb/raft-rpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/raft-rpc.h b/ovsdb/raft-rpc.h index bdc3429cc..221f24d00 100644 --- a/ovsdb/raft-rpc.h +++ b/ovsdb/raft-rpc.h @@ -223,6 +223,7 @@ struct raft_install_snapshot_request { uint64_t last_term; /* Term of last_index. */ struct uuid last_eid; /* Last entry ID. */ struct json *last_servers; + uint64_t election_timer; /* Data. */ struct json *data; |