Abstract
Modern large-scale Web services require robust performance prediction and bottleneck diagnosis. While classical queueing theory provides the mathematical foundation for these systems, it often assumes complete data availability. This paper introduces a framework that treats queueing networks as structured graphical models, utilizing Markov Chain Monte Carlo (MCMC) techniques to perform inference and learning even with significant missing data. By incorporating the "physics" of queueing, the proposed approach significantly outperforms standard regression models in extrapolating system behavior under high workloads.
Introduction
Engineers managing complex distributed systems, such as those at Google or Facebook, frequently grapple with two fundamental tasks: predicting system behavior under increased traffic and diagnosing the root causes of past performance degradations. Traditional machine learning approaches, like linear regression, often fail in these scenarios because they cannot capture the non-linear "latency explosion" that occurs as a system nears its capacity. Conversely, while classical queueing theory accurately models these dynamics, it typically requires granular event logs that are often unavailable or too expensive to collect in production environments.
The Physics of Queueing
The core advantage of queueing models over black-box regression is their inherent understanding of system constraints. In a queueing system, service times and arrival patterns dictate waiting times in a non-linear fashion.
As shown in Figure 3, when service times are short (Case 1), jobs may appear independent. However, as a service time increases (Case 2), it creates a bottleneck that forces subsequent jobs to wait, fundamentally altering the departure process. This paper leverages this "physics" by representing queueing networks as deterministic transformations of random variables within a generative graphical model.
Methodology: Inference under Uncertainty
To handle incomplete data, the authors employ a Slice Sampler (a form of MCMC) to explore the space of possible latent variables—such as internal arrival and service times—that are consistent with observed end-to-end measurements. A key technical insight is the inclusion of a Jacobian term in the probability density for Processor Sharing (PS) queues, which accounts for the non-one-to-one transformation between service and departure times.
Handling Long-Range Dependencies
A significant challenge in queueing networks is the "ripple effect": a change in the departure time of a single early request can propagate through the entire system, affecting all subsequent jobs.
Figure 6 illustrates how a delay in one job (shaded region in Panel 4) shifts the schedule for multiple servers and subsequent tasks. To make MCMC computationally feasible, the authors developed a "lazy updating" scheme. This algorithm identifies the specific subset of "relevant jobs" affected by a local change, avoiding the need to recalculate the entire system state at every step.
Experimental Evaluation
The framework was evaluated using the Cloudstone benchmark, a social media application mimic running on Amazon EC2. The setup included a load balancer, web servers, application instances, and a database, generating nearly 8,000 jobs across various queues.
Key Results
- Superior Extrapolation: The queueing-based model achieved a 63% reduction in Root Mean Square Error (RMSE) compared to regression when predicting high-workload performance from low-workload training data (71.7 ms vs 194 ms).
- Robustness: The MCMC sampler effectively reconstructed internal system states even when 75% of internal events were unobserved.
- Diagnostic Capability: The model successfully identified the database tier as the primary bottleneck during high traffic, a task where simple regression models typically fail.
Conclusion and Future Work
By bridging queueing theory and probabilistic graphical models, this work enables sophisticated performance analysis in data-constrained environments. Future research directions include increasing the granularity of the models to account for lower-level system artifacts and integrating these techniques with network tomography for end-to-end visibility. While the computational cost of MCMC remains higher than simple regression, the gains in predictive accuracy and diagnostic depth provide a compelling trade-off for critical infrastructure management.
Summary updated