pub struct KeepaliveServerParameters {
pub max_connection_age: Duration,
pub max_connection_age_grace: Duration,
pub time: Duration,
pub timeout: Duration,
}Expand description
Server-side keepalive parameters for the OTLP gRPC receiver.
All fields are Duration. A zero duration is the sentinel for “unset”: the translator
resolves time and timeout to their effective defaults, and treats max_connection_age and
max_connection_age_grace as “no limit.”
Fields§
§max_connection_age: DurationMaximum time a connection may exist before the server sends GOAWAY. A zero duration means no limit. Lower this to force periodic connection rotation in long-lived deployments.
max_connection_age_grace: DurationGrace period after max_connection_age before the connection is forcibly closed. A zero
duration means no limit. Increase this to give in-flight RPCs more time to finish during
age-based shutdown.
time: DurationIdle time before the server sends a keepalive PING. A zero duration is resolved by the translator to the default of 2 hours. Lower this to detect dead connections faster at the cost of more frequent PING traffic.
timeout: DurationTime to wait for a PONG after a keepalive PING before closing the connection. A zero duration is resolved by the translator to the default of 20 seconds. Increase this on networks with high latency or intermittent delays.
Trait Implementations§
Source§impl Clone for KeepaliveServerParameters
impl Clone for KeepaliveServerParameters
Source§fn clone(&self) -> KeepaliveServerParameters
fn clone(&self) -> KeepaliveServerParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more