pub struct Profile {
pub memory: u64,
pub cpus: u64,
pub preparing: Option<Preparing>,
pub upkeep_due: bool,
pub count: usize,
pub slots: Vec<Slot>,
pub ran: Vec<Option<Key>>,
}Expand description
A profile’s slots: one concurrent job each.
Fields§
§memory: u64Memory a slot’s container may use.
cpus: u64CPU a slot’s container may use, in millicores; under a CPU budget, at most the budget, as a runner at its caps reserves it.
preparing: Option<Preparing>While the profile’s snapshot is rebuilt or its image pulled, none of its slots starts.
upkeep_due: boolUpkeep waits for its runners, all idle: its reseed (slot 1 ran a job since the last), or the shared caches’ check, which waits for every profile’s. Its warm runners stop, and none starts, so the upkeep can run.
count: usizeIts configured slots. A reload that lowered them leaves runners past them, whose slots close once they end.
slots: Vec<Slot>Index 0 is slot 1.
ran: Vec<Option<Key>>The job each slot ran last, which left its caches in the slot’s layer (ADR 0080), by slot index; None, or
no entry, where none is known.