Skip to main content
QUICK REVIEW

[Paper Review] Execution Templates: Caching Control Plane Decisions for Strong Scaling of Data Analytics

Omid Mashayekhi, Hang Qu|arXiv (Cornell University)|May 4, 2017
Cloud Computing and Resource ManagementComputer Science29 references12 citations
TL;DR

This paper introduces execution templates, a control plane abstraction that enables centralized scheduling with fine-grained task control while achieving the high throughput of distributed systems—scaling to 500,000 tasks per second in evaluation. By caching frequently executed control flow blocks and allowing dynamic edits or template replacements, execution templates maintain scheduling flexibility without sacrificing performance, enabling strong scaling in data analytics workloads.

ABSTRACT

Control planes of cloud frameworks trade off between scheduling granularity and performance. Centralized systems schedule at task granularity, but only schedule a few thousand tasks per second. Distributed systems schedule hundreds of thousands of tasks per second but changing the schedule is costly. We present execution templates, a control plane abstraction that can schedule hundreds of thousands of tasks per second while supporting fine-grained, per-task scheduling decisions. Execution templates leverage a program's repetitive control flow to cache blocks of frequently-executed tasks. Executing a task in a template requires sending a single message. Large-scale scheduling changes install new templates, while small changes apply edits to existing templates. Evaluations of execution templates in Nimbus, a data analytics framework, find that they provide the fine-grained scheduling flexibility of centralized control planes while matching the strong scaling of distributed ones. Execution templates support complex, real-world applications, such as a fluid simulation with a triply nested loop and data dependent branches.

Motivation & Objective

  • To address the bottleneck in control planes of data analytics frameworks that limits strong scaling despite increasing CPU and task throughput.
  • To reconcile the trade-off between fine-grained scheduling (centralized) and high task throughput (distributed) in modern data analytics systems.
  • To design a control plane abstraction that supports dynamic, data-dependent control flow while maintaining low-latency, high-throughput task scheduling.
  • To evaluate execution templates in real-world workloads, including complex simulations with nested loops and conditional branches.
  • To demonstrate that execution templates can match the performance of distributed data flow systems while retaining the scheduling flexibility of centralized controllers.

Proposed method

  • Execution templates cache blocks of frequently executed tasks in the controller, reducing repeated scheduling decisions.
  • Templates are instantiated by sending a single message, enabling low-latency task execution at scale.
  • Small scheduling changes are applied via dynamic edits to existing templates, while major changes trigger installation of new templates.
  • The system uses program analyses to generate efficient templates and validates them against preconditions before deployment.
  • Patching mechanisms allow runtime updates to system state and control flow, supporting data-dependent branches and straggler mitigation.
  • Execution templates are integrated into Nimbus, a data analytics framework, with workers executing tasks from cached templates without controller intervention.

Experimental results

Research questions

  • RQ1Can a control plane abstraction achieve both fine-grained scheduling flexibility and strong scaling to hundreds of thousands of tasks per second?
  • RQ2How can repetitive control flow in long-running analytics jobs be exploited to reduce control plane overhead?
  • RQ3To what extent can dynamic control flow and data-dependent branches be supported within a cached, template-based scheduling model?
  • RQ4How does the performance of execution templates compare to centralized schedulers (e.g., Spark) and distributed data flow systems (e.g., Naiad) in real workloads?
  • RQ5Can execution templates support complex, production-grade analytics workloads such as fluid simulations with short-duration tasks?

Key findings

  • Execution templates achieve a throughput of 500,000 tasks per second in the Nimbus framework, matching the strong scaling of distributed data flow systems.
  • The system supports dynamic scheduling changes via in-place template edits, enabling low-latency responses to stragglers and faults.
  • Execution templates successfully handle complex workloads, including a PhysBAM particle-levelset water simulation with tasks as short as 100 μs and triply nested loops.
  • Evaluation shows execution templates outperform Spark’s centralized scheduler in high-throughput scenarios while retaining per-task scheduling flexibility.
  • The approach enables dynamic control flow through runtime patching, allowing data-dependent branches and state updates without restarting execution.
  • Execution templates generalize the concept of static data flow graphs by supporting multiple active templates, dynamic edits, and runtime reconfiguration.

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.