diff options
author | Dan Williams <dcbw@redhat.com> | 2021-05-25 11:21:15 -0500 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2021-05-27 13:26:29 -0700 |
commit | fb1e7863e8c00d6b9421c432e63bcd53a0074554 (patch) | |
tree | 3b701677db14f3c5d8c05a24785328030775f50f /ovsdb/ovsdb-tool.1.in | |
parent | 13c0eaa7b4fc2694a8c6cc8e6487ec6538c607e4 (diff) | |
download | openvswitch-fb1e7863e8c00d6b9421c432e63bcd53a0074554.tar.gz |
ovsdb-tool: add --election-timer=ms option to 'create-cluster'
After creating the new clustered database write a raft entry that
sets the desired election timer. This allows CMSes to set the
election timer at cluster start and avoid an error-prone
election timer modification process after the cluster is up.
Reported-at: https://bugzilla.redhat.com/1831778
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/ovsdb-tool.1.in')
-rw-r--r-- | ovsdb/ovsdb-tool.1.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-tool.1.in b/ovsdb/ovsdb-tool.1.in index 3bdda8506..3dda999f5 100644 --- a/ovsdb/ovsdb-tool.1.in +++ b/ovsdb/ovsdb-tool.1.in @@ -10,7 +10,7 @@ ovsdb\-tool \- Open vSwitch database management utility .IP "Database Creation Commands:" \fBovsdb\-tool \fR[\fIoptions\fR] \fBcreate \fR[\fIdb\fR [\fIschema\fR]] .br -\fBovsdb\-tool \fR[\fIoptions\fR] \fBcreate\-cluster \fIdb contents address\fR +\fBovsdb\-tool \fR[\fIoptions\fR] [\fB\-\-election\-timer=\fIms\fR] \fBcreate\-cluster \fIdb contents address\fR .br \fBovsdb\-tool \fR[\fIoptions\fR] [\fB\-\-cid=\fIuuid\fR] \fBjoin\-cluster\fI db name local remote\fR... .IP "Version Management Commands:" @@ -89,7 +89,7 @@ format, as specified in the OVSDB specification. The new database is initially empty. (You can use \fBcp\fR to copy a database including both its schema and data.) . -.IP "\fBcreate\-cluster\fI db contents local" +.IP "[\fB\-\-election\-timer=\fIms\fR] \fBcreate\-cluster\fI db contents local" Use this command to initialize the first server in a high-availability cluster of 3 (or more) database servers, e.g. for a database in an environment that cannot tolerate a single point of failure. It creates @@ -108,6 +108,12 @@ file that contains either an OVSDB schema in JSON format or a standalone OVSDB database. If it is a schema file, the new database will initially be empty, with the given schema. If it is a database file, the new database will have the same schema and contents. +.IP +Leader election will be initiated by a follower if there is no heartbeat +received from the cluster leader within the specified election timer. +The default leader election timer is 1000 miliseconds. To use a different value +when creating the database, specify \fB\-\-election\-timer=\fIms\fR, where +\fIms\fR is a value in miliseconds between 100 and 600000 inclusive. . .IP "[\fB\-\-cid=\fIuuid\fR] \fBjoin\-cluster\fI db name local remote\fR..." Use this command to initialize each server after the first one in an |