Hypergraph Query Execution with State Machines for Failure Recovery

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Cloud computing platforms face challenges in efficiently handling large and varying user query workloads against massive databases, requiring fault-tolerant and explainable execution models to optimize query performance and reduce operational costs.

Innovation Solution

A hypergraph workload manager utilizing a query optimizer, hypergraph enlister, pipeline analyzer, and state machine generator to translate user queries into a hypergraph, optimize query execution, and manage compute resources dynamically.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional query execution models are used to handle large and varying user query workloads, then query processing capability is maintained, but system reliability deteriorates due to lack of failure tolerance

Engineering Contradiction:
Improvefailure toleranceVSAvoidexecution model complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The query execution model is segmented into discrete states (pending, executing, completed, failed, retrying) and transitions. Each state represents a specific phase of query processing, allowing the system to systematically handle failures by transitioning to retry states without overwhelming complexity. This state-machine approach divides the complex execution workflow into manageable, failure-tolerant segments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The execution model dynamically adapts to failures through state transitions. When a query fails, the system dynamically transitions from a failed state to a retrying state, adjusting execution parameters based on failure analysis. This dynamic behavior enables automatic failure recovery without requiring static, overly complex predetermined error handling paths.

Inventive Principle:
Principle #15Dynamics

2Loss of information

If detailed query execution tracking is implemented to improve explainability, then query execution transparency is improved, but system complexity increases

Engineering Contradiction:
Improveexecution information retentionVSAvoidtracking system complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The system pre-defines a structured set of states and transitions that will capture all necessary execution information. By establishing this framework in advance, the system automatically tracks query progression through standardized states (pending, executing, completed, failed, retrying) without requiring complex real-time analysis. This preliminary structuring ensures complete execution information is captured while keeping the tracking mechanism simple and systematic.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If dynamic resource allocation is used to optimize query performance, then query execution efficiency is improved, but system stability deteriorates due to frequent scaling

Engineering Contradiction:
Improvequery execution efficiencyVSAvoidcluster composition stability
Core Design Contradiction:
ProductivityVSStability of the object's composition

Solution Approach 1:

The system uses feedback from query execution states to guide resource allocation decisions. By monitoring transitions between states (particularly between retrying and completed states), the system gains insight into query difficulty and resource requirements. This feedback mechanism enables intelligent dynamic scaling that responds to actual execution patterns rather than arbitrary triggers, optimizing performance while maintaining stability through evidence-based resource management.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12488051B2Failure tolerant and explainable state machine driven hypergraph execution
Publication Date: 2025.12.02 MICROSOFT TECHNOLOGY LICENSING LLC
  • US12488051B2 patent drawing
  • US12488051B2 patent drawing
  • US12488051B2 patent drawing

AI summary

A hypergraph workload manager in a server is configured for failure tolerant and explainable state machine driven hypergraph execution. The hypergraph executor comprises a query optimizer, a hypergraph enlister, a pipeline analyzer, and a state machine generator. The query optimizer translates a user query into a query operator graph. The hypergraph enlister enlists the query operator graph into a hypergraph containing a set of query operator graphs representative of already submitted user queries. The enlistment is configured to join query operator graphs where it makes sense to optimize query executions. Updates to the hypergraph based on the enlistment results in a set of disconnected graphs. The pipeline analyzer performs an analysis of all operators of all queries in the hypergraph to find an optimal sequencing of execution. The state machine generator is configured to generate a hierarchical state machine for all operators of a disconnected graph of the hypergraph.