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 <[email protected]> > ---
Acked-by: Dumitru Ceara <[email protected]> Regards, Dumitru _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
