pub struct ProfileSizing {Show 14 fields
pub name: String,
pub memory: u64,
pub cpus: u32,
pub slots: u32,
pub peaks: Peaks,
pub wait: Spread,
pub slot_wait: Spread,
pub starts: Starts,
pub busy: u32,
pub wants_slots: bool,
pub advice: Advice,
pub revert: Option<SizingRevert>,
pub hold: Option<MemoryHold>,
pub jobs: Vec<JobSizing>,
}Expand description
One profile: its limits now, its jobs’ peaks and waits, and the advice.
Fields§
§name: StringThe profile.
memory: u64Its memory now: each container’s hard limit.
cpus: u32Its cpus now.
slots: u32Its slots now.
peaks: PeaksIts jobs’ peaks.
wait: SpreadSeconds from queued to started, leaving out the time before the history’s start and the time no runnerd ran (ADR 0081).
slot_wait: SpreadSeconds of that wait with no slot of the profile free while the slice’s memory, the host’s and the CPU budget had room for the job’s runner: what one more slot would have saved (ADR 0090).
starts: StartsIts jobs by whether a warm runner took them, and how long each kind waited.
busy: u32The percent of the time since since its slots held a runner for a job, from when the job was queued, over
its slots now.
wants_slots: boolWhether more slots would help: under measured admission its jobs waited a minute or more for a slot alone at
p95 (slot_wait); under caps they waited that long at all (wait), or its slots were busy half the time.
advice: AdviceWhat to set memory and slots to. Sized for its largest peak, so no job gets less than it used.
revert: Option<SizingRevert>When the advice is to take back a lowering auto sizing made that went too far: what showed it.
hold: Option<MemoryHold>When a bound of the config holds the advice’s memory away from what its jobs need: [host] memory_ceiling or max_memory under it, min_memory over it (ADR 0086, 0088).
jobs: Vec<JobSizing>Each job that ran in it, by repository, workflow and name.
Implementations§
Source§impl ProfileSizing
impl ProfileSizing
Sourcepub fn held(&self) -> Option<MemoryHold>
pub fn held(&self) -> Option<MemoryHold>
What keeps its memory where it is although its jobs need more, [host] memory_ceiling or max_memory: no
raise is possible until that grows. None while a raise is possible or the slice is what has to grow.
Sourcepub fn advice_word(&self) -> String
pub fn advice_word(&self) -> String
Its advice in a word or two, for a table cell: Advice::word, or at ceiling or at max_memory while that
holds its memory where it is.
Trait Implementations§
Source§impl Clone for ProfileSizing
impl Clone for ProfileSizing
Source§impl Debug for ProfileSizing
impl Debug for ProfileSizing
Source§impl<'de> Deserialize<'de> for ProfileSizing
impl<'de> Deserialize<'de> for ProfileSizing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProfileSizing
Source§impl PartialEq for ProfileSizing
impl PartialEq for ProfileSizing
Source§impl Serialize for ProfileSizing
impl Serialize for ProfileSizing
impl StructuralPartialEq for ProfileSizing
Auto Trait Implementations§
impl Freeze for ProfileSizing
impl RefUnwindSafe for ProfileSizing
impl Send for ProfileSizing
impl Sync for ProfileSizing
impl Unpin for ProfileSizing
impl UnsafeUnpin for ProfileSizing
impl UnwindSafe for ProfileSizing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.