pub struct DaemonConfig {Show 21 fields
pub shm_prefixes: Vec<String>,
pub tcp_addrs: Vec<String>,
pub http_addrs: Vec<String>,
pub shm_depth: usize,
pub wait_strategy: MyelonWaitStrategy,
pub tcp_tpc_threads: usize,
pub tcp_dispatch_workers: usize,
pub http_tpc_threads: usize,
pub http_dispatch_workers: usize,
pub puffer_dir: PathBuf,
pub puffer_ram_bytes: Option<u64>,
pub puffer_disk_bytes: Option<u64>,
pub puffer_block_size_bytes: Option<u64>,
pub s3_prefix: String,
pub slatedb_path: PathBuf,
pub namespace: String,
pub namespace_max_bytes: Option<u64>,
pub eviction_interval: Duration,
pub quiet_banner: bool,
pub trace_daemon: bool,
pub prefetch_dry_run: bool,
}Expand description
All the daemon-binary’s WMBT_KV_* knobs in one place.
Field rustdoc IS the operator documentation, keep it accurate.
Fields§
§shm_prefixes: Vec<String>SHM prefixes to serve. From WMBT_KV_DAEMON_SHM_PREFIX
(single value); CLI --prefix flags additively extend the
list. If empty after CLI + env, the daemon falls back to
["default"] when no TCP/HTTP listeners are configured.
tcp_addrs: Vec<String>TCP listener addresses. From WMBT_KV_TCP (comma-separated
host:port list); CLI --tcp <addr> flags extend.
http_addrs: Vec<String>HTTP listener addresses. From WMBT_KV_HTTP; CLI --http
extends.
shm_depth: usizeSHM ring depth. From WMBT_KV_DAEMON_SHM_DEPTH. Default 16.
wait_strategy: MyelonWaitStrategySHM consumer wait strategy. From WMBT_KV_DAEMON_SHM_WAIT_STRATEGY
(block / busyspin). Default Block (signal-driven
park): ~µs wake latency, 0% idle CPU. BusySpin keeps the
consumer thread spinning at 100% CPU for ultra-low-latency
RPC scenarios where the wake-µs matters and CPU is free.
tcp_tpc_threads: usizePer-shard compio TPC threads for the TCP listener. From
WMBT_KV_TCP_TPC_THREADS. Default 2 (SO_REUSEPORT-balanced
accept across 2 compio threads). Bump for >16 concurrent
clients.
tcp_dispatch_workers: usizeSync dispatch worker pool size behind the TCP compio bridge.
From WMBT_KV_TCP_DISPATCH_WORKERS. Default 8.
http_tpc_threads: usizePer-shard compio TPC threads for the HTTP listener. From
WMBT_KV_HTTP_TPC_THREADS. Default 2.
http_dispatch_workers: usizeSync dispatch worker pool size behind the HTTP compio bridge.
From WMBT_KV_HTTP_DISPATCH_WORKERS. Default 8.
puffer_dir: PathBufFoyer SSD-tier directory. From WMBT_KV_PUFFER_DIR. Default
~/.wombatkv/puffer (matches wombatkv-cabi’s default; survives
reboot, no LAN-port collisions across runs); falls back to
/tmp/wombatkv-puffer-shm-foyer with a warning if $HOME is
unset or mkdir -p fails (e.g. daemon launched as a system
service without a home dir). Also the default parent for
SlateDB if WMBT_KV_SLATEDB_PATH is unset.
puffer_ram_bytes: Option<u64>Foyer RAM-tier byte budget. From WMBT_KV_PUFFER_RAM_BYTES.
None means use FoyerCacheConfig’s default.
puffer_disk_bytes: Option<u64>Foyer SSD-tier byte budget. From WMBT_KV_PUFFER_DISK_BYTES.
puffer_block_size_bytes: Option<u64>Foyer-internal block size. From WMBT_KV_PUFFER_BLOCK_SIZE_BYTES.
s3_prefix: StringS3 object-key prefix for daemon-served blocks. From
WMBT_KV_S3_PREFIX. Default kv/puffer-shm.
slatedb_path: PathBufSlateDB L1 metadata-index on-disk root. From
WMBT_KV_SLATEDB_PATH. Defaults to <puffer_dir>/slatedb.
namespace: StringLogical namespace tag (multi-tenant scope). From
WMBT_KV_NAMESPACE. Default default.
namespace_max_bytes: Option<u64>Per-namespace LRU eviction cap (bytes). From
WMBT_KV_NAMESPACE_MAX_BYTES. None means eviction disabled
(no cap). Production deployments should set this, without it,
the bucket grows forever.
eviction_interval: DurationEviction worker poll interval. From
WMBT_KV_EVICTION_INTERVAL_SECS. Default 30s.
Suppress the 0.1.0-alpha banner. From WMBT_KV_QUIET_BANNER.
trace_daemon: boolTrace daemon SHM I/O to stderr. From
WMBT_KV_DAEMON_SHM_TRACE_DAEMON.
prefetch_dry_run: boolPrefetch worker logs candidates without materializing.
From WMBT_KV_PREFETCH_DRY_RUN. Useful for tuning
WMBT_KV_PREFETCH_TOP_K against a workload without paying
the actual GET cost.
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DaemonConfig
impl Debug for DaemonConfig
Auto Trait Implementations§
impl Freeze for DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);