pub struct PgStoreConfig {
pub schema: String,
pub retention: Duration,
pub lock_poll: Duration,
pub keepalive: Duration,
pub session_timeout: Duration,
pub commit_timeout: Duration,
pub max_connections: u32,
}Expand description
Store configuration.
Fields§
§schema: StringPostgreSQL schema holding this cluster’s tables (created if missing). Instances
configured with the same schema form one active-passive cluster; different schemas
are fully independent. Letters, digits and _ only.
retention: DurationHow long finished tasks are loaded on recovery, for key deduplication. Finished tasks that live tasks depend on are always loaded.
lock_poll: DurationInterval between attempts to take the leader lock.
keepalive: DurationInterval of liveness checks on the leader lock session.
session_timeout: DurationHow long the leader lock session may stay unresponsive before this instance steps down. Also used for the server-side TCP keepalive of that session.
commit_timeout: DurationUpper bound on one commit; a slower commit fails as StoreError::Unavailable (and
is retried by the scheduler).
max_connections: u32Size of the connection pool used for commits and queries.
Trait Implementations§
Source§impl Clone for PgStoreConfig
impl Clone for PgStoreConfig
Source§impl Debug for PgStoreConfig
impl Debug for PgStoreConfig
Auto Trait Implementations§
impl Freeze for PgStoreConfig
impl RefUnwindSafe for PgStoreConfig
impl Send for PgStoreConfig
impl Sync for PgStoreConfig
impl Unpin for PgStoreConfig
impl UnsafeUnpin for PgStoreConfig
impl UnwindSafe for PgStoreConfig
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> 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 more