Multi-Region Replica Placement for Low-Latency Failover Control

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing multi-region databases face challenges in managing replica placement to balance survivability, accessibility, and data domiciling strategies, leading to increased storage costs, network bandwidth usage, and latency issues due to inefficient replica distribution and failover mechanisms.

Innovation Solution

Implementing super regions and secondary regions with controlled replica placement, allowing users to restrict replicas to specific geographic locations, and optimizing failover processes to maintain data availability and reduce latency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If replicas are placed in multiple database regions to ensure survivability, then data availability is improved, but storage costs and network bandwidth usage increase

Engineering Contradiction:
Improvedata availabilityVSAvoidstorage costs
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the multi-region database system into super regions and database regions, where super regions are logical groupings of database regions. This segmentation allows replicas to be strategically placed within super regions rather than uniformly distributed across all regions, reducing redundant storage while maintaining availability. The segmentation enables fine-grained control over replica placement to balance survivability and storage costs.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements local quality by allowing different replica placement strategies for different database regions within a super region. Each database region can have customized replica configurations based on local requirements, enabling optimized storage allocation. This local customization reduces unnecessary replication across all regions while ensuring critical regions have appropriate redundancy.

Inventive Principle:
Principle #3Local quality

2Reliability

If replicas are placed in multiple database regions to ensure survivability, then data availability is improved, but network bandwidth usage increases

Engineering Contradiction:
Improvedata availabilityVSAvoidnetwork bandwidth usage
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

By segmenting the system into super regions, the patent reduces the scope of cross-region replication traffic. Replicas within the same super region can communicate more efficiently, and failover operations are confined to smaller geographic scopes, reducing overall network bandwidth consumption compared to unrestricted multi-region replication.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The super region acts as an intermediary layer between individual database regions. During failover operations, the super region coordinates replica selection and data transfer, optimizing network traffic routing. This intermediary structure reduces direct peer-to-peer network bandwidth usage between distant database regions.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Speed

If regional tables are configured to serve local reads, then read latency is reduced, but write latency increases due to replication requirements

Engineering Contradiction:
Improveread latencyVSAvoidwrite latency
Core Design Contradiction:
SpeedVSLoss of time

Solution Approach 1:

The patent enables local quality by allowing each database region to have customized replica configurations. Regions with high read traffic can be configured with more local replicas for fast reads, while regions with stricter consistency requirements can have different configurations. This customization optimizes the read-write latency tradeoff for each region's specific workload characteristics.

Inventive Principle:
Principle #3Local quality

4Reliability

If voting replicas are placed in multiple database regions, then survivability is improved, but data domiciling control is reduced

Engineering Contradiction:
ImprovesurvivabilityVSAvoiddata domiciling control
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent segments the control hierarchy into super regions and database regions, enabling data domiciling policies to be defined at the super region level. This segmentation allows administrators to specify that certain data partitions must remain within specific super regions (for compliance reasons) while still allowing flexible replica placement within those super regions to achieve survivability goals.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic replica placement within the constraints of data domiciling policies. The system can dynamically select which specific database regions within a super region should host replicas based on current availability, load conditions, and policy requirements. This dynamic behavior maintains both survivability and compliance with data domiciling restrictions.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12499127B2Systems and methods for controlling replica placement in multi-region databases
Publication Date: 2025.12.16 COCKROACH LABS INC
  • US12499127B2 patent drawing
  • US12499127B2 patent drawing
  • US12499127B2 patent drawing

AI summary

Systems and methods for controlling placement of replicas of data in a multi-region database are provided. A selection of a super region including at least first and second database regions can be received. A voting replica of data can be stored within the second database region based on the selection of the super region and a failure of the first database region. A selection of a secondary database region can be received. A voting replica of data can be stored within the secondary database region based on the selection of the secondary database region and a failure of a primary database region. Non-voting replicas of data can be stored in a subset of a plurality of database regions. A selection of a restricted replica placement configuration can be received. The non-voting replicas can be removed from database regions based on the selection of the restricted replica placement configuration.