Data synchronization method and system, and computer readable storage medium

A data synchronization and data technology, applied in the field of communication, can solve the problems of ring buffer fullness, the impact of restoring the main library, and the long unavailable time of the slave library, etc., to achieve the effect of ensuring integrity and consistency

Active Publication Date: 2018-11-13
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the master-slave synchronization scheme adopted by Redis, when the slave library or the network fails for a long time, the ring buffer will be full, and the historical data in the ring buffer will be discarded. When the fault is restored, the required historical data cannot be found. , so the slave library needs to be fully rebuilt, resulting in the slave library being unavailable for a long time, and the restoration will have a great impact on the main library

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 system, and computer readable storage medium
  • Data synchronization method and system, and computer readable storage medium
  • Data synchronization method and system, and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

[0033] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device compr...

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 relates to the technical field of the internet, in particular to a data synchronization method and system, and a computer readable storage medium. In a synchronization process of masterand slave databases, logs formed by modification of the master database are maintained in a mode that a shared memory and a magnetic disk are combined; when the logs in the shared memory are not accumulated, the logs are synchronized from the shared memory to the slave database in a memory mode; when the logs in the shared memory are accumulated due to the fact that the slave database is abnormalor the pressure of the slave database is relatively large, the logs are automatically transferred into the magnetic disk, and the logs are synchronized from the magnetic disk to the slave database ina magnetic disk mode; and when the synchronization of the logs in the magnetic disk is completed and the logs in the shared memory are not accumulated, the memory mode is automatically restored. According to the data synchronization method and system, data loss under an abnormal synchronization condition can be avoided.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a data synchronization method, system and computer-readable storage medium. Background technique [0002] Redis is a key-value storage system. Similar to Memcached (a high-performance distributed memory object caching system), it supports relatively more stored value types, including string (string), list (linked list), set (collection), zset (sorted set-- ordered collection) and hash (hash type). These data types support push / pop, add / remove, intersection, union, difference and richer operations, and these operations are atomic. On this basis, redis supports sorting in various ways. Like Memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-slave) synchronization is realized. [0003...

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
Inventor 刘栋曹宝山赵森刘军雷云飞
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products