Patent · US Active

Efficient workload balancing in replicated databases based on result lag computation

US11775521B2 · kind B2 · utility

3Cited by
1References
20Claims
0Family size

Assignee

Inventors

Key dates

Filing dateMar 8, 2023
Grant dateOct 3, 2023
Priority date
Expiry dateMar 8, 2043

Classification

  • Technology area (CPC H)Electricity
  • CPC primaryH04L67/125
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method for workload balancing is implemented in a computer system including a primary database system and a secondary database system, the secondary database system being configured as a backup system for the primary database system. The method includes compiling a query received from a client application. The query indicates one or more source tables have corresponding replicate tables. The compiling comprises replace the one or more source tables with the corresponding replicate tables. The method can generate a query execution plan based on the compiled query, determine a per-table result lag based on minimum commit times of the corresponding replicate tables, and compare the per-table result lag with a predefined threshold. Responsive to a determination that the per-table result lag exceeds the predefined threshold, the method can recompile the query by falling back to the one or more source tables from the corresponding replicate tables.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.