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

Method and device for creating cache component

A cache and component technology, applied in the computer field, can solve the problems of time-consuming, slow data recovery, abnormal stop of real-time computing tasks, etc., to improve read and write performance and reduce network requests.

Pending Publication Date: 2021-12-10
BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using Redis as a cache component, each time you query data, you need to request the Redis server remotely. If you encounter problems such as the Redis server response timeout exception, it will cause the real-time computing task to stop abnormally.
When the real-time computing task is restarted, each computing node must serially read the data in the Redis server to restore the data. The data recovery speed is slow and takes a lot of time

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
  • Method and device for creating cache component
  • Method and device for creating cache component
  • Method and device for creating cache component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0044] figure 1 is a schematic diagram of the main flow of the method for creating a cache component in an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0045] Step S101: Determine a computing cluster for performing real-time computing tasks, the computing cluster includes multiple server nodes, each of the server nodes is used as...

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 method and a device for creating a cache component, and relates to the technical field of computers. According to one specific embodiment, the method comprises the steps of determining a computing cluster for executing a real-time computing task, wherein the computing cluster comprises a plurality of server nodes, each server node serves as a cache node, and a plurality of cache nodes are obtained; selecting one cache node from the plurality of cache nodes as a master node, wherein the cache nodes except the master node are slave nodes; wherein the master node is used for writing data to be written into a local disk of the master node, and synchronizing the data to be written into a local disk of the slave node; and creating a cache component based on the master node and the slave node. According to the embodiment, network requests are reduced, and the read-write performance is improved; under the condition that the calculation task is restarted, each cache node reserves data, and the data can be quickly recovered directly based on a local disk.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for creating a cache component. Background technique [0002] During the execution of real-time computing tasks, cache components are required to cache data related to real-time computing tasks. At present, the commonly used method is to use cache middleware such as Redis as a cache component. Using Redis as a cache component requires a remote request to the Redis server every time data is queried. If problems such as Redis server response timeout exceptions are encountered, real-time computing tasks will stop abnormally. When the real-time computing task is restarted, each computing node must serially read the data in the Redis server to restore the data. The data restoration speed is slow and takes a lot of time. Contents of the invention [0003] In view of this, the embodiments of the present invention provide a method and device for creating a cache...

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): H04L29/08G06F9/445G06F9/54
CPCH04L67/1095H04L67/1097G06F9/4451G06F9/547H04L67/1001H04L67/568
Inventor 郭庆海
Owner BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD