memgraph/tests/feature_benchmark/ha
Matija Santl da95cbf4ec Add log compaction for Raft, pt. 1
Summary:
In this part of log compaction for raft, I've implemented snapshooting
and snapshot recovery. I've also refactored the code a bit, so `RaftServer` now
has a pointer to the `GraphDb` and it can do some things by itself.

Log compaction requires some further work. Since snapshooting isn't synchronous
between peers, and each peer can work at their own pace, once we've compacted
the log so that the next log to be sent to peer `x` isn't available anymore, we
need to send the snapshot over the wire. This means that the next part will
contain the `InstallSnapshotRPC` and then maybe one more that will implement the
logic of sending `LogEntry` or the whole snapshot.

Reviewers: ipaljak

Reviewed By: ipaljak

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1834
2019-01-29 14:58:57 +01:00
..
benchmark.cpp Fix re-election in Raft 2019-01-22 14:51:24 +01:00
CMakeLists.txt Add HA benchmark 2019-01-15 13:32:04 +01:00
coordination.json Add HA benchmark 2019-01-15 13:32:04 +01:00
raft.json Add log compaction for Raft, pt. 1 2019-01-29 14:58:57 +01:00
runner.sh Add log compaction for Raft, pt. 1 2019-01-29 14:58:57 +01:00