Systems and methods for synchronizing between a source database cluster and a destination database cluster
Abstract
In some embodiments, a database cluster to cluster synchronization system may include multiple replicators coupled to a source database cluster and a destination database cluster, where the source and destination cluster may be shard clusters. Each of the multiple replicators may correspond to a respective subset of the source database cluster and configured to monitor changes of data on the respective subset of the source database cluster and translate the changes of data to one or more database operations to be performed on the destination cluster. The changes of data on the source database may be contained in respective change streams associated with each of the replicators.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 44 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A system comprising: at least one processor configured to execute one or more first operations to replicate one or more associated partitions of data from a source database cluster to a destination database cluster, to monitor a respective change stream comprising data indicative of a change of data in the one or more partitions associated with the replicator, and to execute one or more second operations to translate the change of data to one or more database operations to be performed to the destination database cluster; wherein the execution of the one or more first operations to replicate associated one or more partitions of data is interleaved with the execution of one or more second operations to translate the change of data to one or more data base operations; wherein each of the source database cluster and the destination database cluster is a shard cluster comprising multiple shard servers hosting multiple shards of data; wherein the at least one processor is configured to: rep
- Claim 2Depends on #1
The system of claim 1, wherein the at least one processor is configured to provide a second replication pathway, independent of a first replication architecture operating on the source database cluster.
- Claim 3Depends on #2
The system of claim 2, wherein the first replication architecture includes: a primary node hosting data of the source cluster and secondary nodes hosting copies of the primary node data, wherein the primary node accepts and processes write operations against the hosted data of the source cluster, and maintains an operation log reflecting changes to the hosted data of the source cluster, and wherein the secondary nodes maintain consistency in the hosted copies of the primary node data base on executing operations from the operation log.
- Claim 4Depends on #1
The system of claim 1, wherein: a first change stream corresponds to a first subset of shards in the source database cluster; and a second change stream corresponds to a second subset of shards in the source database cluster, the second subset of shards being different from the first subset of shards.
- Claim 5Depends on #1
The system of claim 1, wherein: the at least one processor is further configured to replicate indexes of data from the source database cluster while replicating the data from the source database cluster to the destination database cluster; and the at least one processor is further configured to: cause each of the first replicator and the second replicator to replicate the indexes as non-unique indexes; and convert the non-unique index to unique indexes when replications of the plurality of replicators including the at least the first and second replicators are committed.
- Claim 6Depends on #5
The system of claim 5, wherein the at least one processor is further configured to: determine whether a violation of indexes exists; and in response to determining that a violation of indexes exists, output or cause to output a report comprising the violation on a user device.
- Claim 7Depends on #1
The system of claim 1, wherein the at least one processor is further configured to: suspend operation of replicating data from the source database cluster to the destination database cluster; and resume replicating data from the source database cluster to the destination database cluster at where the suspended operation of replicating left off.
- Claim 8Depends on #1
The system of claim 1, wherein the at least one processor is further configured to: receive user command to reverse replication; and reverse replication by replicating data from the destination database cluster to the source database cluster.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application Ser. No. 63/349,336, entitled “ SYSTEMS AND METHODS FOR SYNCHRONIZING BETWEEN A SOURCE DATABASE CLUSTER AND A DESTINATION DATABASE CLUSTER ” , filed Jun. 6, 2022. This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application Ser. No. 63/349,392, entitled “ SYSTEMS AND METHOD FOR MANAGING A DISTRIBUTED DATABASE ” , filed Jun. 6, 2022, each of which is hereby incorporated by reference in their entirety. BACKGROUND In a distributed system, database cluster to database cluster synchronization refers to data movement across two different clusters (e.g., at least a source and destination cluster), such as two clusters managed by different vendors, or two clusters located at different geographical regions. Replication is known in replicating data within a same database (e.g., a cluster). For example, in a distributed database having primary nodes and multiple secondary nodes, data on the primary nodes may be replicated to one or more secondary nodes associated with the primary nodes. SUMMARY According to some aspects, it is realized that when various existing replication techniques are deployed in cluster to cluster synchronization, the results can be unexpected, random, and/or fail entirely. Various aspects and embodiments discussed below resolve the deficiencies of various known approaches. Further, the technologies described facilitate numerous applications where data movement between clusters is desired. For example, to aid software development, a database may include two clusters that are setup respectively for development and production, where data in the software development cluster may need to be moved to the production cluster, or vice versa. In another application in the audit and compliance industry, data may be provided to another organization or another company on the team via synchronizing clusters of di
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (44)
| Patent | Title | Year | Citations |
|---|