Skip to main content

Module roll

Module roll 

Source
Expand description

Segment rolling decisions. Pure logic (no I/O) — easy to unit-test.

Roll when current segment reaches 500 events OR 512 KB.

Constants§

MAX_BYTES_PER_SEGMENT
MAX_EVENTS_PER_SEGMENT
MAX_SEGMENT_FILES
MAX_TOTAL_BYTES

Functions§

over_cap
should_roll