Method and device for collecting running logs of elastic nodes in virtualized environment

A virtualized environment and elastic node technology, which is applied in the field of elastic node operation log collection in a virtualized environment, can solve problems such as incomplete log collection, and achieve the effect of improving integrity

Inactive Publication Date: 2018-05-01
ZTE CORP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The method and device for realizing the collection of elastic node operation logs in a virtualized environment provided by the embodiments of the present invention mainly solve the technical problem that the current collection of node operation logs is incomplete

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
  • Method and device for collecting running logs of elastic nodes in virtualized environment
  • Method and device for collecting running logs of elastic nodes in virtualized environment
  • Method and device for collecting running logs of elastic nodes in virtualized environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] This embodiment provides a method for collecting running logs of elastic nodes in a virtualized environment. For details, see figure 1 , including:

[0026] Step S101, collecting and storing log files before offline for the nodes on the virtual machine to be deleted;

[0027] Step S102, receiving the log collection request, and analyzing the collected objects in the log collection request;

[0028] Step S103, if the collected object is a deleted virtual machine, call the stored log file and upload it to the collection client;

[0029] Step S104, if the object to be collected is a running virtual machine, initiate log collection on a corresponding node on the running virtual machine, and control the running virtual machine to push log files to the collection client.

[0030] Specifically, in order to avoid the problem of losing the log files corresponding to the virtual machine after the virtual machine is deleted, you can collect the logs of the nodes on the virtual m...

Embodiment 2

[0071] This embodiment provides a device for collecting running logs of elastic nodes in a virtualized environment. Please refer to Figure 5 , specifically includes: a log collection management module 51, a collected object determination module 52 and a log file management module 53, wherein the log collection management module 51 is used to collect logs before offline and store log files on the nodes on the virtual machine to be deleted; The acquisition object determination module 52 is used to receive the log acquisition request, and analyze the acquired object in the log acquisition request; the log file management module 53 is used to call the stored log file if the acquired object is a deleted virtual machine, and upload it to Acquisition client; the log collection management module 53 is also used for initiating log collection on the corresponding node on the virtual machine in operation, and controlling the virtual machine in operation to push the virtual machine to the...

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 method and device for collecting running logs of elastic nodes in a virtualized environment. The method comprises the following steps: collecting logs of to-be-deleted nodes in virtual machines before offline and storing log files; receiving a log collection request and analyzing to-be-collected objects in the log collection request; calling stored log files of to-be-collected objects from deleted virtual machines and uploading the log files to a collection client-side; and starting to collect logs of corresponding nodes of running virtual machines when to-be-collected objects are from running virtual machines and controlling the running virtual machines to push log files to the collection client-side. Therefore, complete collection of log files of nodes is achieved such that a user can have a better insight into running of node logs. As a result, logs are collected more completely in the virtualized environment.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method and a device for realizing the collection of running logs of elastic nodes in a virtualized environment. Background technique [0002] The running log is very useful for analyzing the running status of nodes, so the system usually provides running log records; and more professional systems will provide convenient log collection methods. However, in a virtualized environment, nodes are all running on virtual machines, and many nodes are elastic nodes. The virtual machines where they are located appear to shrink, and some of their operation logs are stored on the local disk of the virtual machine. Afterwards, the disk of the virtual machine is also deleted, resulting in loss of log data, and the logs of the deleted virtual machine cannot be collected. Contents of the invention [0003] The method and device for realizing the collection of elastic node operation logs in...

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): G06F17/30
CPCG06F16/1815
Inventor 肖杰
Owner ZTE CORP
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