pub struct ProfileSizing {
pub name: String,
pub memory: u64,
pub cpus: u32,
pub slots: u32,
pub peaks: Peaks,
pub wait: Spread,
pub starts: Starts,
pub busy: u32,
pub wants_slots: bool,
pub advice: Advice,
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.
starts: StartsIts jobs by whether a warm runner took them, and how long each kind waited. Empty from a daemon before warm runners.
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 its jobs waited a minute or more for a slot at p95, or its slots were busy half the time: more slots would help.
advice: AdviceWhat to set memory and slots to. Sized for its largest peak, so no job gets less than it used.
jobs: Vec<JobSizing>Each job that ran in it, by repository, workflow and name.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.