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

Redis cluster cache data management method and device

A technology for caching data and management methods, applied in the management field of cached data in Redis cluster, can solve problems such as affecting the normal service of the cluster, having too much data on a single node, reducing the user experience, etc., to prevent a single backup function, data dispersion, and reducing the impact Effect

Pending Publication Date: 2020-03-10
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the case of a limited number of servers, it is easy to generate more data on a single node. Once a node fails, it means that more data needs to be synchronized from the backup node, which will not only affect the normal service of the cluster, but also reduce the user experience.

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
  • Redis cluster cache data management method and device
  • Redis cluster cache data management method and device
  • Redis cluster cache data management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] figure 1 It is a schematic flow chart of a management method for Redis cluster cache data according to an embodiment of the present invention, such as figure 1 As shown, the management method of the Redis cluster cache data according to the embodiment of the present invention may include:

[0049] Step S102, fragmenting the cached data in the Redis cluster;

[0050] Step S104, selecting a server as the primary node server ...

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 provides a Redis cluster cache data management method and device. The method comprises the following steps of fragmenting the cache data in the Redis cluster; selecting one server from aplurality of specified servers for each fragmented fragmented data as a main node server, and respectively mapping each fragmented data to the respectively selected corresponding main node server; randomly selecting one server from the plurality of servers for each piece of fragmented data as a backup node server, and writing each piece of fragmented data into the selected corresponding backup node server, wherein the main node server and the backup node server of each piece of fragmented data respectively correspond to different servers. Based on the scheme provided by the invention, the useefficiency of the server can be improved, and the single backup function of the backup node is prevented.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for managing cached data of a Redis cluster. Background technique [0002] With the continuous popularization of the Internet, the behaviors of searching, obtaining and storing data on the Internet are gradually increasing, and the requirements for data storage and backup are also higher. [0003] For the traditional solution, each node only assumes one role, that is, the slave of a certain node or the master of a certain node. In the case of a limited number of servers, it is easy to generate more data on a single node. Once a node fails, it means that more data needs to be synchronized from the backup node, which will not only affect the normal service of the cluster, but also reduce the user experience. Contents of the invention [0004] The present invention provides a Redis cluster cache data management method to overcome the above problems or at ...

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/1461
Inventor 罗晓东
Owner BEIJING QIHOO TECH CO LTD