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

Data persistence method and device based on redis performance and electronic equipment

A persistence and data technology, applied in the field of data processing, can solve the problem of minimizing the impact of performance, and achieve the effect of avoiding impact

Active Publication Date: 2021-07-16
CHINA MOBILE GROUP SICHUAN +1
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a data persistence method, device and electronic equipment based on redis performance, which can solve the problem of data persistence for high-concurrency and high-performance clusters How to minimize the impact on performance when

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 persistence method and device based on redis performance and electronic equipment
  • Data persistence method and device based on redis performance and electronic equipment
  • Data persistence method and device based on redis performance and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] 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 some of the embodiments of the present invention, but not all of them. 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.

[0022] Embodiments of the present invention provide a redis performance-based data persistence method, device, and electronic equipment. In the embodiment of the present invention, by adding a judging device at the front end of the redis cluster, each master node and its corresponding slave nodes are used as a group, and the epoch (epoch) of each group of master-slave (master-slave group) is the same First, select the master-slave group with the smalle...

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 discloses a data persistence method and device based on redis performance and electronic equipment. The method comprises the steps of calculating system resource consumption values of master-slave groups in a redis cluster, wherein nodes with the same epochs in the redis cluster are one master-slave group; determining the master-slave group with the minimum system resource consumption value according to the system resource consumption values of the master-slave groups; and under the condition that the system resource consumption value of the master-slave group with the minimum system resource consumption value is smaller than a first threshold value, performing data persistence processing on nodes meeting a preset condition in the master-slave group. According to the embodiment of the invention, by calculating the system resource consumption values of the master and slave groups in the redis cluster, whether the nodes in the master and slave groups meet the persistence starting condition or not is judged, when the node resource use condition meets the requirement, the node persistence is started, otherwise, the node persistence is closed, and the influence of persistence on redis performance in a high-concurrency environment is avoided.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a redis performance-based data persistence method, device and electronic equipment. Background technique [0002] redis (Remote Dictionary Server, remote dictionary service) is an open source written in ANSI C language, supports the network, can be based on memory or persistent log type, Key-Value database, and provides API (Application Programming Interface , application programming interface). [0003] In the prior art, redis supports two persistence methods, which are aof (Append Only File, only appending files) persistence and rdb (Relational Database, relational database) persistence. Aof persistence is the operation log of redis in the form of The file is written in append mode, and the RDB persistence is to back up the database records of redis in memory to the disk at regular intervals. However, whether it is aof persistence or rdb persistence, long-term enablement will h...

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): G06F16/27G06F16/25G06F16/28G06F16/21G06F11/14
CPCG06F16/27G06F16/252G06F16/284G06F16/21G06F11/1446
Inventor 杨名
Owner CHINA MOBILE GROUP SICHUAN