# US 2013/0254590 A1 · Real time database system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254590 A1
- Document ID: US20130254590A1
- Status: Published application
- Kind: A1
- Application number: 13/990,016
- Filed: 2010-11-26
- Published: 2013-09-26
- Earliest claimed: 2010-11-26
- Assignees: Telefonaktiebolaget L M Eriscsson (PUBL)
- Inventors: Jose Maria Chercoles Sanchez; Roman Ferrando Llopis
- Web page: https://patentgrep.com/patent/US20130254590A1

## CPC

- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/1662: {the resynchronized component or unit being a persistent storage device (re-synchronization of failed mirror storage G06F11/2082; rebuild or reconstruction of parity RAID storage G06F11/1008)}
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F 11/1402: {Saving, restoring, recovering or retrying}
- G06F 11/1415: {at system level}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A real time database system configured to store a database content with a plurality of data sets, the database content being partitioned in different partitions. The system comprises a plurality of master databases, each master database containing a partition of the database content, each partition being provided on a different physical storage unit and at least one replica database, each replica database containing subpartitions of the partitions stored in master databases. The system further comprises at least one distributor configured to route a request for a data set to the master database, where the data set to which the request refers to, is provided, and distributor configured to divide each partition into several subpartitions. Additionally, the system comprises at least one replicator, configured to generate a replica of each subpartition, and configured to store each replica on a replica database.

## Claims

### Claim 1

A real time database system configured to store a database content with a plurality of data sets, the database content being partitioned in different partitions (P1-P5), the system comprising:
a plurality of master databases (10-50), each master database containing a partition of the database content, each partition being provided on a different physical storage unit,
at least one replica database (110-510), each replica database containing subpartitions (11-54) of the partitions stored in master databases (10-50),
at least one distributor (1-5) configured to route a request for a data set to the master database (10-50), where the data set to which the request refers to, is provided, and configured to divide each partition (P1-P5) into several subpartitions.
at least one replicator (100-500), configured to generate a replica (11-54) of each subpartition, and configured to store each replica (11-54) on a replica database (110-510), wherein the at least one replicator (100-500) stores the replicas (11-54) of each subpartition in such a way that the replicas of one partition are contained on different physical storage units, on another physical storage unit other than the corresponding partition (P1-P5), and on a physical storage unit other than the replicator (100-500) generating the replica (11-54) of said one partition, wherein the distributor is configured to route a replication request for a subpartition to the replicator responsible for said subpartition.

### Claim 2 (depends on 1)

The real time database system according to claim 1, wherein the at least one distributor (1-5) is configured to detect a failure of a master database (10-50), wherein, when the at least one distributor (1-5) detects a failure of a master database (10-50), it routes requests for data sets contained on the failed master database (110-510) to the replica databases where the replicas (11-54) of the failed master database are provided, the replicas of the failed master database becoming master databases for subpartitions of the failed master database during the failure of the master database.

### Claim 3

The real time database system according to any of the preceding claims, wherein each physical storage unit comprises a distributor (1-5), a replicator (100-500), a master database (10-50) and a replica database (110-510).

### Claim 4 (depends on 1, 2)

The real time database system according to claim 1 or 2, wherein each physical storage unit comprises a distributor (1-5), a replicator (100-500) and master database (10-50), the system further comprising specialised physical storage units (A, B, C, X, Y, Z) for the replica databases.

### Claim 5

The real time database system according to any of the preceding claims, wherein for an update of a data set, the at least one distributor (1-5) is configured to order a replication of the update to the at least one replicator (100-500) that generates the replica (11-54) of the subpartition in which the data set, to which the update refers to, is stored.

### Claim 6

The real time database system according to any of the preceding claims, wherein for an update of a data set, the at least one replicator (100-500) is configured to log the update and to replicate it on the corresponding replica database, where the replica of said data set, for which the update is received, is stored.

### Claim 7

The real time database system according to any of the preceding claims, wherein the at least one replica database (110-510) is configured to further partition the replica on a replica database into smaller partitions (150, 450).

### Claim 8 (depends on 7)

The real time database system according to claim 7, wherein, when the master database (10-50) restarts after a failure, the replica databases (110-510) are configured to report the smaller partitions (150, 450) comprising the data sets of the restarted master database needed to recover the partition provided on the restarting master database, to the restarted master database.

### Claim 9

The real time database system according to any of the preceding claims wherein the replica database (110-510) is a hybrid storage unit containing a working memory area and a disk memory area, the disk memory area containing the replicas (11-54), wherein the hybrid database is configured to move the replica of a master database for which a failure has been detected and which becomes the master database for the failed master database from the disk memory area to the working memory area of the hybrid storage unit.

### Claim 10

The real time database system according to any of the preceding claims wherein the replica database (110-510) is a hybrid storage unit containing a working memory area and a disk memory area, the disk memory area containing the replicas (11-54), and the working memory area containing the data sets of the replicas (11-54) in the disk memory area that are used more often than a predefined threshold.

### Claim 11

The real time database according to any of the preceding claims, wherein the replica database (110-510) is configured to store replicas (11-54) from a plurality of master databases.

### Claim 12

The real time database according to any of the preceding claims, wherein the replicator (100-500) is configured to generate several replicas of each master database (10-50), the replicator storing each replica on a different physical storage unit.

### Claim 13

A method for operating a real time database system storing a database content with a plurality of data sets, the method comprising the steps of:
partitioning the database content into different partitions (P1-P5) provided on different master databases (10-50), each partition being provided on a different physical storage unit,
distributing, by at least one distributor (1-5), a request for a data set of the database content to the master database (10-50), where the data set to which the request refers, is provided,
dividing, by at least one distributor (1-5), each partition into several subpartitions,
generating, by at least one replicator (100-500), a replica (11-54) of each subpartition, and storing each replica on a replica database (110-510), wherein the replicas (11-54) of each subpartition are stored in such a way that the replicas of one partition are contained on different physical storage units, on a physical storage unit other than the corresponding partition (P1-P5), and on another physical storage unit other than the replicator (100-500) generating the replica (11-54) of said one partition, wherein a replication request for a subpartition is routed, by said at least one distributor, to the replicator responsible for said subpartition.

### Claim 14 (depends on 13)

The method according to claim 13, further comprising the step of detecting a failure of a master database (10-50), wherein, if a failure of a master database is detected, requests for data sets contained on the failed master database are distributed by the at least one distributor (1-5) to the replicas (11-54) of the failed master database, the replicas (11-54) of the failed master database becoming the master database for subpartitions of the failed master database during the failure of the master databases.

### Claim 15 (depends on 13, 14)

The method according to claim 13 or 14, wherein, when an update for a dataset of one of the partitions (P1-P5) is detected the update is replicated on the corresponding replica in the replica database.

### Claim 16 (depends on 13, 14, 15)

The method according to any of claims 13 to 15, wherein the master database (10-50), the replica databases (11-51), and the replicators (100-500) are selected by the distributor (1-5).

### Claim 17 (depends on 13, 14, 15, 16)

The method according to any of claims 13 to 16, wherein an operation log for updates of the database content is distributed by the distributor (1-5) to the master database (10-50) and the replicator (100-500), the updates being maintained on the master database (10-50) and on the replicator (100-500).

### Claim 18 (depends on 13, 14, 15)

The method according to any of claims 13 to 15, wherein the replicas (11-51) of the failed master database are loaded from a disk memory area (111) to a working memory area (112) of the corresponding replica database (110-510).

### Claim 19 (depends on 13, 14, 15, 16, 17, 18)

The method according to any of claims 13 to 18, wherein, if a master database (10-50) restarts after a failure, the master database (10-50) is registered as master database to the distributor (1-5), the master database (10-50) receiving from the replica databases (110-510), where the replicas of the restarting master database are provided, the replicas (11-54) needed to recover the partition (P1-P5) provided on the restarted master database.

### Claim 20 (depends on 19)

The method according to claim 19, wherein the information about the replicas (11-54) transmitted to the restarted master database is transmitted to the distributor (1-5).

### Claim 21 (depends on 13, 14, 15, 16, 17, 18, 19, 20)

The method according to any of claims 13 to 20, wherein, when a failure of a replicator (100-500) is detected, a new set of replicators is selected, the information about the new set of replicators being transmitted to the affected master databases (10-50), the affected master databases indicating logged operations to the new set of replicators.

### Claim 22 (depends on 13, 14, 15, 16, 17, 18, 19, 20, 21)

The method according to any of claims 13 to 21, wherein, when a failed distributor (1-5) is recovering, a distribution and allocation status is learned from other distributors of the system.

### Claim 23 (depends on 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)

The method according to any of claims 13 to 22, further comprising the step of partitioning each replica (11-51) on the replica database into smaller partitions (150, 450).

### Claim 24 (depends on 23)

The method according to claim 23, wherein, when a restart of a master database (10-50) is detected, the smaller partitions (150, 450) comprising the data sets of the restarted master database needed to recover the partition (P1-P5) provided on the restarting master database are transmitted to the restarted master database to update the master database.

### Claim 25 (depends on 24)

The method according to claim 24, wherein smaller partitions (150, 450) transmitted to the restarted master database are reported to the distributor (1-5) for the distributor to route data and update requests to the master database (10-50) if the data set affected by the request has already been transmitted to master database (10-50), or else route data and update requests to the replica database (110-510) if data affected by the requests has not yet been transmitted to master database (10-50).

### Claim 26 (depends on 23, 24, 25)

The method according to any of claims 23 to 25, wherein, when the replica database (110-510) restarts after a failure, the smaller partitions (150, 450) provided on other replica databases (110-510) and/or the master database and needed to recover the subpartition provided on the restarting replica database are transmitted to the restarted replica database (110-510) to update the replica database.
