Skip to main content

BUCKET_DURATIONS

Constant BUCKET_DURATIONS 

Source
pub const BUCKET_DURATIONS: [DurationMillis; 9];
Expand description

These are the durations of the hierarchical buckets that posts will collect in. They are spaced such that there are always roughly 4-6 “more granular” buckets per “less granular” bucket. This ensures that no overflowed bucket would result in many tiny buckets needing to be scanned at the next level. Also make sure that the “less granular” bucket is a round multiple of its “more` granular” successor.