DocLite: A Docker-Based Lightweight Cloud Benchmarking Tool

Blesson Varghese, Lawan Thamsuhang Subba, Long Thai, Adam Barker

Abstract

Selecting the optimal cloud Virtual Machine (VM) for specific application workloads is often a time-consuming and costly process. Traditional benchmarking methods require testing the entire capacity of a VM, which can take hours for high-resource instances. This paper presents DocLite, a lightweight benchmarking tool that leverages Docker container technology to test small resource "slices" of a VM. By benchmarking a fraction of the system, DocLite generates performance rankings up to 91 times faster than traditional methods while maintaining over 90% accuracy.

Introduction

The dynamic nature of cloud computing makes selecting the right instance type a high-stakes challenge. While benchmarking helps compare providers and instance types, the latency of full-system benchmarks prevents real-time analytics for scheduling or brokerage. For instance, a full memory benchmark on a 256GB RAM instance can incur significant costs and delays. DocLite addresses this by demonstrating that testing a small, isolated portion of a VM's resources is sufficient to characterize its overall performance for ranking purposes.

System Architecture

DocLite is designed as a middleware-based system that coordinates benchmarking tasks between a user-facing web portal and cloud infrastructure.

DocLite system architecture showing the interaction between the web portal, middleware, and cloud resources.

The architecture consists of several key components:

  • Web Portal: Allows users to supply weights for performance categories (Memory, Processor, Computation, Storage) based on their application's profile.
  • Benchmark Controller: Manages the request for rankings and interacts with a repository to store and retrieve benchmark data.
  • Cloud Controller: Comprising a Cloud Manager and Cloud Monitor, it executes benchmarking tools on VMs and retrieves metrics.
  • Docker Integration: Benchmarks are executed within Docker containers on target VMs, allowing for precise resource capping.

Methodology

DocLite employs two primary benchmarking strategies:

  1. Native Method: This method executes the lmbench suite within a small, resource-constrained container (e.g., 100MB RAM). It collects over 50 performance attributes, which are then aggregated into four weighted categories to produce a ranked list of VMs.
  2. Hybrid Method: This approach blends real-time "native" data with historical benchmark data from previous full-VM or DocLite runs to determine if longitudinal data enhances ranking accuracy.

Experimental Evaluation

The tool was evaluated using ten Amazon EC2 instance types, including m1.xlarge, cr1.8xlarge, and hi1.4xlarge. To validate ranking accuracy, DocLite's results were compared against the empirical performance of three real-world applications: a memory-intensive Molecular Dynamics simulation, a computationally heavy Risk Simulation, and the NASA Parallel Benchmark (NPB).

Key Results and Discussion

The evaluation revealed that DocLite provides a massive speedup, performing between 19 and 91 times faster than full-VM benchmarks. For example, a benchmark that took 822 minutes for an hs1.8xlarge instance was completed in just 8 minutes using a 100MB DocLite container.

The "Small Slice" Sufficiency

A critical finding of this research is that the performance characteristics of the underlying hardware are visible even in very small resource samples.

Benchmarking results for memory latency, float division, and read bandwidth across different container sizes.

As shown in the experimental data, there was less than a 2% difference in performance metrics when comparing 100MB, 500MB, and 1000MB container sizes. This confirms that a "lightweight" approach is sufficient for generating accurate relative rankings. The native method achieved over 90% correlation with actual application performance for sequential tasks and 86% for parallel tasks.

Ranking vs. Absolute Metrics

By shifting the focus from absolute performance metrics to relative rankings, DocLite provides high utility for cloud users with significantly less data. Interestingly, the Hybrid Method did not significantly outperform the Native Method, suggesting that "fresh" data from a quick benchmark is more valuable than historical data for current instance ranking.

Conclusion and Future Work

DocLite demonstrates that Docker-based resource isolation enables rapid and accurate cloud benchmarking. Future research will address current limitations, such as the lack of inter-VM network performance metrics and the reliance on manual user weighting for application profiles. Expanding the study to other cloud providers will also help determine the impact of different hypervisors and "noisy neighbor" effects on lightweight benchmarking accuracy.

Summary updated

BibTeX
@inproceedings{varghese2016doclite,
  author = {Blesson Varghese and Lawan Thamsuhang Subba and Long Thai and Adam Barker},
  title = {{DocLite: A Docker-Based Lightweight Cloud Benchmarking Tool}},
  booktitle = {CCGrid},
  year = {2016},
  doi = {10.1109/ccgrid.2016.14},
}
Figure