Log file storage method and device

A log file and storage method technology, applied in the computer field, can solve problems such as bad experience, large volume, and complicated deployment

Pending Publication Date: 2020-01-17
GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, fluentd is a relatively large log plug-in, and its deployment is complicated. It is not suitable for some simple back-end system development. In the process of saving the log files corresponding to each pod, it is impossible to transfer the log files between each pod. Log file names are differentiated
And when the user needs to query the

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 file storage method and device
  • Log file storage method and device
  • Log file storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] 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 making creative efforts belong to the protection scope of the present invention.

[0053] In this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any actual relationship or order, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that in...

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 relates to the technical field of computers, in particular to a log file storage method and device. The method comprises the following steps: determining a storage path corresponding toeach pod when Kurbernetes start each pod; obtaining each host path of the host machine, and setting a corresponding relationship between the storage path and the host path, so that the storage path ismounted under the host path; and storing the log file generated by each pod into the storage path, and synchronously storing the log files in the storage path into the host machine according to the corresponding relationship between the storage path and the host machine path, so that a user can search the log files through the host machine. By applying the method provided by the invention, the log file generated by the pod can be stored in the host machine, and the user can quickly find the required log file according to the host path in the host machine, so that the process of querying the log file by the user is simplified, and the query experience of the user is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for saving log files. Background technique [0002] In the container cluster management system (Kurbernetes, K8S), there are multiple resource type group pods, and each pod corresponds to a main process. Users can query the log files corresponding to each pod in Kubernetes to understand the execution status of the main process corresponding to each pod, so as to meet the needs of users to manage and monitor each pod in Kubernetes. [0003] In the kubernetes of the prior art, the log collection system fluentd is generally used to output the log files generated by each pod, and to persist each output log file. However, fluentd is a relatively large log plug-in, and its deployment is complicated. It is not suitable for some simple back-end system development. In the process of saving the log files corresponding to each pod, it is impossible to transfer the log...

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
IPC IPC(8): G06F16/14G06F16/16G06F16/17
CPCG06F16/148G06F16/16G06F16/1734
Inventor 王文潇
Owner GUANGDONG INSPUR BIG DATA RES 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