NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Occupy the Cloud: Distributed Computing for the 99%

Eric Jonas, Shivaram Venkataraman, Ion Stoica, Benjamin Recht

Introduction

Despite the maturity of cloud computing, running a distributed job remains a significant hurdle for the "99%" of users who aren't distributed systems experts. Traditional frameworks like Apache Spark or Hadoop require users to navigate a "dizzying array" of decisions: choosing instance types, managing cluster sizes, configuring networking, and handling machine failures. For many scientific and data analytic workloads that are "embarrassingly parallel," the overhead of setting up a cluster often exceeds the actual computation time. This paper introduces PyWren, a system designed to provide a "cloud button" for parallel code execution without infrastructure headaches.

System Architecture

PyWren is built on the serverless execution model, repurposing stateless functions (like AWS Lambda) as general-purpose compute nodes.

PyWren system architecture showing the interaction between the function scheduler, remote storage (Key-Value and Blob stores), and execution containers.

The system employs several key components:

  • Stateless Functions: AWS Lambda triggers short-lived instances to execute tasks.
  • Dynamic Code Injection: Using cloudpickle, PyWren serializes user Python functions and dependencies, pushing them to Amazon S3.
  • Remote Storage as Glue: S3 serves as a global filesystem for inputs and results. For low-latency coordination, such as shuffles, Redis is utilized.
  • The Map Primitive: A simple map(function, data_list) interface transparently handles serialization, invokes thousands of Lambda instances, and aggregates results.

Performance Evaluation

The authors evaluated PyWren using benchmarks including matrix multiplication, ImageNet featurization, and Word Count on Amazon Reviews.

Scaling performance of PyWren across compute (TFLOPS), I/O throughput (GB/s), and transaction rates (txns/sec) as a function of the number of workers.

Key results include:

  • Linear Scalability: The system achieved linear scaling up to 3,000 workers, delivering over 40 TFLOPS of aggregate compute power.
  • High I/O Throughput: Aggregate read/write bandwidth to S3 reached 60-80 GB/s, comparable to local SSD performance on typical EC2 nodes when scaled out.
  • Efficiency: On a Word Count task with 83M items, PyWren was only 17% slower than a dedicated PySpark cluster. ImageNet featurization (1.28M images) took just 113 seconds with 3,000 workers.

Discussion and Insights

PyWren challenges the "locality myth," arguing that modern datacenter network bandwidth to remote storage is now high enough (30-40 MB/s per core) to make the lack of data locality negligible for many workloads. By prioritizing simplicity and elasticity over peak efficiency, PyWren minimizes "developer overhead." Serverless functions allow scaling from zero to 3,000 cores in seconds, and their stateless nature simplifies fault tolerance through trivial restarts.

However, limitations remain. Launch overhead (20-30 seconds) makes it unsuitable for sub-second interactive queries. Large-scale shuffles are still challenging for S3, and resource constraints (RAM and execution time) limit "heavy" kernels. Future work includes addressing these bottlenecks and expanding access to specialized hardware like GPUs.

Summary updated

BibTeX
@inproceedings{jonas2017occupy,
  author = {Eric Jonas and Shivaram Venkataraman and Ion Stoica and Benjamin Recht},
  title = {{Occupy the Cloud: Distributed Computing for the 99\%}},
  booktitle = {SoCC},
  year = {2017},
  url = {https://openreview.net/forum?id=i9-TMPIqZ70},
}
Figure