summaryrefslogtreecommitdiff
path: root/Documentation/ref
diff options
context:
space:
mode:
authorHan Zhou <hzhou8@ebay.com>2019-08-19 09:30:00 -0700
committerBen Pfaff <blp@ovn.org>2019-08-21 11:30:08 -0700
commit8e35461419a63fc5ca1e492994d08c02295137e1 (patch)
treee6d5ad83245237d78a1cf139eae9d74eda3010d9 /Documentation/ref
parent923f01cad678228224ae4fe86466e2f61ab2c9d0 (diff)
downloadopenvswitch-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 'Documentation/ref')
-rw-r--r--Documentation/ref/ovsdb.5.rst32
1 files changed, 18 insertions, 14 deletions
diff --git a/Documentation/ref/ovsdb.5.rst b/Documentation/ref/ovsdb.5.rst
index da0ad7a49..a6da65df3 100644
--- a/Documentation/ref/ovsdb.5.rst
+++ b/Documentation/ref/ovsdb.5.rst
@@ -226,20 +226,21 @@ The table below identifies the members that each type of record contains.
it is forbidden, and [1] that ``data`` and ``eid`` must be either both present
or both absent.
-============ ===== ==== ==== ====== ============ ====
-member Entry Term Vote Leader Commit Index Note
-============ ===== ==== ==== ====== ============ ====
-comment ? ? ? ? ? ?
-term yes yes yes yes
-index yes
-servers ?
-data [1]
-eid [1]
-vote yes
-leader yes
-commit_index yes
-note yes
-============ ===== ==== ==== ====== ============ ====
+============== ===== ==== ==== ====== ============ ====
+member Entry Term Vote Leader Commit Index Note
+============== ===== ==== ==== ====== ============ ====
+comment ? ? ? ? ? ?
+term yes yes yes yes
+index yes
+servers ?
+election_timer ?
+data [1]
+eid [1]
+vote yes
+leader yes
+commit_index yes
+note yes
+============== ===== ==== ==== ====== ============ ====
The members are:
@@ -256,6 +257,9 @@ The members are:
``"servers": <servers>``
Server configuration in a log entry.
+``"election_timer": <uint64>``
+ Leader election timeout base value in a log entry.
+
``"data": <json-value>``
The data in a log entry.