[ovs-dev] [PATCH v2 4/9] ovsdb-server: Integrate stream replay engine.
Dumitru Ceara
dceara at redhat.com
Mon May 10 10:13:26 UTC 2021
On 4/13/21 12:00 AM, Ilya Maximets wrote:
> This change adds support of stream record/replay functionality to
> ovsdb-server.
>
> Since current replay engine doesn't work well with time-based
> events generated locally, it will work only with standalone databases
> for now (raft heavily depends on time).
>
> To use this functionality run:
>
> Recording:
>
> # create a directory for replay files.
> mkdir replay_dir
> # copy current db for later use by replay
> cp my_db ./replay_dir/my_db
> ovsdb-server --replay-record=./replay_dir <OVSDB_ARGS> my_db
> # connect some clients and run some ovsdb transactions
> ovs-appctl -t ovsdb-server exit
>
> Replay:
>
> # restore db from the copy
> cp ./replay_dir/my_db my_db.for_replay
> ovsdb-server --replay=./replay_dir <OVSDB_ARGS> my_db.for_replay
> At this point ovsdb-server should execute all the same commands
> and transactions. Since the last command was 'exit' via unixctl,
> ovsdb-server will exit in the end.
>
> Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
> ---
Acked-by: Dumitru Ceara <dceara at redhat.com>
Regards,
Dumitru
More information about the dev
mailing list