Unlock instant, AI-driven research and patent intelligence for your innovation.

Data synchronization method and device

A data synchronization and device technology, applied in the computer field, can solve the problems affecting concurrency, the overhead of large locks, etc., and achieve the effect of reducing sleep, reducing the time waiting for the synchronization to end, and shortening the waiting time.

Active Publication Date: 2018-08-28
ALIBABA GRP HLDG LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] An object of the present invention is to provide a data synchronization method and device to solve the problem that each existing request response process must enter a sleep state, which will bring additional context switching, and wake up at the same time will also bring relatively large lock overhead , issues affecting concurrency

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
  • Data synchronization method and device
  • Data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0068] In a typical configuration of the present application, the terminal, the device serving the network and the trusted party all include one or more processors (CPUs), input / output interfaces, network interfaces and memory.

[0069] Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and / or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

[0070] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static rando...

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

The invention aims to provide a data synchronization method and device. By comparing a storage position of transaction data with a synchronization request-based currently synchronized position of a standby database, and judging whether a request response process enters a sleep state or not according to a comparison result, on the premise of ensuring multi-copy reliability, the sleep can be effectively reduced or avoided, the overall throughput rate when the data has multi-copy requirements in an application scene of high-concurrent writing is increased, and long waiting is reduced. In addition, the request response process writes the transaction data in an operation system shared cache corresponding to a master database, and then initiates a synchronization request of synchronizing the transaction data to the standby database to the standby database; and the synchronization request comprises the storage position of the transaction data, so that the transaction data can be sent to the standby database before being stored in a disk of the master database, the waiting time is shortened, and the overall response delay is shortened.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data synchronization method and equipment. Background technique [0002] Such as figure 1 As shown, the existing database needs to be divided into the following steps in order to realize the synchronization of multiple copies: [0003] 1. The user sends a request to end the transaction, including rollback (rollback) or commit (commit), and generates a corresponding request response process according to the request to end the transaction; [0004] 2. The request response process (Backend process) generates transaction data (redo / WAL), records the transaction data in the storage location of the standby database, that is, the WAL location (LSN), and writes the transaction data into the corresponding process shared cache of the main library ( walbuffer); [0005] 3. The request response process waits for the wal buffer to call the write interface, and writes the transaction data into th...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/275
Inventor 周正中
Owner ALIBABA GRP HLDG LTD