Cloud Resource Optimization for Processing Multiple Streams of Visual Data

George K. Thiruvathukal, PhD, Zohar Kapach, Andrew Ulmer, Daniel Merrick, Arshad Alikhan, Yung-Hsiang Lu, Anup Mohan, Ahmed S. Kaseb, George K. Thiruvathukal

TL;DR

This paper tackles the challenge of efficiently allocating cloud resources for analyzing massive, real-time video streams from networked cameras. They propose a resource manager that considers various factors like analysis complexity, frame rates, and camera locations to select the most cost-effective cloud instances, demonstrating over 50% cost reduction in experiments.

What Problem Does This Paper Address?

The explosion of video data from millions of networked cameras presents a significant computational challenge. Analyzing this real-time visual data requires substantial computing power, and the demands can fluctuate dramatically. While cloud computing offers a scalable solution, efficiently managing these resources to minimize costs without sacrificing performance is a complex optimization problem. Factors like the type of analysis, the number of data streams, the required frame rates, and even the geographical distance between cameras and cloud instances all influence resource needs and costs. This paper aims to develop a smart resource manager that navigates these complexities to provide cost-effective video stream analysis in the cloud.

Methods

The core of this paper is the development of a resource manager that dynamically allocates cloud computing resources. This manager considers several key factors:

  • Characteristics of analysis programs: Different algorithms have varying needs for CPU cores, memory, and GPUs.
  • Desired frame rates: Some applications (like object tracking) require high frame rates, while others (like weather observation) can tolerate lower rates.
  • Image/frame sizes: Larger images demand more processing power.
  • Content complexity: The richness of the visual data (e.g., many moving objects) impacts computational load.
  • Locations of cameras and cloud instances: Network latency (round-trip time) between cameras and instances affects achievable frame rates.

The paper frames the problem as a multi-dimensional, multi-choice packing problem. This analogy compares data streams to "boxes" with specific resource requirements (CPU, memory, GPU) and cloud instances to "trucks" with different capacities and costs. They leverage existing work on adaptive resource management (ARMVAC) and extend it by incorporating instance location and GPU utilization. Specifically, they explore strategies that optimize CPU and GPU usage, as well as instance locations, to find the most cost-effective configurations.

Datasets

The paper utilizes data from the CAM² (Continuous Analysis of Many Cameras) project, which collects real-time visual data from publicly available network cameras. These cameras observe various locations like traffic intersections, university campuses, and tourist attractions. The experiments involve ten network cameras from CAM²'s database with frame rates ranging from 0.2 to 8 frames per second. They also use two object detection programs, VGG16 and ZF, for analysis.

Key Insights and Ideas

  • GPUs are not always the answer: While GPUs can significantly accelerate analysis at high frame rates (up to 16x), their benefits diminish at lower frame rates, where cheaper CPUs might be more cost-effective.
  • Location matters for latency: The geographical distance between a camera and a cloud instance directly impacts network latency, which can limit achievable frame rates. This means simply choosing the cheapest instance might not be optimal if it's too far away.
  • Balancing utilization is key: The research suggests that keeping resource utilization below 90% is crucial to avoid performance degradation.
  • Multi-dimensional optimization is necessary: Effectively managing cloud resources for video analysis requires considering multiple dimensions simultaneously: CPU, memory, GPU, and GPU memory, along with instance location.
  • Cost savings are substantial: By intelligently matching resource demands to instance capabilities and locations, significant cost reductions (over 50%) are achievable.

Key Results

Experiments demonstrate that their proposed resource management approach can achieve more than 50% cost reduction for real workloads. Figure 3 shows that their strategy (ST3, which selects between GPU and CPU instances) can reduce costs by as much as 61% compared to using only CPUs (ST1) or only GPUs (ST2) in certain scenarios. Figure 6 further illustrates cost comparisons between different resource managers (Nearest Location, ARMVAC, Globally Cheapest Location) at various frame rates, highlighting the effectiveness of their adaptive strategies.

Limitations and Future Work

  • Dynamic demands: The paper acknowledges that analysis program resource demands can vary due to many reasons, and their methods aim to make resource decisions quickly and apply them during runtime. However, the paper doesn't explicitly detail how they handle extremely rapid or unpredictable shifts in demand beyond the general adaptive nature of their approach.
  • Geographical location impact: While the paper discusses the impact of camera and instance locations on latency, it doesn't delve deeply into optimizing the placement of cameras themselves or how to manage a globally distributed set of cameras and instances in a more complex, large-scale deployment.
  • Future work: The paper suggests that considering instance types and locations simultaneously is a complex optimization problem. Future work could involve more sophisticated algorithms that jointly optimize these factors for even greater efficiency. The authors also mention that their adaptive solutions are implemented in Amazon EC2, implying that further experimentation and validation on other cloud platforms could be beneficial.

Summary updated

BibTeX
@inproceedings{phd2019cloud,
  author = {George K. Thiruvathukal, PhD and Zohar Kapach and Andrew Ulmer and Daniel Merrick and Arshad Alikhan and Yung-Hsiang Lu and Anup Mohan and Ahmed S. Kaseb and George K. Thiruvathukal},
  title = {{Cloud Resource Optimization for Processing Multiple Streams of Visual Data}},
  booktitle = {IEEE Multim},
  year = {2019},
  doi = {10.1109/mmul.2018.2890255},
}
Figure