pub struct FailoverConfig {
pub peers: Vec<String>,
pub timeout_secs: u64,
}Expand description
Failover retrieval configuration.
peers is a list of external archiver URLs serving the same Java-style
retrieval endpoint (/retrieval/data/getData.raw). At query time, the
archiver fetches the same pv + time range from each peer and merges
the results with the local stream, dropping samples with duplicate
timestamps.
Fields§
§peers: Vec<String>Per-peer retrieval base URLs (e.g. https://archiver-b.example/retrieval).
getData.raw is appended automatically.
timeout_secs: u64HTTP timeout per peer fetch (seconds).
Trait Implementations§
Source§impl Clone for FailoverConfig
impl Clone for FailoverConfig
Source§fn clone(&self) -> FailoverConfig
fn clone(&self) -> FailoverConfig
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 FailoverConfig
impl Debug for FailoverConfig
Source§impl<'de> Deserialize<'de> for FailoverConfig
impl<'de> Deserialize<'de> for FailoverConfig
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 FailoverConfig
impl RefUnwindSafe for FailoverConfig
impl Send for FailoverConfig
impl Sync for FailoverConfig
impl Unpin for FailoverConfig
impl UnsafeUnpin for FailoverConfig
impl UnwindSafe for FailoverConfig
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