pub enum Workload {
Balanced,
LowLatency,
HighThroughput,
Durable,
LargeValues,
SmallValues,
}Expand description
Bitcask deployment-intent presets for Config. Pick one as the builder
start point: Config::for_workload(Workload::…) or a sugar method.
Variants§
Balanced
Balanced middle-ground (closest to the former Default).
LowLatency
Embedded / low-latency: few shards, small files & buffers.
HighThroughput
High-throughput server: many shards, large files & buffers.
Durable
Durability-first: narrow loss window (small write buffer) + enable_fsync.
NOTE: enable_fsync is currently a no-op for the Bitcask write path
(read only by FixedStore). Bitcask durability here = small
write_buffer_size + Flusher/flush()/close(). The flag is set as a
forward-compat placeholder (spec §F1).
LargeValues
Large disk-resident values (Var collections, big blobs): large files,
O_DIRECT, and a non-zero value-cache baseline.
SmallValues
Var, many small values, working set > RAM (e.g. messages): block cache +
O_DIRECT.
Trait Implementations§
impl Copy for Workload
impl Eq for Workload
impl StructuralPartialEq for Workload
Auto Trait Implementations§
impl Freeze for Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnsafeUnpin for Workload
impl UnwindSafe for Workload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.