非常贊,其中TestSnapshotSize一直想不到優(yōu)化,按照你的方法start之后直接嘗試replicate,快了很多,但是測試中總會時不時的有l(wèi)ogs were not trimmed的問題,求教有什么方法可以解決
還有就是whenever your key/value server detects that the Raft state size is approaching this threshold, it should save a snapshot
不知道怎么判斷算是approaching,我直接當(dāng)size >= maxstatesize的時候才去snapshot
6. 基于RAFT 實現(xiàn)容錯KV服務(wù)(3B)第一步 閱讀相關(guān)需求 https://pdos.csail.mit.edu/6.824/labs/lab-kvraft.html的Part B: Key/value serv...