Getting Started with Cloud Computing (4); Advance of Amazon Web Services

Yusuke Matsui, Toshihiko YamasakiThe Journal of The Institute of Image Information and Television Engineers 2015

Introduction

Researchers frequently encounter hardware limitations when scaling simulations or processing large datasets. This article, part of a series in the Journal of the Institute of Image Information and Television Engineers (2015), explores how cloud computing—specifically Amazon Web Services (AWS)—can overcome the "Memory Wall" and the "Time Wall." The former occurs when a task exceeds local RAM capacity, while the latter refers to the inability to meet deadlines due to serial processing on limited hardware.

Methodology: Infrastructure as Code with Vagrant

While the AWS web console provides access to vast resources, manual configuration is often inefficient and non-reproducible. The authors propose using Vagrant with the vagrant-aws plugin to implement "Infrastructure as Code" (IaC). This approach allows researchers to define their computational environment in a simple text file (Vagrantfile).

Key Workflow Components

  1. Configuration as Code: Instance types, regions, and security settings are scripted, allowing for seamless transitions from low-cost testing instances (e.g., m3.medium) to high-performance production nodes (e.g., r3.8xlarge).
  2. Environment Persistence (AMIs): To avoid repetitive setup, the authors recommend "baking" custom Amazon Machine Images (AMIs). These images contain pre-installed research libraries like OpenCV or Boost.
  3. Synchronization: Vagrant’s shared folder feature ensures that local source code is automatically mirrored to the cloud instance, streamlining the development cycle.
Saving a customized instance as a reusable Amazon Machine Image (AMI).

Evaluation: The Memory-Stress Test

To demonstrate the utility of cloud scaling, the paper employs a synthetic memory-stress test. A C++ program is designed to allocate a vector of 10 billion integers, requiring approximately 40 GB of RAM—a volume that typically crashes standard local workstations.

C++ code snippet for the memory-intensive stress test.

Results and Discussion

The proposed workflow successfully deployed an r3.8xlarge instance with 244 GB of RAM. The stress test, which failed locally, ran to completion on the cloud infrastructure. Beyond raw power, the use of CLI-based orchestration (vagrant up) significantly reduced the human-time cost of managing multi-node clusters.

The authors also highlight the potential for cloud-based GPU instances to alleviate "GPU traffic jams" in shared lab environments. However, they note several caveats:

  • Cost Management: The ease of provisioning powerful hardware necessitates strict discipline (e.g., using vagrant destroy) to avoid unexpected expenses.
  • Technological Velocity: Cloud services evolve rapidly; documentation and best practices can become obsolete within a year.
  • Licensing: Software requiring local license servers (like MATLAB) may need complex networking configurations to function in the cloud.

Conclusion

By treating infrastructure as versionable code, researchers can achieve high levels of reproducibility and scalability. The transition from manual GUI management to automated orchestration is a critical step for modern, data-intensive research.

Summary updated

BibTeX
@article{matsui2015getting,
  author = {Yusuke Matsui and Toshihiko Yamasaki},
  title = {{Getting Started with Cloud Computing (4); Advance of Amazon Web Services}},
  journal = {The Journal of The Institute of Image Information and Television Engineers},
  year = {2015},
  doi = {10.3169/itej.69.752},
}
Figure