Skip to main content
QUICK REVIEW

[Paper Review] Harnessing the Power of Serverless Runtimes for Large-Scale Optimization

Arda Aytekin, Mikael Johansson|arXiv (Cornell University)|Jan 10, 2019
Cloud Computing and Resource ManagementComputer Science22 references5 citations
TL;DR

This paper proposes using AWS Lambda serverless functions as workers in a master-worker architecture to solve large-scale optimization problems via distributed alternating direction method of multipliers (ADMM). It achieves up to 256x relative speedup and over 70% efficiency with 64 workers, demonstrating feasibility despite challenges in state management and cold starts.

ABSTRACT

The event-driven and elastic nature of serverless runtimes makes them a very efficient and cost-effective alternative for scaling up computations. So far, they have mostly been used for stateless, data parallel and ephemeral computations. In this work, we propose using serverless runtimes to solve generic, large-scale optimization problems. Specifically, we build a master-worker setup using AWS Lambda as the source of our workers, implement a parallel optimization algorithm to solve a regularized logistic regression problem, and show that relative speedups up to 256 workers and efficiencies above 70% up to 64 workers can be expected. We also identify possible algorithmic and system-level bottlenecks, propose improvements, and discuss the limitations and challenges in realizing these improvements.

Motivation & Objective

  • To investigate the feasibility of using serverless runtimes for generic, large-scale optimization problems.
  • To address the challenges of state management and worker straggling in long-lived, stateful optimization algorithms on serverless platforms.
  • To evaluate performance scalability and efficiency in a distributed ADMM setup using AWS Lambda as workers.
  • To identify algorithmic and system-level bottlenecks in serverless-based optimization and propose improvements.

Proposed method

  • Deploying a master-worker architecture where the master runs on a managed multi-core server and workers are AWS Lambda functions.
  • Implementing synchronous parallel ADMM to solve regularized logistic regression problems in a distributed manner.
  • Using point-to-point message passing for communication between master and workers, with state persistence managed externally.
  • Employing a star network topology to minimize communication overhead and ensure load balancing.
  • Monitoring cold-start latency, computation time, and worker responsiveness to assess performance bottlenecks.
  • Applying fault-tolerant design patterns to handle worker timeouts and ensure state consistency across iterations.

Experimental results

Research questions

  • RQ1Can serverless runtimes like AWS Lambda be effectively used to solve large-scale, stateful optimization problems?
  • RQ2What are the performance limits and scalability characteristics of using serverless workers in distributed ADMM?
  • RQ3How do cold-start latencies and worker straggling affect the efficiency of synchronous parallel optimization on serverless platforms?
  • RQ4What algorithmic and system-level improvements can mitigate bottlenecks such as communication overhead and straggler effects?

Key findings

  • Relative speedups of up to 256x were achieved with 256 workers in the distributed ADMM setup.
  • Parallel efficiency remained above 70% when using up to 64 workers, indicating strong scalability in the tested configuration.
  • Cold-start latencies were consistently low relative to computation times, with no significant performance degradation up to 64 workers.
  • Workers showed high responsiveness with no major stragglers—fewer than 10% of iterations had any worker in the slowest 10%.
  • Communication overhead was negligible for decision vectors of size d=10,000, but becomes a bottleneck for larger d (e.g., d>80,000).
  • The absence of inbound network connections and lack of collective communication primitives (e.g., AllReduce) limit the use of traditional HPC patterns like MPI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.