Descriptive and Predictive Analysis of Aggregating Functions in Serverless Clouds: the Case of Video Streaming

Shangrui Wu, Chavit Denninnart, Xiangbo Li, Yan Wang, Mohsen Amini Salehi

TL;DR

This paper tackles the challenge of predicting time savings from merging similar tasks in serverless cloud environments, specifically for video streaming. They developed a Gradient Boosting Decision Tree (GBDT) model that can accurately estimate these savings, enabling smarter resource allocation and preventing deadline violations.

What Problem Does This Paper Address?

Serverless cloud platforms efficiently manage resources by aggregating similar tasks from multiple users. This "task merging" can significantly reduce computation time and costs. However, a critical hurdle is knowing how much time will be saved by merging a specific set of tasks. Without this knowledge, cloud providers might make suboptimal merging decisions, potentially leading to missed deadlines for tasks and degrading the Quality of Service (QoS). The sheer number of possible task combinations makes pre-calculating all savings infeasible, necessitating a predictive approach.

Methods

The researchers first conducted extensive benchmarking to understand the factors influencing time savings from merging video processing tasks. They then developed a predictive model using Gradient Boosting Decision Trees (GBDT). GBDT is an ensemble learning technique that iteratively builds decision trees, with each new tree correcting the errors of the previous ones. This approach is chosen for its robustness against overfitting, a common issue with single decision trees. The model takes characteristics of the tasks and video segments as input and outputs an estimated execution-time saving percentage.

Datasets

The study utilized a custom benchmark dataset comprising 3,159 video segments derived from 100 open-license YouTube videos. These segments were standardized to two-second clips in H.264 format. The dataset was used to benchmark various video transcoding tasks (changing bit-rate, frame-rate, resolution, and codec) both individually and in merged configurations. A portion of this data was used for training the GBDT model, while the rest was used for evaluation.

Key Insights and Ideas

  • Task Merging is a Double-Edged Sword: While merging tasks offers significant time savings, it can also degrade QoS if not managed carefully, especially when merging tasks with vastly different execution times.
  • The "Sweet Spot" for Merging: The study found that merging the first three tasks typically yields the most substantial savings. Beyond this point, the benefits taper off, and the complexity of managing larger merged tasks increases.
  • Codec Operations are Different: Video transcoding tasks involving codec changes behave distinctly from those involving bit-rate, frame-rate, or resolution changes. These codec operations have much longer execution times and can negatively impact the QoS of other merged tasks.
  • Predictive Modeling is Crucial: The vast number of potential task merging combinations makes pre-computation impossible. A predictive model is essential for informed decision-making.
  • GBDT's Predictive Power: The GBDT model proved highly effective in predicting time savings, outperforming simpler methods like lookup tables and even a Multi-Layer Perceptron (MLP).

Key Results

  • Task merging can save up to 44% of execution time.
  • Merging the first two tasks in the "Video Information Conversion" (VIC) group saves an average of 26%, increasing to 37% for three tasks.
  • The GBDT model achieved a Root Mean Square Error (RMSE) of 0.04, indicating high prediction accuracy.
  • The prediction accuracy of the GBDT model reached up to 93% for higher degrees of merging (4P).
  • The model's performance was significantly better than Naïve (lookup table) and MLP approaches, especially for higher degrees of merging.

Limitations and Future Work

The authors acknowledge that the number of possible merging cases is intractable, which is why they focused on a predictive model. They also note that while their study focused on video processing, the methodology and prediction model could be adapted to other contexts. Future work could involve exploring a broader variety of operations beyond video processing and developing multi-level predictors that first predict operation behavior and then the merge-saving based on parameters.

Summary updated

Abstract

Serverless clouds allocate multiple tasks (e.g., microservices) from multiple users on a shared pool of computing resources. This enables serverless cloud providers to reduce their resource usage by transparently aggregate similar tasks of a certain context (e.g., video processing) that share the whole or part of their computation. To this end, it is crucial to know the amount of time-saving achieved by aggregating the tasks. Lack of such knowledge can lead to uninformed merging and scheduling decisions that, in turn, can cause deadline violation of either the merged tasks or other following tasks. Accordingly, in this paper, we study the problem of estimating execution-time saving resulted from merging tasks with the example in the context of video processing. To learn the execution-time saving in different forms of merging, we first establish a set of benchmarking videos and examine a wide variety of video processing tasks-with and without merging in place. We observed that although merging can save up to 44% in the execution-time, the number of possible merging cases is intractable. Hence, in the second part, we leverage the benchmarking results and develop a method based on Gradient Boosting Decision Tree (GBDT) to estimate the time-saving for any given task merging case. Experimental results show that the method can estimate the time-saving with the error rate of 0.04, measured based on Root Mean Square Error (RMSE).

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Task-merging execution-time saving predictionGradient Boosting Decision Tree (GBDT) execution-time saving predictorRoot Mean Square Error (RMSE)0.04Execution Time Saving Prediction
Source quote
L8: Experimental results show that the method can estimate the time-saving with the error rate of 0.04, measured based on Root Mean Square Error (RMSE).
Merged-task prediction cases (4P)GBDT execution-time saving predictorPrediction accuracy (% correct predictions)93%Execution Time Saving Prediction · model=GBDT · configuration=M=350, L=0.1, D=11, S=30, J=2 · merging-degree=4P · acceptable-error-threshold=τ=0.12
Source quote
L329: Both MLP and GBDT significantly perform more accurate for higher degrees of merging (4P and 5P) than the lower ones (2P and 3P). The reason is that, the lower degree of merging saves relatively low amount of execution-time, which is difficult to accurately predict. The maximum accuracy is 93% when GBDT is employed in 4P.
BibTeX
@misc{wu2020descriptive,
  author = {Shangrui Wu and Chavit Denninnart and Xiangbo Li and Yan Wang and Mohsen Amini Salehi},
  title = {{Descriptive and Predictive Analysis of Aggregating Functions in Serverless Clouds: the Case of Video Streaming}},
  year = {2020},
  eprint = {2012.06021},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.06021},
}

Loading related content...

Figure