Skip to main content
QUICK REVIEW

[Paper Review] Starling: A Scalable Query Engine on Cloud Function Services

Matthew Perron, Raul Castro Fernandez|arXiv (Cornell University)|Nov 26, 2019
Cloud Computing and Resource ManagementComputer Science8 references6 citations
TL;DR

Starling is a serverless query engine built on cloud function platforms like AWS Lambda that enables interactive analytics on cloud-stored data with low cost and high scalability. By leveraging fine-grained parallelism, optimized data shuffling via object storage, and straggler mitigation, Starling achieves lower cost and comparable latency to provisioned systems for low-to-moderate query workloads.

ABSTRACT

Much like on-premises systems, the natural choice for running database analytics workloads in the cloud is to provision a cluster of nodes to run a database instance. However, analytics workloads are often bursty or low volume, leaving clusters idle much of the time, meaning customers pay for compute resources even when unused. The ability of cloud function services, such as AWS Lambda or Azure Functions, to run small, fine granularity tasks make them appear to be a natural choice for query processing in such settings. But implementing an analytics system on cloud functions comes with its own set of challenges. These include managing hundreds of tiny stateless resource-constrained workers, handling stragglers, and shuffling data through opaque cloud services. In this paper we present Starling, a query execution engine built on cloud function services that employs number of techniques to mitigate these challenges, providing interactive query latency at a lower total cost than provisioned systems with low-to-moderate utilization. In particular, on a 1TB TPC-H dataset in cloud storage, Starling is less expensive than the best provisioned systems for workloads when queries arrive 1 minute apart or more. Starling also has lower latency than competing systems reading from cloud object stores and can scale to larger datasets.

Motivation & Objective

  • Address the inefficiency of provisioning fixed clusters for bursty or low-volume analytics workloads in the cloud.
  • Enable interactive query performance without pre-loading data into proprietary formats or dedicated clusters.
  • Reduce cost per query by leveraging the fine-grained, on-demand execution model of serverless functions.
  • Overcome challenges of stateless workers, opaque data shuffling, and straggler effects in serverless environments.
  • Provide tunable trade-offs between cost and performance for ad-hoc analytical queries.

Proposed method

  • Map query operators to serverless function invocations, enabling fine-grained parallelism and on-demand scaling.
  • Use cloud object storage (e.g., Amazon S3) as a shuffle medium to transfer intermediate results between functions.
  • Optimize intermediate result formats to reduce storage cost and improve throughput under the pay-by-request model.
  • Implement a straggler detection and mitigation model to reduce query latency caused by slow-performing functions.
  • Expose tuning knobs to control the number of function invocations per query stage, enabling cost or latency optimization.
  • Leverage a query optimizer (based on Redshift) to select efficient join orders and reduce overall computational cost.

Experimental results

Research questions

  • RQ1Can a serverless query engine achieve interactive latency and lower cost than provisioned systems for low-to-moderate query workloads?
  • RQ2How can stateful operations like shuffles and aggregations be efficiently implemented on stateless, resource-constrained cloud functions?
  • RQ3To what extent can straggler effects be mitigated in serverless environments with opaque, high-latency storage backends?
  • RQ4Can a system built on serverless functions outperform existing cloud-native analytical databases in cost-efficiency for ad-hoc queries?
  • RQ5How does the pay-per-execution model of serverless platforms compare to cluster-based models in terms of total core-seconds consumed?

Key findings

  • On a 1TB TPC-H dataset stored in cloud object storage, Starling is less expensive than the best provisioned systems when queries arrive at intervals of 1 minute or longer.
  • Starling achieves lower total core-seconds of compute than a 16-node Presto cluster (presto-16) for most queries, indicating better computational efficiency.
  • Starling’s query latency is competitive with provisioned systems, even when reading directly from cloud storage without data pre-loading.
  • The system demonstrates scalability to larger datasets without requiring explicit provisioning decisions or cluster management.
  • Straggler mitigation techniques significantly reduce the impact of slow function invocations on end-to-end query latency.
  • The use of optimized intermediate result formats in object storage reduces storage cost while maintaining high aggregate throughput.

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.