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

Log collection method, system, device and computer readable storage medium

A collection method and computer program technology, which can be used in computing, program control design, instruments, etc., and can solve problems such as log collection failures

Active Publication Date: 2020-09-04
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF10 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] And in the container, there are two types of container logs, one is the standard output log, and the other is the text log, where the text log refers to the log that exists inside the container and is not redirected to the standard output, and the standard output log Refers to the logs that need to be output to the outside world; however, due to the dynamic scalability of the Kubernetes cluster, for example, after a Pod on a cluster node is damaged, a new Pod will be opened on another cluster node. If logs are collected during this process, because If the location of the Pod changes, log collection will fail.

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 collection method, system, device and computer readable storage medium
  • Log collection method, system, device and computer readable storage medium
  • Log collection method, system, device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0048] Container technology is a virtualization technology that saves computing resources and is more flexible than virtual machine technology. With the development of container technology, many container orchestration engines have emerged to manage containers, and Kubernetes technology stands out as the de facto standard in the field of container orchestration. When applying container technology to the actual production environment, due to the technical threshold, it is difficult t...

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 collection method, a system, a device and a computer readable storage medium, which are applied to each physical node of a Kubernetes cluster. The method comprise the following steps: obtaining a preset container which comprises a monitoring process and a collection process; monitoring the container of the physical node based on the monitoring process to obtain a monitoring result; based on the monitoring result, determining a target identifier of a target container needing to collect the standard output log; determining a log file path of the target container based on the target identifier; configuring the log file path into an acquisition process; and performing log collection based on the configured collection process to obtain a target log. In the application, each physical node monitors its own container, the burden of the cluster master node can be reduced, and log collection can be performed based on the log file path to obtain the target log. Therefore, even if the position of the container on the physical node changes, the log collection can also be performed on the container, and the success rate is high.

Description

technical field [0001] The present application relates to the technical field of log collection, and more specifically, to a log collection method, system, device, and computer-readable storage medium. Background technique [0002] Container technology is a virtualization technology that saves computing resources and is more flexible than virtual machine technology. With the development of container technology, many container orchestration engines have emerged to manage containers, and Kubernetes technology stands out as the de facto standard in the field of container orchestration. When applying container technology to the actual production environment, due to the technical threshold, it is difficult to deploy the application system only using Kubernetes. Therefore, it is necessary to develop a software system to manage the Kubernetes cluster. Logs are a key part of the application. In the dynamic environment of the container platform, how to conveniently and quickly autom...

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/30G06F9/455
CPCG06F11/3006G06F11/3065G06F9/45558G06F2009/45595G06F2009/45591Y02D10/00
Inventor 崔润兴刘正伟
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD