pub struct RequestConfig {
pub deadline_ms_default: u64,
pub auto_extend_deadline_for_ladder: bool,
}Expand description
Per-request defaults that apply to every scrape, crawl, or map call when
the caller does not specify an override. Currently only governs the
end-to-end deadline budget (see crw-core/src/deadline.rs).
Fields§
§deadline_ms_default: u64Default end-to-end deadline budget in milliseconds when a request does
not specify deadlineMs. The SLO p95 latency metric is computed only
over requests with deadline_ms <= 8000; longer values land in a
separate slow-path histogram.
auto_extend_deadline_for_ladder: boolWhen true (default), an implicit deadline (no per-request deadlineMs)
is auto-extended to max(deadline_ms_default, ladder_min) where
ladder_min = sum(http+lightpanda+chrome timeouts) + N_cdp_tiers * 28s.
This prevents chrome_timeout_ms = 30000 from appearing inert when
deadline_ms_default is small (issue #35).
Set to false to enforce a strict SLO regardless of tier sizing —
requests that would have completed under the extended budget will
instead time out at deadline_ms_default.
Trait Implementations§
Source§impl Clone for RequestConfig
impl Clone for RequestConfig
Source§fn clone(&self) -> RequestConfig
fn clone(&self) -> RequestConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more