pub struct NodeConfig {Show 15 fields
pub store: StoreSpec,
pub data_dir: PathBuf,
pub owner: String,
pub lease_ttl_ms: i64,
pub lease_wait_ms: i64,
pub ha: bool,
pub advertise: Option<String>,
pub index_interval: Duration,
pub index_backoff: u32,
pub index_tail_threshold: u64,
pub index_tail_deadline: Duration,
pub heartbeat_interval: Duration,
pub gc_interval: Option<Duration>,
pub gc_retention: Duration,
pub tx_fn_expander: Option<Arc<dyn TxFnExpander>>,
}Expand description
Node process configuration.
Fields§
§store: StoreSpecStorage-service backend for blobs and roots (mem, fs, or Turso).
data_dir: PathBufData directory holding the filesystem blob/root store (for the fs
backend) and the transaction logs (for every non-mem backend).
owner: StringStable owner identity for lease records.
lease_ttl_ms: i64Lease time-to-live in milliseconds.
lease_wait_ms: i64How long to wait for a held lease to expire before giving up.
ha: boolHigh-availability mode: when another owner holds a database’s lease, stand by and take over on expiry instead of failing startup, and on depose return to standby instead of shutting the process down.
advertise: Option<String>Client endpoint advertised in the lease for peer lease-holder
rediscovery (e.g. http://transactor-a:4334).
index_interval: DurationInterval between background index publications.
index_backoff: u32Minimum wait before the next index publication, as a multiple of the
previous publication’s duration. Publications currently rewrite every
index in full, so this stretches the effective interval as the
database grows, bounding the share of time and storage bandwidth
spent republishing to at most 1/(1+n); 0 disables the backoff.
index_tail_threshold: u64Pending log-tail growth (recorded datoms) below which a due publication is deferred, so trickle writes coalesce instead of rewriting every index; 0 publishes any pending work.
index_tail_deadline: DurationLongest a pending below-threshold tail may defer publication.
heartbeat_interval: DurationInterval between heartbeats on subscription streams.
gc_interval: Option<Duration>Interval between scheduled garbage-collection duties; None disables it.
gc_retention: DurationMinimum age of an unreachable blob before scheduled/manual online GC.
tx_fn_expander: Option<Arc<dyn TxFnExpander>>Optional database-function expander (:db/fn support).
Implementations§
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for NodeConfig
impl !UnwindSafe for NodeConfig
impl Freeze for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnsafeUnpin for NodeConfig
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request