pub struct DistributedMetrics {
pub chunks_processed: usize,
pub chunks_failed: usize,
pub chunks_retried: usize,
pub total_processing_time: Duration,
pub total_communication_time: Duration,
pub average_chunk_time: Duration,
pub load_balance_efficiency: f64,
pub bytes_sent: usize,
pub bytes_received: usize,
pub checkpoints_created: usize,
pub recoveries: usize,
}Expand description
Metrics for monitoring distributed computation
Fields§
§chunks_processed: usizeTotal number of chunks processed
chunks_failed: usizeNumber of chunks failed
chunks_retried: usizeNumber of chunks retried
total_processing_time: DurationTotal processing time
total_communication_time: DurationTotal communication time
average_chunk_time: DurationAverage chunk processing time
load_balance_efficiency: f64Load balance efficiency (0.0 to 1.0)
bytes_sent: usizeNetwork bytes sent
bytes_received: usizeNetwork bytes received
checkpoints_created: usizeNumber of checkpoints created
recoveries: usizeNumber of recoveries from failures
Implementations§
Source§impl DistributedMetrics
impl DistributedMetrics
Sourcepub fn update_load_balance(&mut self, node_loads: &[f64])
pub fn update_load_balance(&mut self, node_loads: &[f64])
Update load balance efficiency
Trait Implementations§
Source§impl Clone for DistributedMetrics
impl Clone for DistributedMetrics
Source§fn clone(&self) -> DistributedMetrics
fn clone(&self) -> DistributedMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 DistributedMetrics
impl Debug for DistributedMetrics
Source§impl Default for DistributedMetrics
impl Default for DistributedMetrics
Source§fn default() -> DistributedMetrics
fn default() -> DistributedMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DistributedMetrics
impl RefUnwindSafe for DistributedMetrics
impl Send for DistributedMetrics
impl Sync for DistributedMetrics
impl Unpin for DistributedMetrics
impl UnsafeUnpin for DistributedMetrics
impl UnwindSafe for DistributedMetrics
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more