Skip to main content

MAX_SHARDS

Constant MAX_SHARDS 

Source
pub const MAX_SHARDS: usize = 16;
Expand description

The most flusher shards one signal will run.

A ceiling, not a target: it sizes the per-shard health clocks in a static and it bounds how many blocks a signal can publish per flush interval. Above this the flushers are no longer the bottleneck — the decode in front of them is — and every extra shard is another open block’s worth of resident memory against the footprint axis. Sixteen is also mira_core::query’s scan fanout, and a machine wide enough to want more of one wants more of both.