]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb replication: Provide option to configure probe interval.
authorNuman Siddique <numans@ovn.org>
Tue, 7 Jan 2020 04:54:48 +0000 (10:24 +0530)
committerBen Pfaff <blp@ovn.org>
Tue, 7 Jan 2020 20:32:22 +0000 (12:32 -0800)
commite988b8abeec9d4be94b519c5d4ed4586ff71fde0
tree1b19f1d36a1507df4b6e4cc21c8583ece2a021e7
parentc3428f4399cc98885175bda89d3388859552241a
ovsdb replication: Provide option to configure probe interval.

When ovsdb-server is in backup mode and connects to the active
ovsdb-server for replication, and if takes more than 5 seconds to
get the dump of the whole database, it will drop the connection
soon after as the default probe interval is 5 seconds. This
results in a snowball effect of reconnections to the active
ovsdb-server.

This patch handles or mitigates this issue by setting the
default probe interval value to 60 seconds and provide the option to
configure this value from the unixctl command.

Other option could be increase the value of 'RECONNECT_DEFAULT_PROBE_INTERVAL'
to a higher value.

Acked-by: Mark Michelson <mmichels@redhat.com>
Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
NEWS
ovsdb/ovsdb-server.1.in
ovsdb/ovsdb-server.c
ovsdb/replication.c
ovsdb/replication.h