Skip to main content

solvers.SeriesFailureModel

solvers.SeriesFailureModel()

Failure interval of a synchronous job built from heterogeneous components.

Any single component failure stops the job, so failure rates add (a series system with independent, exponentially distributed failures). Each component is stated per node, with its MTTF and its count per node; its share per device is count / devices_per_node / MTTF. A redundant part that cannot fail the node singly (an N+M power supply) enters with count 0. Added 2026-10-20.

Methods

Name Description
solve Aggregate heterogeneous component hazards for a synchronous job.

solve

solvers.SeriesFailureModel.solve(
    n_devices,
    devices_per_node,
    component_mttf,
    per_node,
)

Aggregate heterogeneous component hazards for a synchronous job.

Parameters

Name Type Description Default
n_devices int Positive accelerator count in the job. required
devices_per_node int Positive accelerator count per node. required
component_mttf dict of str to Quantity Positive component MTTFs in hours or compatible units. required
per_node dict of str to int Nonnegative component counts per node, with the same keys as component_mttf. Use zero for parts whose single failure cannot stop the node. required

Returns

Name Type Description
SeriesFailureResult Per-device component rates, total device and system rates in inverse hours, MTBF in hours, and failures per day.

Notes

Equation: component_rate[k] = per_node[k] / (devices_per_node * MTTF[k]); system_rate = n_devices * sum(component_rate); MTBF = 1/system_rate.

Assumptions: Independent exponential component failures; any included component failure stops the entire job. At least one component rate must be positive.

Excludes: Fault correlation, shared infrastructure, and explicit redundant failure combinations.

References

Derivation: Summing independent exponential hazards gives the series-system rate. Per-node rates are divided by devices per node and multiplied by the job’s device count.

Examples

>>> r = SeriesFailureModel().solve(8, 4, {"gpu": Q_(100, "hour")}, {"gpu": 4})
>>> r.mtbf == Q_(12.5, "hour")
True
Back to top