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

A log storage method, device, equipment and readable storage medium

A storage configuration and log technology, applied in the computer field, can solve the problems of log data congestion, slow log data consumption, blocking, etc., and achieve the effect of avoiding congestion and blocking, avoiding long waiting, and improving cluster performance

Active Publication Date: 2022-02-18
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the disk fails or the disk is busy writing due to other factors, the rate at which the logs in the log queue are stored in the disk will drop significantly, which will cause the log queue to be filled quickly
At this time, since the log data to be stored is still continuously generated, but the log data in the log queue is consumed slowly, the log queue is always full, and there are many log data to be recorded in the log queue. If so If the phenomenon exists for a long time, it will cause congestion and blockage of log data
When the congestion and blocking time are long, it will cause the processing of business messages to time out. In serious cases, it may cause the business interruption of the current cluster and bring irreversible losses to users.

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
  • A log storage method, device, equipment and readable storage medium
  • A log storage method, device, equipment and readable storage medium
  • A log storage method, device, equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] 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 only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0045] The embodiment of the invention discloses a log storage method, device, equipment and readable storage medium, so as to avoid congestion and blocking problems in the log storage process.

[0046] see figure 1 , a log storage method provided by an embodiment of the present invention, comprising:

[0047] S101. Obtain the log data to be stored, and mark the level information of the log data;

[0048] Wherein, the level information of the log data is mar...

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 log storage method, which includes: obtaining log data to be stored, and marking the level information of the log data; judging whether the number of log entries in the log queue is less than a preset queue threshold; if not, according to the log data The level information of the log data and the preset storage configuration determine the redundant log data in the log queue, and delete the redundant log data from the log queue; record the log data and the level information of the log data to the log queue, and log the log according to the log queue Data is saved to disk. Among them, when the number of logs in the log queue is not less than the preset queue threshold, the redundant log data in the log queue can be eliminated, thereby avoiding congestion and blocking in the log storage process and ensuring the business continuity of the current cluster , bringing a good experience to users. Correspondingly, a log storage device, equipment, and readable storage medium disclosed in the present invention also have the above-mentioned technical effects.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a log storage method, device, equipment and readable storage medium. Background technique [0002] In the prior art, when recording the logs in the cluster, the logs to be recorded are generally firstly recorded in the log queue, and then the logs in the log queue are stored in the disk to complete the storage of the logs. Wherein, the log queue has a fixed length, that is, the number of logs that can be stored therein is fixed. [0003] Under normal circumstances, the two steps of recording in the log queue and saving the logs in the log queue to disk can ensure the normal storage of log data. However, when the disk fails or the disk is busy writing due to other factors, the rate at which the logs in the log queue are stored in the disk will drop significantly, which will cause the log queue to be filled quickly. At this time, since the log data to be stored...

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): G06F16/174G06F16/18
Inventor 王庆海
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD