memgraph/src/raft
Matija Santl a7ee70e365 Add KVStore::CompactRange to free disk space in HA
Summary:
Manually call `CompactRange` on KVStore (rocksDB) to free disk space
upon Raft log compaction.

Raft log takes surprisingly large amount of disk space (1MB for 1000 entries) so
we need to free disk space as we compact the log into snapshot.

When `log_size_snapshot_threshold` set to `5000` the disk usage of the
`durability_dir` goes from `4.8 MB` to `240 KB`.

Reviewers: ipaljak

Reviewed By: ipaljak

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1939
2019-04-10 15:29:59 +02:00
..
config.hpp Add replication timeout in Raft 2019-02-27 17:42:35 +01:00
coordination.cpp Add log compaction for Raft, pt. 2 2019-02-04 15:32:07 +01:00
coordination.hpp Add log compaction for Raft, pt. 2 2019-02-04 15:32:07 +01:00
exceptions.hpp Add replication timeout in Raft 2019-02-27 17:42:35 +01:00
log_entry.lcp Implement log replication in Raft 2019-01-04 16:07:12 +01:00
raft_interface.hpp Add SHOW RAFT INFO query to HA 2019-04-08 13:55:55 +02:00
raft_rpc_messages.lcp Add log compaction for Raft, pt. 2 2019-02-04 15:32:07 +01:00
raft_server.cpp Add KVStore::CompactRange to free disk space in HA 2019-04-10 15:29:59 +02:00
raft_server.hpp Add SHOW RAFT INFO query to HA 2019-04-08 13:55:55 +02:00
replication_log.hpp Fix Raft's ReplicationLog 2019-01-23 16:27:51 +01:00
replication_timeout_map.hpp Fail HA benchmark on non-zero exit status 2019-03-14 16:53:58 +01:00
snapshot_metadata.lcp Add log compaction for Raft, pt. 2 2019-02-04 15:32:07 +01:00
storage_info_rpc_messages.lcp Add proper storage stats for HA 2019-03-07 15:00:40 +01:00
storage_info.cpp Add proper storage stats for HA 2019-03-07 15:00:40 +01:00
storage_info.hpp Add proper storage stats for HA 2019-03-07 15:00:40 +01:00