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

Log storage method, device, apparatus, and readable storage medium

A storage medium and storage configuration technology, which is applied in the computer field and can solve problems such as congestion, cluster service interruption, and user loss.

Active Publication Date: 2019-02-01
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF9 Cites 4 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
  • Log storage method, device, apparatus, and readable storage medium
  • Log storage method, device, apparatus, and readable storage medium
  • Log storage method, device, apparatus, 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 comprises the following steps: acquiring log data to be stored and marking the grade information of the log data; Judging whether the number of logsin the log queue is less than a preset queue threshold; If not, the redundant log data is determined in the log queue according to the grade information of the log data and the preset storage configuration, and the redundant log data is deleted from the log queue; Log data and level information of log data are recorded to log queue, and log data is saved to disk according to log queue. 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 is eliminated, so that the congestion and blocking in the log storage process can beavoided, the continuity of the current cluster service is ensured, and a good experience is brought to the user. Accordingly, the log storage device, the device and the readable storage medium disclosed by the present invention also have the technical effects mentioned above.

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