Skip to main content

solvers.OrchestrationModel

solvers.OrchestrationModel()

Analyzes Cluster Orchestration and Queueing (Little’s Law).

Caveat: This model uses a pedagogical M/D/1 queue (single server, deterministic service) to establish macroscopic wait-time bounds for dedicated, monolithic cluster workloads. For detailed multi-tenant job packing and preemption, a discrete-event M/G/c scheduler simulation would be required.

This model simulates the ‘Wait Wall’ in shared research clusters, calculating job completion times and researcher wait times based on cluster utilization and arrival rates.

Literature Source: 1. Little (1961), “A Proof for the Queuing Formula: L = λW.” 2. Barroso et al. (2018), “The Datacenter as a Computer” (Cluster Mgmt). 3. Jeon et al. (2019), “Analysis of Large-Scale Multi-Tenant GPU Clusters.”

Methods

Name Description
solve Estimate waiting time for a whole-fleet M/D/1 queue.

solve

solvers.OrchestrationModel.solve(
    fleet,
    arrival_rate_jobs_per_day,
    avg_job_duration_days,
)

Estimate waiting time for a whole-fleet M/D/1 queue.

Parameters

Name Type Description Default
fleet Fleet Fleet context for the query; its device count does not enter this single-server queue equation. required
arrival_rate_jobs_per_day float Nonnegative Poisson arrival rate in jobs/day. required
avg_job_duration_days float Positive deterministic service duration in days; one job occupies the whole fleet. required

Returns

Name Type Description
OrchestrationResult Dimensionless utilization, mean waiting time in days, queue length in jobs, and is_stable. Waiting time and queue length are infinite when utilization is at least one.

Notes

Equation: mu = 1 / service_days; rho = arrival_rate / mu; Wq = rho / (2 mu (1-rho)); Lq = rho^2 / (2(1-rho)) for rho < 1.

Assumptions: Poisson arrivals, deterministic service, one logical server, and steady state for rho < 1.

Excludes: Multi-tenant packing, job-size variation, scheduling priorities, and preemption.

References

Derivation: The M/G/1 mean-wait identity Wq = lambda E[S^2] / (2(1-rho)) becomes the stated M/D/1 expression when S is constant. Little’s identity Lq = lambda Wq gives queue length.

Examples

>>> from mlsysim import Systems
>>> r = OrchestrationModel().solve(Systems.Clusters.Research_256, 0.5, 1.0)
>>> r.is_stable and r.avg_wait_time_days.m_as("day") == 0.5
True
Back to top