pub struct WorkerPolicyWindow {Show 14 fields
pub sequence: u64,
pub start_entry_ordinal: u64,
pub end_entry_ordinal: u64,
pub observed_entries: u64,
pub observed_chunks: u64,
pub observed_work_ns: u64,
pub work_ns_per_entry: Option<u64>,
pub work_ns_per_entry_unavailable_reason: Option<&'static str>,
pub ready_directories: usize,
pub in_flight_directories: usize,
pub active_workers: usize,
pub handoff_backlog: usize,
pub requested_workers: Option<usize>,
pub decision: WorkerPolicyDecision,
}Expand description
One controller evaluation over a half-open range of completed entry ordinals.
Fields§
§sequence: u64Monotonic record number within this scan.
start_entry_ordinal: u64First completed-entry ordinal represented by this window, inclusive.
end_entry_ordinal: u64Ordinal immediately after the last represented entry.
observed_entries: u64Entries contributing to the service-time signal.
observed_chunks: u64Completed directory claims contributing to the service-time signal.
observed_work_ns: u64Worker time contributing to the service-time signal.
work_ns_per_entry: Option<u64>Derived service time, or null when no entry made the signal observable.
Why work_ns_per_entry is null.
ready_directories: usizeDirectories ready to claim when the controller evaluated the window.
in_flight_directories: usizeClaimed directories still being processed at that point.
active_workers: usizeLive worker threads at that point, including workers waiting for a claim.
handoff_backlog: usizeObservation batches sent but not yet received by the consumer.
requested_workers: Option<usize>Worker target requested by a scale decision.
decision: WorkerPolicyDecisionWhat the controller concluded from this window.