Skip to content

Commit

Permalink
according to benchmark results, change DefaultRaftLogCompactionStep t…
Browse files Browse the repository at this point in the history
…o 10

Signed-off-by: Clement <gh.2lgqz@aleeas.com>
  • Loading branch information
clement2026 committed Aug 17, 2024
1 parent d594e49 commit 7c40239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const (
// DefaultRaftLogCompactionStep ensures raft log is compacted whenever
// applied index is a multiple of DefaultRaftLogCompactionStep.
// The minimum value is 1, meaning compacting raft log each time applied index increases.
DefaultRaftLogCompactionStep uint64 = 100
DefaultRaftLogCompactionStep uint64 = 10

StoreClusterPrefix = "/0"
StoreKeysPrefix = "/1"
Expand Down

0 comments on commit 7c40239

Please sign in to comment.