lablup/raftify

Implement snapshot creation policy

開放

#48 建立於 2023年10月17日

 (0 則留言) (0 個反應) (0 位負責人)Rust (14 個分叉)auto 404
featuregood first issueimprovementsnapshot

倉庫指標

星標
 (45 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The current implementation of creating a snapshot is only executed after handle_committed_normal_entry.

I think there could be better ways.

For example, we can implement the following policies:

Create a snapshot when the size of the FSM exceeds a specific threshold. Generate a snapshot when the number of log entries surpasses a certain count.

Note: snapshot contains several metadata configuring the cluster, so wrong implementation of this would break the consistency of the raft loop.

貢獻者指南