Stateful-Set Volume Replication via Control Flow Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Container management systems experience increased response latency and CPU utilization due to locking pressure on volumes as the number of client threads increases.

Innovation Solution

A method that replicates the volume of stateful-sets by learning control flow path-to-volume mappings, computing dominant control flow paths for each pod replica, and replicating or creating views of the most common volumes to reduce locking pressure.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If volume replication is performed for all pod replicas, then reliability and data availability are improved, but system complexity and resource overhead increase

Engineering Contradiction:
Improvevolume availabilityVSAvoidvolume management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system dynamically changes the replication parameter based on workload characteristics. By analyzing control flow paths and determining the nature of access (read-intensive vs. write-intensive), the system selectively applies replication only when beneficial, rather than uniformly replicating all volumes. This parameter-based differentiation resolves the contradiction by adapting replication behavior to actual needs.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system creates volume copies (replicas or views) selectively based on computed dominant control flow paths. Instead of copying all volumes for all pods, it identifies specific volume access patterns and creates copies only where necessary to reduce locking pressure, thereby improving reliability without proportionally increasing complexity.

Inventive Principle:
Principle #26Copying

2Reliability

If volume locking is implemented to ensure data consistency, then data integrity is improved, but response latency and CPU utilization increase

Engineering Contradiction:
Improvedata consistencyVSAvoidresponse latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system segments the volume access space by identifying dominant control flow paths and associated volumes. By dividing volumes into segments accessed by different control flow paths and creating replicas for specific segments, the system reduces contention on shared locks while maintaining consistency within each segment. This segmentation allows parallel access to different volume segments, reducing overall latency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces volume replicas as intermediary objects between pods and the original volume. Instead of all pods directly accessing and locking the same volume, replicas serve as intermediaries that reduce locking pressure on the primary volume while maintaining data consistency through controlled synchronization.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If selective volume replication is performed based on control flow analysis, then resource efficiency is improved, but computational overhead for analysis increases

Engineering Contradiction:
Improvevolume replication efficiencyVSAvoidCPU utilization
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The system performs preliminary analysis of control flow paths and volume access patterns before making replication decisions. By computing dominant control flow paths and determining nature of access in advance, the system prepares replication strategies proactively rather than reactively, reducing the need for continuous monitoring and decision-making during runtime, thus lowering ongoing CPU utilization.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system enables volumes to effectively 'self-determine' whether they need replication based on their own access patterns. By analyzing the control flow paths that naturally access each volume and determining the nature of access, the system allows volumes with high contention patterns to self-identify as candidates for replication without requiring external intervention for every decision.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12327020B2Volume replication of stateful-sets
Publication Date: 2025.06.10 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12327020B2 patent drawing
  • US12327020B2 patent drawing
  • US12327020B2 patent drawing

AI summary

A method of replicating the volume of stateful-sets by receiving input request types for each container of a number of containers, extracting control flow paths and mapping the input request types to the extracted control flow paths. The method learns control flow path-to-volume mappings by computing, for each control flow path of the number of control flow paths, (i) one or more associations between the control flow path and one or more volumes and (ii) a nature of access of the one or more volumes. For each pod replica a dominant control flow path is computed by computing a most common control flow path and a most common volume corresponding to the most common control flow path. A request for volume management of an identified most common volume is received and the identified most common volume is replicated or a its view is created.