pub struct PreflightConfig {
pub enabled: bool,
pub max_replication_lag_mb: i64,
pub max_replication_lag_secs: i64,
pub long_query_threshold_secs: i64,
}Expand description
Configuration for pre-flight checks.
Replication-lag thresholds are engine-specific because the natural unit differs: PostgreSQL measures WAL lag in bytes, MySQL measures replica lag in seconds. Configure whichever applies to your deployment.
Fields§
§enabled: boolWhether pre-flight checks are enabled before migrations.
max_replication_lag_mb: i64PostgreSQL only: maximum acceptable WAL replication lag in megabytes
before warning (compared against pg_wal_lsn_diff).
max_replication_lag_secs: i64MySQL only: maximum acceptable replica lag in seconds before warning
(compared against Seconds_Behind_Source from SHOW REPLICA STATUS).
long_query_threshold_secs: i64Threshold in seconds for detecting long-running queries.
Trait Implementations§
Source§impl Clone for PreflightConfig
impl Clone for PreflightConfig
Source§fn clone(&self) -> PreflightConfig
fn clone(&self) -> PreflightConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreflightConfig
impl Debug for PreflightConfig
Auto Trait Implementations§
impl Freeze for PreflightConfig
impl RefUnwindSafe for PreflightConfig
impl Send for PreflightConfig
impl Sync for PreflightConfig
impl Unpin for PreflightConfig
impl UnsafeUnpin for PreflightConfig
impl UnwindSafe for PreflightConfig
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