pub struct WalTcpExportConfig {
pub enabled: bool,
pub mode: WalTcpExportMode,
pub addr: String,
pub auth_token: Option<String>,
pub channel_capacity: usize,
pub max_subscribers: usize,
pub connect_timeout_ms: u64,
pub write_timeout_ms: u64,
pub reconnect_backoff_ms: u64,
pub backpressure_on_full: bool,
}Expand description
Optional live WAL export settings.
The TCP exporter streams the same framed WAL records used on disk. It is a live feed, not a replay service; disk WAL segments remain the authoritative recovery source.
Fields§
§enabled: boolEnable the TCP WAL exporter.
mode: WalTcpExportModeTCP export mode.
addr: StringAddress the exporter connects to or listens on, for example 127.0.0.1:7630.
auth_token: Option<String>Optional plaintext authentication token.
In connect mode, the token is sent to the configured collector before
WAL frames. In listen mode, subscribers must send the token before they
receive WAL frames.
channel_capacity: usizeBounded queue between the disk WAL writer and the TCP exporter.
max_subscribers: usizeMaximum accepted subscribers in listen mode.
connect_timeout_ms: u64Maximum time spent opening one TCP connection attempt.
write_timeout_ms: u64Maximum time spent writing a frame before reconnecting.
reconnect_backoff_ms: u64Delay between reconnect attempts after connect or write failure.
backpressure_on_full: boolIf true, a full TCP export queue backpressures the WAL writer.
If false, frames are dropped from the live TCP export when the exporter cannot keep up; disk WAL append still continues.
Trait Implementations§
Source§impl Clone for WalTcpExportConfig
impl Clone for WalTcpExportConfig
Source§fn clone(&self) -> WalTcpExportConfig
fn clone(&self) -> WalTcpExportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more