Supercharge Your Innovation With Domain-Expert AI Agents!

Main memory database cluster synchronization method and main memory database host

A database and memory technology, applied in the database field, can solve the problems of data loss, affecting the synchronization efficiency of the in-memory database host processing performance, affecting the data consistency of the master and slave machines, etc., to achieve the effect of ensuring data consistency

Inactive Publication Date: 2015-10-07
SHENZHEN IDREAMSKY TECH
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the above-mentioned existing technologies have the following problems: (1) In the peak period of business or in the case of large concurrent data, it is very likely that the amount of data will exceed the cache size of the incremental synchronization buffer during the flash off period, resulting in a loop in the incremental synchronization buffer Covering the cache will cause data loss and affect the consistency of data between the master and slave machines; (2) when the synchronization offset address exceeds the range of the incremental synchronization buffer area, full synchronization will be performed, which will affect the synchronization efficiency and the memory database host. processing performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Main memory database cluster synchronization method and main memory database host
  • Main memory database cluster synchronization method and main memory database host
  • Main memory database cluster synchronization method and main memory database host

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0026] In order to facilitate the understanding of the embodiments of the present invention, the following first combines figure 2 Introduce the application scenario of the embodiment of the present invention. The memory database cluster as shown in the figure includes at least one memory database host and multiple memory database slaves. The memory database host continuously writes data, and the memory database slave and memory database host maintain data. Synchr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses a main memory database cluster synchronization method. The method comprises: acquiring a synchronization request instruction sent by a memory database slave, wherein the synchronization request instruction comprises a synchronization offset address; determining whether a difference between a memory address to which data needs to be synchronized currently and the synchronization offset address is greater than an address capacity of an incremental synchronization buffer; if no, sending data that is stored after the synchronization offset address in the incremental synchronization buffer to the memory database slave to implement incremental synchronization; and if yes, sending data that is stored after the synchronization offset address in a persistent data storage file to the memory database slave to implement incremental synchronization. Accordingly, an embodiment of the invention further discloses a memory database host. According to the invention, data consistency between the host and the slave can be ensured, and efficiency of data synchronization and processing performance of the host can be improved.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method for synchronizing a memory database cluster and a memory database host. Background technique [0002] An in-memory database refers to a database in which data is directly operated in memory, and is generally deployed in a cluster. Such a cluster is called an in-memory database cluster. An in-memory database cluster includes an in-memory database host and an in-memory database slave, and data synchronization needs to be maintained between the two. Further, synchronization is divided into full synchronization and incremental synchronization. Full synchronization means that the memory database slave synchronizes all the data of the memory database host at one time. Incremental synchronization means that the memory database slave It should be understood that for the synchronization of large data, the efficiency of performing full synchronization is lower than that of incr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/275
Inventor 李雪冰蓝应志
Owner SHENZHEN IDREAMSKY TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More