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

A log management method and management device based on incremental logs

A technology of a management method and a management device, which is applied in the field of log management methods and management devices based on incremental logs, can solve the problem of high bandwidth and achieve the effect of avoiding the risk of data loss

Active Publication Date: 2021-03-16
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In the existing implementation method, in the entire distributed system, when the configuration information of a server is updated, other servers associated with it need to record all the configuration information of the server locally, and the bandwidth occupied when synchronizing configuration information between servers is relatively large. high

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 management method and management device based on incremental logs
  • A log management method and management device based on incremental logs
  • A log management method and management device based on incremental logs

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0063] Step 1, use ZooKeeper as the configuration storage center,

[0064] Step 2: Create a record root node for storing each record of the log in ZooKeeper, that is, " / records". In ZooKeeper, the root node of the node used to store the snapshot of the server configuration information is " / nodes".

[0065] As shown in the table below:

[0066]

[0067] Step 3, each server in the system monitors the change of the record root node, namely " / records", and the coordinating thread coordinator monitors the change of the record root node, namely " / records".

[0068] In step 4, the new configuration information of the server identified as aa is submitted to ZooKeeper, and the configuration information is {x:3}. Establish leaf nodes in ZooKeeper to store logs corresponding to modified configuration information in a server. The name of this leaf node uses the ID of this log, for example, the ID of this log is j_0001. The status of the system is updated as follows:

[0069]

...

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 management method and device based on an increment log. The method comprises the following steps: establishing a record root node for storing a log at a configuration storage center; establishing at least one leaf node under the record root node after acquiring the configuration information update of a server, and recording the corresponding log under the leaf node, wherein the log comprises a log identifier and log content, and the log content comprises a server identifier and updated configuration information; storing the log content of the new leaf node in a coordination thread after monitoring that the new leaf node is added in the record root node through the coordination thread; and caching the log content in the new leaf node in the server after each server monitors that the new leaf node is added in the record root node. Through the method disclosed by the invention, full-volume server configuration update in the prior art is converted into increment configuration data update, and the bandwidth consumption for configuration synchronization is reduced to O(n) from O(n2).

Description

technical field [0001] The invention relates to the technical field of Internet data processing, in particular to a log management method and management device based on incremental logs. Background technique [0002] The rise of cloud computing has brought challenges to server management. A set of IT service facilities often includes thousands to tens of thousands of servers. Traditional server management solutions and management software can no longer meet the management needs of large-scale server clusters. The demand for standardized cluster management solutions and management software is becoming more and more urgent. [0003] At present, there are many mature server cluster management software in the open source community, such as ansible, saltstack, puppet, etc. These softwares focus on delivering and executing the configuration of servers in the cluster to each server, as well as static server configuration management. [0004] On the other hand, during the operatio...

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): H04L12/24H04L29/08G06F16/18
CPCG06F16/1815H04L41/069H04L67/30
Inventor 张炎泼
Owner GUIZHOU BAISHANCLOUD TECH CO LTD