pub struct ServerlessArchiveConfig {
pub interval: Duration,
pub max_segment_bytes: u64,
pub pause_on_lag_secs: u64,
pub generation_wal_bytes: u64,
pub generation_interval: Duration,
}Fields§
§interval: DurationBatch window: captured WAL is uploaded no later than this after the
oldest frame in the batch was captured (RED_WAL_ARCHIVE_INTERVAL_MS).
max_segment_bytes: u64Seal a batch early once it reaches this size
(RED_WAL_ARCHIVE_MAX_SEGMENT_BYTES).
pause_on_lag_secs: u64Refuse writes while the archive lag exceeds this many seconds
(RED_WAL_ARCHIVE_PAUSE_ON_LAG_SECS, 0 disables).
generation_wal_bytes: u64Publish a new generation after this many archived WAL bytes
(RED_SERVERLESS_GENERATION_WAL_BYTES, 0 disables).
generation_interval: DurationPublish a new generation after this long if any WAL was archived
(RED_SERVERLESS_GENERATION_INTERVAL_SECS, 0 disables).
Implementations§
Trait Implementations§
Source§impl Clone for ServerlessArchiveConfig
impl Clone for ServerlessArchiveConfig
Auto Trait Implementations§
impl Forget for ServerlessArchiveConfig
impl Freeze for ServerlessArchiveConfig
impl Move for ServerlessArchiveConfig
impl RefUnwindSafe for ServerlessArchiveConfig
impl Send for ServerlessArchiveConfig
impl Sync for ServerlessArchiveConfig
impl Unpin for ServerlessArchiveConfig
impl UnsafeUnpin for ServerlessArchiveConfig
impl UnwindSafe for ServerlessArchiveConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request