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

A container log collection method and device

A log and container technology, applied in the Internet field, can solve problems such as incomplete log collection

Active Publication Date: 2020-04-03
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Assume, through manual determination, that application A is running on containers 1, 2, and 3 of elastic computing nodes a, b, and c respectively, then it is necessary to obtain the paths d1, d2 of the log files corresponding to containers 1, 2, and 3 respectively , d3, and then configure the collection paths d1, d2, and d3 on the log collection end to collect logs; however, if the container of application A changes before the next collection, container 1 on elastic computing node a is destroyed, and the original container The program running in 1 is running in the new container 4 on the elastic computing node b. Then, if only the log files corresponding to d1, d2, and d3 are still collected, the log collection of application A may be incomplete, because d1 The logs that need to be collected in the log files corresponding to , d2, and d3 may only be part of the container before the change. In order to ensure the integrity of the log collection, at this time, it is necessary to apply the above-mentioned method again to re-determine all the containers of application A. Log path, collect the logs in the log file corresponding to the new log path

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 container log collection method and device
  • A container log collection method and device
  • A container log collection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] 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 creative efforts fall within the protection scope of the present invention.

[0052] To improve log collection efficiency, the present invention discloses a container log collection method and device, which are applied to computing nodes in an elastic computing system, and are described in detail below.

[0053] see figure 1 , figure 1 A schematic flowchart of a method for collecting container logs provided by an embodiment of the present invention may include the following steps:

[0054] S101, every preset time period or every preset tim...

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 discloses a container log collection method and device, which are applied to computational nodes in an elastic calculating system. Corresponding storage paths of container log files corresponding to application programs are previously stored in a preset container log catalog. The method comprises the steps of searching for log files matched with user collection instructions according to the preset container log catalogs and the user collection instructions every a preset time period or every preset time point, wherein the user collection instructions include one or several combinations of identification information of application programs corresponding to container logs to be collected, identification information of containers corresponding to the container logs to be collected and identification information of log files corresponding to container logs to be collected; collecting logs recorded in the log files. By means of the technical scheme provided by the embodiment of the invention, log collection efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a container log collection method and device. Background technique [0002] Elastic computing can create and destroy containers at any time according to the business needs of the application, without the need to purchase investment in advance. It is a cloud computing service that is simpler and more efficient than physical server or virtual server management. [0003] An elastic computing system usually includes multiple elastic computing nodes, and each container is assigned to an elastic computing node, where an elastic computing node represents a physical server. In addition, in an elastic computing system, a container can only correspond to one application, and an application can run in multiple containers, and these containers may be allocated on the same elastic computing node, or may be allocated on different elastic computing nodes Specifically, which node each cont...

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/24
CPCH04L41/069
Inventor 刘天昊
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More