Optimal Deployment of Geographically Distributed Workflow Engines on the Cloud

Long Thai, Adam Barker, Blesson Varghese, Ozgur Akgun, Ian Miguel

Abstract

Modern scientific workflows often coordinate data-intensive web services distributed across global cloud regions. Traditional centralized orchestration suffers from the "trombone effect," where data travels excessive distances to a single engine, causing high latency. This paper presents a framework using constraint programming to optimize the deployment of multiple workflow engines. By strategically placing engines closer to the services they manage, the approach achieves execution speedups of 1.3x to 2.5x compared to centralized baselines.

Introduction

In the era of global cloud computing, scientific workflows frequently involve "Web services" spread across multiple continents. Managing these tasks from a single, centralized workflow engine creates a significant performance bottleneck. Data must often travel from its source to a distant engine and then back to a processing service, a phenomenon known as the "trombone effect." This research addresses the challenge of minimizing total execution time by determining the optimal geographical placement of decentralized orchestration engines.

Problem Formulation and Architecture

The core issue is the geographical distance between the workflow engine and the services it coordinates. In a centralized model, all control and data flow pass through one point. A decentralized model, however, allows multiple engines to be deployed across different regions, enabling them to pass intermediate data directly to one another.

Comparison of centralized and decentralized workflow orchestration architectures.

The authors model this as a minimization problem of "total movement time," accounting for service invocation costs and the cumulative data transfer costs across a Directed Acyclic Graph (DAG) of services.

Methodology: The Optimization Framework

The proposed framework consists of three primary components: a Constraint Solver, a Parser, and an Executor.

The multi-component framework for optimizing and executing decentralized workflows.
  1. Constraint Programming (CP): The system utilizes automated constraint modeling tools, specifically CONJURE and ESSENCE. This approach allows for an exhaustive search of the vast space of possible engine-to-region mappings to identify the mathematically optimal deployment plan.
  2. Decentralized Orchestration: The model supports multiple engines that communicate directly, reducing the need for data to return to a central "home base."
  3. Lightweight Engine Implementation: A custom, RESTful workflow engine was developed to be easily deployable on Amazon EC2 instances with minimal setup overhead.

Experimental Evaluation

The framework was evaluated using four representative scientific workflows (8 to 11 web services each) featuring various patterns like linear sequences, fan-in, and fan-out. Performance was measured against a real-world network cost matrix derived from latency data between eight global Amazon EC2 regions.

Key Results

  • Performance Gains: The decentralized framework consistently outperformed centralized baselines, achieving speedups between 1.3x and 2.5x over the "Nearest" baseline (placing a single engine in the region closest to the user).
  • Optimal Decentralization: The study found that "complete" decentralization—placing an engine at every service location—is not always optimal. The solver identifies a strategic subset of locations that balances performance with engine overhead.
  • Scalability: Increasing the number of allowed engines generally reduced data movement costs, though these gains eventually plateaued as the most efficient distribution was reached.

Discussion and Future Work

The use of high-level modeling languages like ESSENCE proved to be a significant advantage, allowing the researchers to solve complex optimization problems without manual, low-level algorithm development. However, the current model is static, relying on average network speeds.

Future research will focus on:

  • Dynamic Adaptation: Incorporating real-time network fluctuations into the deployment planning.
  • Resource Provisioning Costs: Accounting for the time and cost associated with spinning up new virtual machine instances (boot times).
  • Refined Predictive Models: Moving beyond Round-Trip Time (RTT) to more accurately estimate specific service invocation durations.

Conclusion

By leveraging constraint programming to optimize the placement of decentralized workflow engines, this research demonstrates a viable path toward significantly reducing latency in global cloud-based scientific computing. The resulting speedups highlight the inefficiency of traditional centralized models in geographically distributed environments.

Summary updated

BibTeX
@inproceedings{thai2014optimal,
  author = {Long Thai and Adam Barker and Blesson Varghese and Ozgur Akgun and Ian Miguel},
  title = {{Optimal Deployment of Geographically Distributed Workflow Engines on the Cloud}},
  booktitle = {CloudCom},
  year = {2014},
  doi = {10.1109/cloudcom.2014.30},
}
Figure