-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kvserver: investigate raft entry cache sizing #98666
Copy link
Copy link
Closed
Labels
C-investigationFurther steps needed to qualify. C-label will change.Further steps needed to qualify. C-label will change.
Description
The raft entry cache is sized to 16mb per store. This seems very small:
cockroach/pkg/kv/kvserver/store.go
Lines 103 to 105 in e005c0f
| // defaultRaftEntryCacheSize is the default size in bytes for a | |
| // store's Raft log entry cache. | |
| defaultRaftEntryCacheSize = 1 << 24 // 16M |
The raft.entrycache.{accesses,hits} metrics can be used to arrive at a cache hit rate. This is something we should be paying attention to when optimizing write performance.
x-ref #98576 where this was noticed.
Jira issue: CRDB-25431
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-investigationFurther steps needed to qualify. C-label will change.Further steps needed to qualify. C-label will change.