pub struct WorkerRepurposePlan {
pub fetch_workers: usize,
pub persist_workers: usize,
pub fetch_queue_capacity: usize,
pub persist_queue_capacity: usize,
pub dispatch_target: usize,
}Expand description
Worker allocation plan for staged daemon pipelines where fetch and persistence run concurrently.
Fields§
§fetch_workers: usizeNumber of fetch workers actively scraping upstream sources.
persist_workers: usizeNumber of dedicated persistence workers (CSV + inserts + post-fetch side effects).
fetch_queue_capacity: usizeCapacity of the fetch queue feeding fetch workers.
persist_queue_capacity: usizeCapacity of the persistence queue feeding persist workers.
dispatch_target: usizeNumber of randomized fetch jobs to keep in flight.
Implementations§
Source§impl WorkerRepurposePlan
impl WorkerRepurposePlan
Sourcepub fn for_randomized_registry(
fetch_workers: usize,
fetch_queue_capacity: usize,
dispatch_target: usize,
) -> Self
pub fn for_randomized_registry( fetch_workers: usize, fetch_queue_capacity: usize, dispatch_target: usize, ) -> Self
Build a plan for randomized registry ingestion.
dispatch_target should already include provider-specific prefetch shaping.
Trait Implementations§
Source§impl Clone for WorkerRepurposePlan
impl Clone for WorkerRepurposePlan
impl Copy for WorkerRepurposePlan
Source§impl Debug for WorkerRepurposePlan
impl Debug for WorkerRepurposePlan
impl Eq for WorkerRepurposePlan
Source§impl PartialEq for WorkerRepurposePlan
impl PartialEq for WorkerRepurposePlan
impl StructuralPartialEq for WorkerRepurposePlan
Auto Trait Implementations§
impl Freeze for WorkerRepurposePlan
impl RefUnwindSafe for WorkerRepurposePlan
impl Send for WorkerRepurposePlan
impl Sync for WorkerRepurposePlan
impl Unpin for WorkerRepurposePlan
impl UnsafeUnpin for WorkerRepurposePlan
impl UnwindSafe for WorkerRepurposePlan
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