Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

A data backup, data reading and writing technology, applied in the field of data processing, can solve problems such as limiting memory utilization, increasing resource costs, and overtime, to achieve the effects of improving memory utilization, reducing resource costs, and eliminating delay jitter

Active Publication Date: 2022-04-29
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, a large amount of additional memory is copied, causing memory consumption to double
The above defects will have a great impact on the stability of Redis products and services, and also limit the memory utilization of Redis in the virtual machine environment, and also increase resource costs.

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, device, electronic device, and computer-readable storage medium
  • Data snapshot method, device, electronic device, and computer-readable storage medium
  • Data snapshot method, device, electronic device, 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 present invention discloses a data snapshot method, device, electronic equipment, and computer-readable storage medium. The method includes: in response to receiving a data snapshot instruction, the first thread creates a data snapshot thread, and updates the data to be snapshotted. Identification information; in response to detecting that the data to be snapshotted is modified, the modified identification information of the data to be snapshotted is set as the latest identification information; the data snapshot thread performs snapshot processing on the data according to the identification information, and for those with non-latest identification A data snapshot is executed for the data to be snapshotted of the information, and a delayed data snapshot is executed for the data to be snapshotted with the latest identification information. This technical solution can realize the snapshot operation of the full amount of data without affecting the service of the main thread, eliminates the delay jitter caused by the Fork operation in the prior art, and can also greatly reduce memory consumption, improve memory utilization, and reduce Resource costs, thus effectively ensuring the stability of Redis products and services.

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
Patent Type & Authority Patents(China)
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products