Skip to main content

solvers.ReliabilityModel

solvers.ReliabilityModel()

Calculates Mean Time Between Failures (MTBF) and optimal checkpointing intervals.

This model handles the reliability modeling of massive clusters, helping determine the ‘Goodput’ of long-running training jobs. It identifies the probability of a job failure before completion and calculates the Young-Daly optimal interval to minimize wasted compute time.

Literature Source: 1. Young (1974), “A First-Order Approximation to the Optimum Checkpoint Interval.” 2. Daly (2006), “A Higher Order Estimate of the Optimum Checkpoint Interval for Restart-Dump Strategy.”

Methods

Name Description
solve Estimate fleet failure exposure and a checkpoint interval.

solve

solvers.ReliabilityModel.solve(
    fleet,
    job_duration_hours,
    checkpoint_time_s=60.0,
    avg_recovery_time_s=300.0,
)

Estimate fleet failure exposure and a checkpoint interval.

Parameters

Name Type Description Default
fleet Fleet Cluster configuration with positive node count and per-node device counts. required
job_duration_hours float Nonnegative planned job duration in hours. required
checkpoint_time_s float Positive write pause per checkpoint in seconds; default 60. 60.0
avg_recovery_time_s float Nonnegative recovery duration per failure in seconds; default 300, including reload, restart, and warmup. 300.0

Returns

Name Type Description
ReliabilityResult Fleet MTBF and checkpoint interval with time units, failure probability, expected failure count, and dimensionless goodput estimate.

See Also

mlsysim.physics.reliability.calc_mtbf_node : Sum independent component failure rates. mlsysim.physics.reliability.calc_young_daly_interval : Balance checkpoint writing and lost work.

Notes

Equation: lambda_node = n_gpu / MTBF_gpu + n_nic / MTBF_nic + n_psu / MTBF_psu; M = 1 / (fleet.count * lambda_node); P(failure) = 1 - exp(-job_duration / M); tau = sqrt(2 * checkpoint_time * M). Steady-state Young-Daly goodput is max(0, 1 - checkpoint_time / tau - tau / (2 * M) - recovery_time / M).

Assumptions: Independent exponential component failures and a synchronous series system. Nonredundant PSU counts come from the node; component lifetimes come from the Reliability registry. At the optimal Young-Daly interval tau = sqrt(2 * C * M), expected rework loss tau / (2 * M) equals checkpoint write overhead C / tau.

Excludes: Correlated failures, repair contention, asynchronous background checkpointing, and higher-order O((C / M)) Daly correction terms.

References

Young (1974), “A First Order Approximation to the Optimum Checkpoint Interval.” https://doi.org/10.1145/361147.361115 (bibliography key: young1974). Daly (2006), “A Higher Order Estimate of the Optimum Checkpoint Interval for Restart Dumps.” https://doi.org/10.1016/j.future.2004.11.016 (bibliography key: daly2006).

Examples

>>> from mlsysim import Systems
>>> r = ReliabilityModel().solve(Systems.Clusters.Research_256, 24)
>>> 0 <= r.failure_probability <= 1 and r.fleet_mtbf.m_as("hour") > 0
True
Back to top