非常贊弄抬,其中TestSnapshotSize一直想不到優(yōu)化熙揍,按照你的方法start之后直接嘗試replicate将塑,快了很多蠢络,但是測(cè)試中總會(huì)時(shí)不時(shí)的有l(wèi)ogs were not trimmed的問(wèn)題莲镣,求教有什么方法可以解決
還有就是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的時(shí)候才去snapshot
6. 基于RAFT 實(shí)現(xiàn)容錯(cuò)KV服務(wù)(3B)第一步 閱讀相關(guān)需求 https://pdos.csail.mit.edu/6.824/labs/lab-kvraft.html的Part B: Key/value serv...