Introduction
Modern large-scale internet services, such as those operated by Google, Amazon, and Facebook, manage billions of requests across vast distributed infrastructures. To maintain performance and reliability, engineers often model these systems as networks of queues. However, obtaining the precise arrival and departure times necessary to fit these models is computationally expensive and often infeasible in production environments. This paper presents a Bayesian framework designed to perform inference on queueing networks using incomplete data, enabling accurate performance prediction and bottleneck diagnosis.
Problem Formulation
Distributed systems are typically composed of multiple tiers, including web servers, middleware, and storage backends. Each component can be modeled as a queue where requests wait for processing.
The primary challenge in modeling these systems is the "missing data" problem. While full logs would provide exact arrival and departure times, the overhead of such logging is prohibitive. Standard statistical methods struggle with incomplete data in this context because the unobserved variables exhibit complex, deterministic dependencies. For instance, a job's departure is constrained by its arrival time and the processing of preceding jobs, creating a cascading effect that complicates traditional inference.
Methodology
The proposed approach treats unobserved arrival and departure times as latent variables within a Bayesian framework. The core innovation lies in viewing the queueing network as a deterministic transformation. Rather than sampling the highly constrained departure times directly, the authors map the observed data back to independent "service times"—the intrinsic duration required to process a job excluding wait time.
To sample from the posterior distribution, the framework employs Markov chain Monte Carlo (MCMC) with slice sampling. A significant technical contribution is the "lazy updating scheme." While a single delay could theoretically affect all subsequent jobs, the authors demonstrate that in stable systems, the "Markov blanket" (the set of affected jobs) is typically small. Their algorithm efficiently identifies and updates only the relevant job sets, reducing the computational complexity from $O(N^2)$ to a manageable level. The framework supports various queueing disciplines, including multi-processor First-Come First-Served (FCFS), Random Selection for Service (RSS), and Processor Sharing (PS).
Experimental Results
The framework was evaluated using the Cloudstone benchmark—a realistic Web 2.0 application deployed on Amazon EC2—and synthetic datasets for bottleneck detection.
Extrapolation and Performance Prediction
When trained on low-workload data to predict performance under high-load conditions, the queueing model significantly outperformed standard regression. A 3-processor FCFS model achieved a Root Mean Squared Error (RMSE) of 71.7 ms, representing a 63% reduction in error compared to the best regression baseline (194 ms). This highlights the superiority of queueing models in capturing the non-linear response time "explosions" characteristic of saturated systems.
Data Imputation and Bottleneck Diagnosis
The model demonstrated robust performance in reconstructing missing service times. With only 25% of tasks observed, the model achieved an RMSE of 50.0 ms, compared to 80.4 ms for linear regression. Furthermore, the framework proved highly effective for "model selection as debugging." In synthetic tests designed to detect hidden bottlenecks, the Bayesian approach achieved an Area Under the ROC Curve (AUC) of 0.92, whereas traditional Least Angle Regression (LARS) performed near random chance (0.57 AUC).
Conclusion
This research establishes a viable path for applying rigorous queueing theory to real-world distributed systems where data is sparse. By leveraging Bayesian inference and efficient MCMC sampling, the framework allows engineers to predict system behavior under hypothetical workloads and identify architectural bottlenecks with high precision. Future work may involve extending service distributions with generalized linear models and incorporating hierarchical priors to better represent groups of similar servers.
Summary updated