Skip to content

kvserver: investigate raft entry cache sizing #98666

@tbg

Description

@tbg

The raft entry cache is sized to 16mb per store. This seems very small:

// 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

Metadata

Metadata

Assignees

Labels

C-investigationFurther steps needed to qualify. C-label will change.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions