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

Data storage management method and device, electronic equipment and readable storage medium

A data storage and management method technology, applied in the storage field, can solve the problems of data occupying large memory, data loss, data discarding, etc.

Pending Publication Date: 2021-04-13
成都知道创宇信息技术有限公司
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, the subsequent received data to be stored may accumulate in the memory until the maximum memory used is exceeded, and the data will be discarded
Moreover, the accumulated data will occupy a large amount of memory. If the program crashes, the data cached in the memory will be lost
In the existing storage management mechanism, when a network abnormality occurs, data may be discarded, and if a program crashes, data in the memory queue will be lost

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Redis (Remote Dictionary Server, remote dictionary service), is an open source, memory-based data structure storage, used as a database, cache and message broker. In distributed systems, Redis is often used as a simple message queue for data distribution and aggregation. influxDB is an open source time-series database. In a distributed system, it is often used to store state data at different time points of the system. Combining Redis and influxDB can form a distributed data storage system. A reliable distributed data storage system needs to be able to support disaster recovery backup, which requires the influxDB data in the nodes to be able to achieve backup synchronization. However, since there may often be scenarios across IDCs between nodes, resulting in network instability, there are obstacles to reliably and efficiently synchronizing data between nodes.

[0048] see figure 1, which is a schematic diagram of the mechanism for data storage management in the prior...

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 provides a data storage management method and device, electronic equipment and a readable storage medium. The data storage management method comprises the steps: caching obtained to-be-stored data into a Redis queue, detecting whether there is a network abnormality in a database or not, storing the to-be-stored data cached in the Redis queue into a created file if there is the network abnormality, and storing the to-be-stored data in the Redis queue; and writing the to-be-stored data in the file into the database after detecting that the database recovers the network to be normal. Thus, when a network exception occurs, the data in the Redis queue is written into the file, so that the problem of data discarding caused by accumulation of subsequently received data in the Redis queue is avoided, and the defect of data loss during program crash can be avoided due to the fact that the data stored in the file is not lost during power failure.

Description

technical field [0001] The present application relates to the field of storage technologies, and in particular, to a data storage management method, device, electronic equipment, and readable storage medium. Background technique [0002] In a distributed data storage system, since nodes may exist across IDC (Internet Data Center, Internet Data Center) computer rooms, network instability is extremely prone to occur. At present, when data is written to the database, if a network exception occurs, the writing process will cache the data that failed to be written into the memory, and then continuously retry the data writing until the data is successfully written. In this way, subsequent received data to be stored may accumulate in the memory until the set maximum used memory is exceeded, and the data will be discarded. Moreover, the accumulated data will occupy a large amount of memory. If the program crashes, the data cached in the memory will be lost. In the existing storage...

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): G06F16/25G06F16/2455G06F9/48
CPCG06F16/25G06F16/24552G06F9/4881
Inventor 刘袁
Owner 成都知道创宇信息技术有限公司
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