Log storage method, control node and computer-readable storage medium

A technology for controlling nodes and logs, applied in the field of cloud services, can solve the problems of vulnerability to attacks, the impact of the overall efficiency of the cloud platform, and the reduction of database query efficiency, so as to improve the efficiency of data query.

Active Publication Date: 2019-01-11
XIAMEN JIWEI TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The operation logs of traditional cloud platforms are mainly stored in relational databases or non-relational databases. As the amount of data increases, the query efficiency of the database gradually decreases, which has a great impact on the overall efficiency of the cloud platform.
At the same time, traditional relational databases or non-relational databases are vulnerable to attacks, causing data to be stolen, tampered with, added or deleted, resulting in data destruction

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, control node and computer-readable storage medium
  • Log storage method, control node and computer-readable storage medium
  • Log storage method, control node and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Such as figure 1 As shown, a log storage method according to an embodiment of the present invention includes the following steps:

[0044] Step 101: the control node receives the log reported by the cloud management platform and the log reported by at least one cloud host;

[0045] It should be noted that the operation log of the traditional cloud platform mainly records the operation log related to the cloud management platform, and does not involve the relevant operation log inside the cloud host, and lacks a complete record of the overall log of the platform. Unilaterally providing the operation log of the cloud management platform is not enough to provide an effective and complete basis for major accidents and internal failures of the cloud host. This application records the important operation and system error logs inside the cloud host. It has been extended to provide an effective supplementary means for corresponding audit and fault location.

[0046] In this e...

Embodiment 2

[0086] This embodiment solves the single point of failure problem in traditional databases by setting multiple control nodes. Even if an accident occurs in the log recording process of a certain control node, other control nodes can still normally record the logs of the entire cloud platform.

[0087] Such as Figure 6 As shown, a log storage method according to an embodiment of the present invention includes the following steps:

[0088] Step 601: Competing to select a current control node among multiple control nodes;

[0089] In this embodiment, the control node may be the cloud management platform and / or the cloud host.

[0090] It should be noted that this application does not limit the method of how to select a current control node through competition among multiple control nodes. control node; or can pre-designate a current control node (usually the node where the cloud management platform is located), when the current control node is down or the program is abnormal, ...

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, a control node and a computer-readable storage medium. The method comprises the following steps: a control node receives a log reported by a cloud management platform and a log reported by at least one cloud host; the control node creates a current block, the current block comprising a block header and a log side chain, the block header comprising a hash value of a previous block, and the log side chain storing received logs in a predetermined order. The logs reported by the cloud management platform and the logs reported by the cloud host are stored in the log side chain and the hash value of the previous block is included in the block header, so that reliable and accurate operation log service is provided for the cloud platform, and reliableservice for the subsequent functions of the cloud platform is further provided, and the data query efficiency is improved by utilizing the advantages of the chain data query.

Description

technical field [0001] The present invention relates to but not limited to the technical field of cloud services, and in particular relates to a log storage method, a control node and a computer-readable storage medium. Background technique [0002] The operation logs of traditional cloud platforms are mainly stored in relational databases or non-relational databases. As the amount of data increases, the query efficiency of the database gradually decreases, which has a great impact on the overall efficiency of the cloud platform. At the same time, traditional relational databases or non-relational databases are vulnerable to attacks, causing data to be stolen, tampered with, added or deleted, resulting in data damage. Contents of the invention [0003] Embodiments of the present invention provide a log storage method, a control node, and a computer-readable storage medium, which can provide a reliable, accurate and tamper-resistant operation log service for a cloud platfor...

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): G06F11/34G06F16/51
CPCG06F11/3438
Inventor 杨清强彭明媛严晓杰林子皇
Owner XIAMEN JIWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products