pub struct AdmissionSnapshot {
pub slots: Vec<ResidentSlotSnapshot>,
pub queued: Vec<QueuedModelSnapshot>,
pub total_queued: u64,
pub total_swaps: u64,
pub secondary_slot: SecondarySlotStatus,
}Expand description
Everything the admission queue and resident set look like right now.
Fields§
§slots: Vec<ResidentSlotSnapshot>Models resident in VRAM, primary first. Empty before anything has been launched.
queued: Vec<QueuedModelSnapshot>Models with requests waiting, oldest waiter first. Empty in the steady state — a non-empty list means traffic is being batched behind a swap.
total_queued: u64Requests that have waited in the queue since the runtime started.
Compare against Self::total_swaps: a large ratio is the queue doing
its job, batching many requests behind one swap.
total_swaps: u64Model swaps performed since the runtime started.
secondary_slot: SecondarySlotStatusWhy the second slot is or is not in use.
Implementations§
Trait Implementations§
Source§impl Clone for AdmissionSnapshot
impl Clone for AdmissionSnapshot
Source§fn clone(&self) -> AdmissionSnapshot
fn clone(&self) -> AdmissionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdmissionSnapshot
impl Debug for AdmissionSnapshot
Source§impl Default for AdmissionSnapshot
impl Default for AdmissionSnapshot
Source§fn default() -> AdmissionSnapshot
fn default() -> AdmissionSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for AdmissionSnapshot
impl PartialEq for AdmissionSnapshot
Source§fn eq(&self, other: &AdmissionSnapshot) -> bool
fn eq(&self, other: &AdmissionSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdmissionSnapshot
impl Serialize for AdmissionSnapshot
impl Eq for AdmissionSnapshot
impl StructuralPartialEq for AdmissionSnapshot
Auto Trait Implementations§
impl Freeze for AdmissionSnapshot
impl RefUnwindSafe for AdmissionSnapshot
impl Send for AdmissionSnapshot
impl Sync for AdmissionSnapshot
impl Unpin for AdmissionSnapshot
impl UnsafeUnpin for AdmissionSnapshot
impl UnwindSafe for AdmissionSnapshot
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