Data snapshot method and device, electronic equipment and computer readable storage medium

A computer and data backup technology, applied in the field of data processing, can solve problems such as multi-time, second-level jitter of main thread service, and limited memory utilization

Active Publication Date: 2021-03-26
ALIBABA GRP HLDG LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this mechanism has the following defects: 1. The Fork system call will consume a lot of time, resulting in second-level jitter in the main thread service; 2. The COW copy is based on a physical memory page and will be released when the child process exits. During the snapshot...

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 snapshot method and device, electronic equipment and computer readable storage medium
  • Data snapshot method and device, electronic equipment and computer readable storage medium
  • Data snapshot method and device, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] Hereinafter, exemplary embodiments of embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily realize them. Also, for clarity, parts not related to describing the exemplary embodiments are omitted in the drawings.

[0076] In the embodiments of the present invention, it should be understood that terms such as "comprising" or "having" are intended to indicate the presence of features, numbers, steps, acts, components, parts or combinations thereof disclosed in this specification, and are not intended to The possibility that one or more other features, numbers, steps, acts, parts, parts or combinations thereof exist or be added is excluded.

[0077] In addition, it should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The embodiments of the present invention will be descr...

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 embodiment of the invention discloses a data snapshot method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: responding to a received data snapshot instruction, enabling a first thread to create a data snapshot thread, and updating the identification information of to-be-snapshot data; in response to detecting that the to-be-snapshotdata is modified, setting identification information of the modified to-be-snapshot data as latest identification information; and the data snapshot thread performing snapshot processing on the dataaccording to the identification information, performing data snapshot on the to-be-snapshot data with the non-latest identification information, and performing lag data snapshot on the to-be-snapshotdata with the latest identification information. According to the technical scheme, snapshot operation of total data can be achieved under the condition that main thread service is not affected, timedelay jitter caused by Fork operation in the prior art is eliminated, meanwhile, memory consumption can be greatly reduced, the memory utilization rate is increased, resource cost is reduced, and thenthe stability of Redis product service is effectively guaranteed.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of data processing, and in particular to a data snapshot method, device, electronic equipment, and computer-readable storage medium. Background technique [0002] With the development of data technology, the application of high-performance Redis database is more and more widely. Redis is an open source, written in ANSI C language, supports network, can be based on memory and can be persistent log-type Key-Value database , in order to ensure efficiency, the data in Redis is first cached in memory, and then periodically writes updated data to disk or writes modification operations to additional record files, also known as persistence or data snapshot operations. In the current Redis internal mechanism, persistence, data snapshot, and master-slave synchronization all rely on the operating system's Fork and COW (copy on write, copy-on-write) mechanisms, where both Fork and COW generate new ...

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): G06F11/14
CPCG06F11/1448
Inventor 吴辉静
Owner ALIBABA GRP HLDG 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