Struct exocore_chain::DirectoryChainStoreConfig [−][src]
pub struct DirectoryChainStoreConfig {
pub segment_over_allocate_size: u64,
pub segment_max_size: u64,
pub segment_max_open_mmap: usize,
pub operation_index_max_memory_items: usize,
}
Expand description
Configuration for directory based chain persistence.
Fields
segment_over_allocate_size: u64
Segment over allocation, in bytes. When resizing a segment, this amount of bytes will be allocated over the required len to prevent remapping the segment too often.
segment_max_size: u64
Maximum size in bytes per segment. This is a soft limit since the last
block could overflow that maximum. This should be small enough so
that a few segments can fit in allocable virtual space on 32b
systems. See segment_max_open
for maximum concurrently opened
segments.
segment_max_open_mmap: usize
Maximum number of segments concurrently mmap. On 64b systems, where
virtual memory isn’t a problem, this can be high. But on 32b
systems, one should aim to have maximum ~1-2gb of concurrently mmap
segments. See segment_max_size
for maximum size per segment.
operation_index_max_memory_items: usize
Maximum number of operations to keep in memory in the operation index before flushing into a sorted file.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DirectoryChainStoreConfig
impl Send for DirectoryChainStoreConfig
impl Sync for DirectoryChainStoreConfig
impl Unpin for DirectoryChainStoreConfig
impl UnwindSafe for DirectoryChainStoreConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more