pub struct ResourcesConfig {Show 13 fields
pub memory_budget_mb: u64,
pub buffer_size_kb: u64,
pub max_inflight_bytes: u64,
pub channel_capacity: usize,
pub max_batch_rows: usize,
pub max_batch_bytes: u64,
pub max_message_bytes: Option<u64>,
pub max_parallel_copies: usize,
pub connection_timeout: Duration,
pub retry_backoff: RetryBackoff,
pub snapshot_timeout: Duration,
pub feedback_interval: Duration,
pub max_replication_lag_bytes: u64,
}Fields§
§memory_budget_mb: u64§buffer_size_kb: u64§max_inflight_bytes: u64§channel_capacity: usize§max_batch_rows: usize§max_batch_bytes: u64§max_message_bytes: Option<u64>Largest single replication message accepted from the server (one row change can be
up to 1 GB in PostgreSQL). Larger messages stop the job with a resource error
before anything is buffered; nothing is acknowledged. None derives a value from
the remaining memory budget, capped at 32 MiB.
max_parallel_copies: usize§connection_timeout: Duration§retry_backoff: RetryBackoff§snapshot_timeout: Duration§feedback_interval: Duration§max_replication_lag_bytes: u64Implementations§
Source§impl ResourcesConfig
impl ResourcesConfig
Sourcepub fn fixed_budget_bytes(&self) -> u64
pub fn fixed_budget_bytes(&self) -> u64
Memory reserved for channel, batch and COPY buffers.
Sourcepub fn effective_max_message_bytes(&self) -> u64
pub fn effective_max_message_bytes(&self) -> u64
Effective message limit: the configured value, or half of what the budget leaves after the fixed buffers (a message is held twice while it is applied: decoded and serialised as statement parameters), capped at 32 MiB and never below 1 MiB.
Trait Implementations§
Source§impl Clone for ResourcesConfig
impl Clone for ResourcesConfig
Source§impl Debug for ResourcesConfig
impl Debug for ResourcesConfig
Source§impl Default for ResourcesConfig
impl Default for ResourcesConfig
Source§impl<'de> Deserialize<'de> for ResourcesConfigwhere
ResourcesConfig: Default,
impl<'de> Deserialize<'de> for ResourcesConfigwhere
ResourcesConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourcesConfig
impl RefUnwindSafe for ResourcesConfig
impl Send for ResourcesConfig
impl Sync for ResourcesConfig
impl Unpin for ResourcesConfig
impl UnsafeUnpin for ResourcesConfig
impl UnwindSafe for ResourcesConfig
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
Mutably borrows from an owned value. Read more