pub struct NodeConfig {
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 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§
§data_dir: PathBufData directory holding the blob/root store and transaction logs.
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.
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