Serverless DAG Workflow Execution Plan Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Serverless workflows in cloud environments face significant latency and cost issues due to communication latency between in-series workers and computation skew among parallel workers, primarily caused by executing each function in a separate isolated container or VM, leading to inefficient resource utilization.

Innovation Solution

An automated system generates an optimized execution plan for serverless Directed Acyclic Graphs (DAGs) by combining in-series functions, bundling parallel invocations, and allocating optimal VM resources, using a distribution and correlation-aware performance model to mitigate communication latency and computation skew, thereby reducing end-to-end latency and cost.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If each function is executed in a separate isolated container or VM, then resource isolation and security are improved, but communication latency between in-series workers increases and resource utilization efficiency deteriorates

Engineering Contradiction:
Improveresource isolationVSAvoidcommunication latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent merges in-series functions into the same container or VM, eliminating inter-container communication overhead while maintaining resource isolation through virtualization. This combining approach reduces communication latency between sequential functions without completely sacrificing security, as the merged functions still operate in an isolated virtualized environment.

Inventive Principle:
Principle #5Merging (Combining)

2Reliability

If each function is executed in a separate isolated container or VM, then resource isolation is improved, but resource utilization efficiency deteriorates

Engineering Contradiction:
Improveresource isolationVSAvoidresource utilization efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent makes containers or VMs universal by allowing them to host multiple functions simultaneously. A single container can execute multiple in-series functions or multiple parallel invocations, making the resource allocation more flexible and efficient. This multi-functionality approach improves resource utilization while maintaining adequate isolation through proper resource management.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Ease of operation

If traditional VM size allocation methods are used, then simplicity of resource management is improved, but end-to-end latency and cost increase

Engineering Contradiction:
Improveresource management simplicityVSAvoidend-to-end latency
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The patent implements dynamic VM sizing that automatically adjusts container or VM resource allocation based on the specific requirements of each function or function bundle. Instead of using fixed, traditional VM sizes, the system dynamically optimizes resource allocation to minimize latency while managing complexity through automated orchestration and performance modeling.

Inventive Principle:
Principle #15Dynamics

4Ease of operation

If traditional VM size allocation methods are used, then simplicity of resource management is improved, but cost increases

Engineering Contradiction:
Improveresource management simplicityVSAvoidcost
Core Design Contradiction:
Ease of operationVSLoss of energy

Solution Approach 1:

The patent changes the parameters of resource allocation by using performance models to determine optimal container or VM sizes based on actual workload characteristics. This data-driven approach adjusts resource parameters dynamically, reducing waste and lowering costs while maintaining simplicity through automated model-based decision-making rather than manual configuration.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20240394167A1System and methods for optimized execution plans for serverless directed acyclic graph workflows
Publication Date: 2024.11.28 PURDUE RES FOUND
  • US20240394167A1 patent drawing
  • US20240394167A1 patent drawing
  • US20240394167A1 patent drawing

AI summary

A system may receive a first directed acyclic graphic (DAG) for an application. The system may model performance of each function in the DAG to generate a performance model. The system may generate a plurality of variant DAGs. For each of the variant DAGs, the system may obtain a configuration vector and forecast, based on the performance model and the configuration vector, a plurality of end-to-end latency distributions for the variant DAGS. The system may select the variant DAG and configuration vector based on a selection criteria. The system may cause an application to be executed according to the variant DAG and configuration vector.