Log information processing method and device, software program, equipment and storage medium
By using soft connections in the container cluster management system to transfer log information to the back-end server for management, the problem of waste of log information processing resources and low node utilization in cloud gaming scenarios is solved, and high-performance, low-overhead log information is achieved. processing, improving maintenance efficiency and reliability.
Patent Information
- Application Number
- CN202310293259.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
In cloud gaming scenarios, existing log information processing technology has problems of resource waste and low node utilization. In particular, due to the high number and frequency of container pull-up and destruction, regular scanning causes large system overhead, which affects the efficiency of log information processing. and reliability.
By creating soft connections in the container cluster management system, the business log information to be processed is transferred to a fixed back-end server for management, and the container timeliness is used to delete the log information and soft connections brought by invalid containers to achieve high performance and low cost. Overhead log information processing.
It improves the maintenance efficiency of business APPs and the reliability of log information processing, can effectively handle large volumes of business log information, improves user experience, and improves the performance and scalability of the container cluster management system.
Smart Images

Figure CN118672845A
Abstract
Description
Technical Field
[0001] The present invention relates to log information processing technology, and in particular to a log information processing method, device, system, software program, electronic device and storage medium. Background Art
[0002] During the program running process, in order to facilitate troubleshooting and on-site review when problems occur, log information is often output during the program running process. However, a large amount of log information output often brings negative problems, such as affecting the program running efficiency and causing consumption of system and hardware resources. Therefore, in general scenarios, the output of log information will be carried out at different levels according to different importance.
[0003] In the related art, the way of outputting log information is relatively simple, and can only be output in chronological order, which is specifically manifested as: setting the output log information level, for example: different log information level parameters such as debug, info, warning, error, fatal, etc. After setting the log information output level, the output log information content will not change dynamically; then output the time when the log information occurs, the class name, method name, code line number, log information level, log information detailed information, etc. in chronological order according to the configuration.
[0004] When using cloud server clusters to manage log information, the existing logpilot technology needs to regularly scan all containers on the node when processing business logs. However, cloud gaming scenarios are different from other cloud native applications. In cloud gaming scenarios, containers are started and destroyed many times, with high frequency and short intervals. Regular scanning will result in a large waste of resources and low node utilization. Summary of the invention
[0005] In view of this, the embodiments of the present invention provide a log information processing method, device, software program, electronic device and storage medium, which can put the unprocessed business logs in the container group into a collection directory through soft links and transfer them to a fixed back end (server) for management. Then, with the help of the container timeliness of the container cluster management system, the business log information brought by the invalid container and the soft links used for processing are deleted, thereby achieving high performance, low overhead and easy management of the container cluster management system, and at the same time can effectively improve the maintenance efficiency of the business APP and improve the reliability and scalability of log information processing.
[0006] The technical solution of the embodiment of the present invention is achieved as follows:
[0007] An embodiment of the present invention provides a log information processing method, the method comprising:
[0008] Scan the log information in the container group of the container cluster management system to obtain the business log information to be processed;
[0009] Creating a soft link matching the container group;
[0010] Associating the to-be-processed business log information with the collection directory through the soft connection;
[0011] Acquire all pending business log information associated with the collection directory, and save the collected pending business log information in the target server;
[0012] The service log information and invalid soft links in the invalid container group in the container cluster management system are deleted.
[0013] The embodiment of the present invention further provides a log information processing device, including:
[0014] An information processing module is used to scan the log information in the container group of the container cluster management system to obtain the business log information to be processed;
[0015] An information processing module, used for creating a soft link matching the container group;
[0016] The information processing module is used to associate the to-be-processed business log information with the collection directory through the soft connection;
[0017] The information processing module is used to obtain all pending business log information associated with the collection directory, and save the collected pending business log information in the target server;
[0018] The information processing module is used to delete the business log information and invalid soft links in the invalid container group in the container cluster management system.
[0019] In the above scheme,
[0020] An information processing module, configured to determine different nodes of the container cluster management system, wherein the node includes at least one container group;
[0021] An information processing module, used to obtain a container group status record table for each container group in the node;
[0022] The information processing module is used to search the pending business log information according to the container group state record table, wherein the pending business log information includes: new event information, update event information, and deletion event information.
[0023] In the above scheme,
[0024] An information processing module, used for executing a new event processing function through the container cluster management system to obtain new business log information when a new container group is added;
[0025] An information processing module, used for executing an update event processing function or a deletion event processing function through the container cluster management system when updating a container group, to obtain update service log information;
[0026] An information processing module, used for executing a deletion event processing function through the container cluster management system to obtain deletion service log information when a container group is deleted;
[0027] The information processing module is used to update the container group status record table according to the newly added service log information, the updated service log information, and the deleted service log information.
[0028] In the above scheme,
[0029] An information processing module, used for obtaining a soft connection detection time interval;
[0030] The information processing module is used to compare the container group status record table with the collection directory according to the soft connection detection time interval to obtain the soft connection to be established.
[0031] An information processing module, configured to extract each container group status record from the container group status record table according to the soft connection detection time interval;
[0032] An information processing module, used to obtain a log file matching rule in the container group status record;
[0033] An information processing module, configured to match all files in a path corresponding to the container group status record according to the log file matching rule to obtain at least one target file, wherein the target file stores the business log information to be processed;
[0034] The information processing module is used to search for the corresponding soft link in the collection directory according to each target file, and to establish a soft link in the collection directory when the target file has no corresponding soft link.
[0035] In the above scheme,
[0036] An information processing module, used to deploy the integrated log collection system container in the node of the container cluster management system through a background support service set;
[0037] An information processing module, configured to obtain a configuration file corresponding to the container group, wherein the configuration file includes identification information of the target server;
[0038] An information processing module, configured to obtain, according to the collection directory, all to-be-processed business log information associated with the collection directory through the integrated log collection system container;
[0039] The information processing module is used to save all the to-be-processed business log information in the target server through the integrated log collection system container according to the configuration file.
[0040] In the above scheme,
[0041] An information processing module, configured to detect all nodes in the container cluster management system according to the state of the container group and the node name of the container cluster management system, and obtain an invalid container group;
[0042] An information processing module, used for deleting the business log information in the invalid container group;
[0043] An information processing module, used to traverse all soft links in the collection directory and determine the status of the business log information corresponding to the soft links;
[0044] An information processing module, configured to determine that the soft connection is an invalid soft connection when the status of the business log information corresponding to the soft connection is non-existent;
[0045] The information processing module is used to delete the invalid soft link.
[0046] In the above scheme,
[0047] An information processing module is used to verify the permission information of the service object based on the service object identifier of the container cluster management system;
[0048] When the identifier of the service object is consistent with the corresponding permission information, the log information processing process is triggered to adjust.
[0049] In the above scheme,
[0050] An information processing module is used to verify the permission information of the service object based on the service object identifier of the container cluster management system;
[0051] The information processing module is used to trigger the adjustment of the log information processing process when the identification of the service object is consistent with the corresponding permission information.
[0052] An embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0053] A memory for storing executable instructions;
[0054] The processor is used to implement the preceding log information processing method when running the executable instructions stored in the memory.
[0055] An embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, wherein the executable instructions implement the preceding log information processing method when executed by a processor.
[0056] The embodiments of the present invention have the following beneficial effects:
[0057] 1) The embodiment of the present invention obtains the business log information to be processed by scanning the log information in the container group of the container cluster management system; creates a soft link matching the container group; associates the business log information to be processed with the collection directory through the soft link; obtains all the business log information to be processed associated with the collection directory, and saves the collected business log information to be processed in the target server; by deleting the business log information and invalid soft links in the invalid container group in the container cluster management system, the business logs to be processed in the container group can be placed in a collection directory through soft links and transferred to a fixed backend (server) for management, thereby achieving high performance, low overhead and easy management of the container cluster management system; 2) Then, with the help of the container timeliness of the container cluster management system, the business log information brought by the invalid container and the soft link used for processing are deleted, so that the maintenance efficiency of the business APP can be effectively improved, the reliability and scalability of log information processing can be improved, so that the container cluster management system can process large volumes of business log information and ensure the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the use environment of the log information processing method provided by an embodiment of the present invention;
[0059] Figure 2 A schematic diagram of the structure of a log information processing device provided by an embodiment of the present invention;
[0060] Figure 3 A schematic diagram of a business log information processing process in the related technology of the present invention;
[0061] Figure 4 An optional flow chart of a log information processing method provided by an embodiment of the present invention;
[0062] Figure 5 A schematic diagram of a process for generating a container group status record table in an embodiment of the present invention;
[0063] Figure 6 A schematic diagram of a process of creating and updating a soft link in an embodiment of the present invention;
[0064] Figure 7 A schematic diagram of the working principle of the integrated log collection system container in an embodiment of the present invention;
[0065] Figure 8 A schematic diagram of a process for deleting service log information and invalid soft links in an invalid container group according to an embodiment of the present invention;
[0066] Fig. 9 A schematic diagram of the use environment of the log information processing method in a cloud game according to an embodiment of the present invention;
[0067] Fig.10 This is a process diagram of the log information processing method provided in this application. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
[0069] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0070] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0071] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0072] 2) Terminals, including but not limited to: ordinary terminals and dedicated terminals, wherein the ordinary terminals maintain a long connection and / or a short connection with the sending channel, and the dedicated terminals maintain a long connection with the sending channel.
[0073] 3) Client: a carrier that implements specific functions in a terminal. For example, a mobile client (APP) is a carrier of specific functions in a mobile terminal, such as the function of executing report creation or the function of displaying reports.
[0074] 4) Mini Program is a program developed based on a front-end language (such as JavaScript) to implement services in a Hyper Text Markup Language (HTML) page. It is downloaded by a client (such as a browser or any client with a built-in browser core) via a network (such as the Internet) and interpreted and executed in the client's browser environment, saving the steps of installation in the client. For example, in a social network client, you can download and run mini programs for various services such as ticket purchase, report preparation, and data display.
[0075] 5) Running environment: the engine used to interpret and execute the code. For example, for the running environment of the mini program, it can be JavaScript Core of the iOS platform or X5 JS Core of the Android platform.
[0076] 6) Third-party application process, which is a component developed for instant messaging clients based on a third-party development framework (such as Vue development framework) and can be used by instant messaging clients to implement various functions.
[0077] 7) Container cluster management system Kubernetes, also known as container cluster management system, is an open source container operation platform that can combine several containers into a service and dynamically allocate hosts for container operation, providing great convenience for users to use containers. Kubernetes can be used to quickly deploy applications, quickly expand applications, seamlessly connect new application functions, and optimize the use of hardware resources.
[0078] Nodes are the basic elements of a container cluster. Depending on the business, nodes can be either virtual machines or physical machines. Each node contains the basic components required to run a container group Pod, including Kubelet (container management component), Kubeproxy (network proxy component), etc.
[0079] The Master node (main node) refers to the cluster control node, which manages and controls the entire cluster. All control commands of the container cluster management system are sent to it, and it is responsible for the specific execution process. The kube-apiserver (resource access component), kube-controller-mansger (operation management controller component) and kube-scheduler (scheduling component) running on the Master node maintain the healthy working state of the entire cluster by constantly communicating with the kubelet and kube-proxy on the working node (Node). If the service of the Master node cannot access a Node, the Node will be marked as unavailable and no new Pods (container groups) will be scheduled to it. However, additional detection is required for the Master itself to prevent the Master from becoming a single point of failure in the cluster, so the Master service also needs to be deployed with high availability.
[0080] Nodes other than the Master are called Nodes or Worker nodes. You can use the node view command (kubectl get nodes) in the Master to view the Node nodes in the cluster. Each Node node will be assigned some workload (Docker container) by the Master node. When a Node goes down, the workload on the node will be automatically transferred to other nodes by the Master node.
[0081] Pod (container group): The smallest / simplest basic unit created or deployed by Kubernetes - a container group. A Pod represents a microservice process running on the cluster, and a microservice process encapsulates an edge container that provides a microservice application (there can also be multiple edge containers), storage resources, an independent network IP, and policy options for managing and controlling how the container runs.
[0082] 8) Istio: A service mesh that provides a transparent, language-independent approach to flexibly and easily automate application network functions.
[0083] 9) WasmPlugin: An extension plug-in for the log information processing process, which is a general term for the envoy plug-in extension mechanism based on istio. Wasm is an efficient, low-level programming language that can be used to write programs in languages other than Java scripts, such as C, C++, Rust, etc., and then compile them into WebAssembly to generate a web application that loads and executes faster. Wasm has the characteristics of efficient operation, memory safety, no undefined behavior and independence. After years of hard work by the compiler and standardization team, it now has a mature community. Wasm is a key technology for implementing H.265. It can play videos without plug-ins, but can only be processed by the central processing unit (CPU), which requires the hardware resources of the CPU.
[0084] On the development side, developers can develop plug-in code based on the plug-in development kit, which is an SDK corresponding to the language used to develop WASM plug-ins. WASM is the abbreviation of WebAssembly technology, which allows developers to compile code in a programming language they are familiar with and then run the code through a virtual machine. In this application, the gateway can integrate the virtual machine. The plug-in development kit can support the development of gateway extension plug-ins in multiple languages, so that the development of gateway extension plug-ins is no longer limited to specific programming languages.
[0085] 10) log4j: A widely used log information output solution in Java language.
[0086] 11) redis: A cross-platform non-relational key-value remote dictionary service system and database with fast speed and support for high concurrent reading and writing.
[0087] Figure 1 A schematic diagram of a usage scenario of the log information processing method provided by an embodiment of the present invention, see Figure 1 The terminal (including terminal 10-1 and terminal 10-2) is provided with a client of software capable of executing different functions, such as a client or plug-in for video playback. The user can obtain and display the target video through the corresponding client, and trigger the corresponding log information processing process during the video playback to record the log information generated by the system in the use environment; the terminal is connected to the server 200 through the network 300, and the network 300 can be a wide area network or a local area network, or a combination of the two, and a wireless link is used to realize data transmission.
[0088] As an example, server 200 is used to deploy a log information processing device to implement the log information processing method provided by the present invention, so as to centrally manage the business data in the container group of each node in the container cluster management system, improve the performance of the container cluster management system, and reduce the overhead of the container cluster management system in processing business log information.
[0089] Taking the client with the video playback function as an example, during the operation of the client, the defects in the client operation process can be located by checking the log information. For example, whether the video playback is successful, whether the video selection of a certain user is successfully played, etc. In order to achieve the above purpose, the developer can select any one or more of the existing multiple log information implementation libraries, and then make the application developed by the developer rely on the log information implementation library, so that the log information output in the main business logic processing process of the application can be realized. Or, since the developer is relatively clear about the specific business processing logic inside the application developed by the developer, in order to achieve more flexible log information output, the developer can also use some log information interface libraries and their corresponding usage documents, etc., to implement specific log information printing logic by writing code, etc. Different types of operations. In short, when a developer develops an application, he will implement a specific log information output function for the application, during which he may use an existing standardized log information implementation library, or he may use the log information interface library to implement a log information output logic that is more suitable for a specific application through coding.
[0090] In some embodiments of the present invention, the service process generated in the server 200 may be written in a software code environment of different programming languages, and the code object may be a code entity of different types. For example, in a software code of the C language, a code object may be a function. In a software code of the JAVA language, a code object may be a class, and in an iOS OC language, a code object may be a target code. In a software code of the C++ language, a code object may be a class or a function to execute request instructions from different terminals.
[0091] The structure of the log information processing device of the embodiment of the present invention is described in detail below. The log information processing device can be implemented in various forms, such as a dedicated terminal with a log information processing device processing function, or a server provided with a log information processing device processing function, such as the preceding Figure 1 Server 200 in. Figure 2 The schematic diagram of the composition structure of the log information processing device provided by the embodiment of the present invention can be understood as follows: Figure 2 Only an exemplary structure of the log information processing device is shown, not all structures, and can be implemented as needed. Figure 2 Partial or complete structure shown.
[0092] The log information processing device provided in the embodiment of the present invention includes: at least one processor 201, a memory 202, a user interface 203 and at least one network interface 204. The various components in the log information processing device are coupled together through a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 2 Various buses are labeled as bus system 205 .
[0093] The user interface 203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0094] It is understood that the memory 202 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. The memory 202 in the embodiment of the present invention can store data to support the operation of the terminal (such as 10-1). Examples of these data include: any computer program for operating on the terminal (such as 10-1), such as an operating system and an application. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application can include various applications.
[0095] In some embodiments, the log information processing device provided by the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the log information processing device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the log information processing method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0096] As an example of a log information processing device provided by an embodiment of the present invention being implemented by a combination of software and hardware, the log information processing device provided by an embodiment of the present invention can be directly embodied as a combination of software modules executed by a processor 201. The software module can be located in a storage medium, and the storage medium is located in a memory 202. The processor 201 reads the executable instructions included in the software module in the memory 202, and combines with necessary hardware (for example, including the processor 201 and other components connected to the bus 205) to complete the log information processing method provided by an embodiment of the present invention.
[0097] As an example, the processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0098] As an example of hardware implementation of the log information processing device provided in an embodiment of the present invention, the device provided in an embodiment of the present invention can be directly executed by a processor 201 in the form of a hardware decoding processor, for example, one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components to implement the log information processing method provided in an embodiment of the present invention.
[0099] The memory 202 in the embodiment of the present invention is used to store various types of data to support the operation of the log information processing device. Examples of such data include: any executable instructions for operating on the log information processing device, such as executable instructions, and the program for implementing the slave log information processing method of the embodiment of the present invention can be included in the executable instructions.
[0100] In other embodiments, the log information processing device provided by the embodiments of the present invention may be implemented in software. Figure 2The log information processing device stored in the memory 202 is shown, which can be software in the form of a program and a plug-in, and includes a series of modules. As an example of a program stored in the memory 202, a log information processing device can be included, and the log information processing device includes the following software modules: an information transmission module 2081 and an information processing module 2082. When the software modules in the log information processing device are read into the RAM by the processor 201 and executed, the log information processing method provided by the embodiment of the present invention will be implemented, wherein the functions of each software module in the log information processing device include:
[0101] The information processing module 2081 is used to scan the log information in the container group of the container cluster management system to obtain the service log information to be processed.
[0102] The information processing module 2082 is used to create a soft link matching the container group.
[0103] The information processing module 2082 is used to associate the business log information to be processed with the collection directory through a soft link.
[0104] The information processing module 20822082 is used to obtain all pending business log information associated with the collection directory, and save the collected pending business log information in the target server.
[0105] The information processing module 2082 is used to delete the service log information and invalid soft links in the invalid container group in the container cluster management system.
[0106] In the above scheme,
[0107] An information processing module 2082 is used to determine different nodes of the container cluster management system, where a node includes at least one container group;
[0108] Information processing module 2082, used to obtain a container group status record table of each container group in the node;
[0109] The information processing module 2082 is used to search for pending business log information according to the container group state record table, wherein the pending business log information includes: new event information, update event information, and delete event information.
[0110] In the above scheme,
[0111] The information processing module 2082 is used to execute a new event processing function through the container cluster management system when a new container group is added to obtain new business log information;
[0112] The information processing module 2082 is used to execute an update event processing function or a deletion event processing function through the container cluster management system when updating the container group, and obtain update service log information;
[0113] The information processing module 2082 is used to execute a deletion event processing function through the container cluster management system to obtain deletion service log information when a container group is deleted;
[0114] The information processing module 2082 is used to update the container group status record table according to the newly added service log information, the updated service log information, and the deleted service log information.
[0115] In the above scheme,
[0116] Information processing module 2082, used to obtain soft connection detection time interval;
[0117] The information processing module 2082 is used to compare the container group status record table and the collection directory according to the soft connection detection time interval to obtain the soft connection to be established.
[0118] An information processing module, used for extracting each container group status record in the container group status record table according to the soft connection detection time interval;
[0119] An information processing module, used to obtain a log file matching rule in a container group status record;
[0120] An information processing module, used to match all files in the path corresponding to the container group status record according to the log file matching rule to obtain at least one target file, wherein the target file stores the business log information to be processed;
[0121] The information processing module is used to search for the corresponding soft link in the collection directory according to each target file, and to establish a soft link in the collection directory when the target file has no corresponding soft link.
[0122] In the above scheme,
[0123] An information processing module, used to deploy the integrated log collection system container in a node of the container cluster management system through a background support service set;
[0124] An information processing module, used to obtain a configuration file corresponding to the container group, wherein the configuration file includes identification information of the target server;
[0125] The information processing module is used to obtain all to-be-processed business log information associated with the collection directory through the integrated log collection system container according to the collection directory;
[0126] The information processing module is used to save all the business log information to be processed in the target server through the integrated log collection system container according to the configuration file.
[0127] In the above scheme,
[0128] An information processing module is used to detect all nodes in the container cluster management system according to the state of the container group and the node name of the container cluster management system to obtain an invalid container group;
[0129] An information processing module, used for deleting business log information in an invalid container group;
[0130] An information processing module is used to traverse all soft links in the collection directory and determine the status of the business log information corresponding to the soft link;
[0131] An information processing module, used for determining that the soft connection is an invalid soft connection when the status of the business log information corresponding to the soft connection is non-existent;
[0132] The information processing module 2082 is used to delete invalid soft links.
[0133] In the above scheme,
[0134] The information processing module 2082 is used to verify the permission information of the service object based on the service object identifier of the container cluster management system;
[0135] When the identifier of the service object is consistent with the corresponding permission information, the log information processing process is triggered to adjust.
[0136] In the above scheme,
[0137] The information processing module 2082 is used to verify the permission information of the service object based on the service object identifier of the container cluster management system;
[0138] The information processing module 2082 is used to trigger the adjustment of the log information processing process when the identification of the service object is consistent with the corresponding permission information.
[0139] according to Figure 2 The electronic device shown, in one aspect of the present application, the present application also provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations of the above-mentioned log information processing method.
[0140] Combination Figure 2The log information processing device shown illustrates the log information processing method provided by the embodiment of the present invention, wherein, in the log information processing process, reference is made to Figure 3 , Figure 3 The following is a schematic diagram of the business log information processing process in the related technology of the present invention. Log-Pilot itself is divided into three parts, one of which is container event management, which can dynamically detect event changes in containers, and then parse them according to the labels of the containers, generate log collection configuration files, and then hand them over to the collection plug-in for log collection. Figure 3 In the process shown, through full scanning plus event detection, for example, when the collection tool process starts, it will first scan all the container lists on the host machine, and then dynamically generate the log collection configuration file based on the declarative configuration of the container, and then register event detection to realize automatic log discovery. When the existing logpilot technology processes business logs, it is necessary to regularly scan the containers on the node in full. However, the cloud gaming scenario is different from other cloud native applications. Regular scanning will result in a lot of resource waste. In order to improve the node utilization rate, the number of devices running on the same node will be very large (up to 200 pods, about 400 containers). The full overhead will be very large, which will greatly increase the system overhead and may cause data consistency problems. Therefore, in the cloud gaming scenario, the number of container startup and destruction times is high, the frequency is high, and the interval is short. Regular scanning will result in a lot of resource waste and low node utilization.
[0141] To solve the above defects, refer to Figure 4 The embodiment of the present invention provides a log information processing method, which can put the unprocessed business logs in the container group into a collection directory through soft links and transfer them to a fixed backend (server) for management. Then, with the help of the container timeliness of the container cluster management system, the business log information brought by the invalid container and the soft links used for processing are deleted. In this way, the high performance, low overhead and easy management of the container cluster management system are achieved, and at the same time, the maintenance efficiency of the business APP can be effectively improved, and the reliability and scalability of log information processing can be improved.
[0142] Among them, the embodiments of the present invention can be implemented in combination with cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software and network in a wide area network or a local area network to realize data calculation, storage, processing and sharing. It can also be understood as a general term for network technology, information technology, integration technology, management platform technology and application technology based on cloud computing business model applications. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites, so cloud technology needs to be supported by cloud computing.
[0143] It should be noted that cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called the "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use. As a basic capability provider of cloud computing, a cloud computing resource pool platform will be established, referred to as a cloud platform, generally referred to as Infrastructure as a Service (IaaS), and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (which can be virtualized servers, including operating systems), storage devices and network devices. When users use cloud servers to store data or deploy different application processes, detecting the operating parameters of the server cluster hard disk can timely discover possible server cluster hard disk failures and avoid user data loss caused by server cluster hard disk failures with failure warnings.
[0144] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud remote dictionary service system (hereinafter referred to as remote dictionary service system) refers to a remote dictionary service system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of storage devices of various types (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide data storage and business access functions to the outside world. At present, the storage method of the remote dictionary service system is to create a logical volume. When creating a logical volume, a physical storage space is allocated to each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, the data is stored on the file system. The file system divides the data into many parts, each of which is an object. The object not only contains data but also contains additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object. Therefore, when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object. The process of allocating physical storage space to a logical volume by the remote dictionary service system is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.
[0145] Among them, when applied to cloud products, the front end of the cloud product can be a Web UI component, which is used to receive Spark related parameters filled in by the user and generate job data according to the Spark related parameters. Among them, the cluster manager (ClusterManager) can be an open source cluster resource scheduling platform such as YARN, Mesos or Kubernetes. Spark itself already supports these open source platforms, that is, the protocols between the Spark component and the ClusterManager component are compatible. Driver is the job driver, Work Node is the work node, Executor is the task execution component, and task is the smallest execution unit. Furthermore, the structured data package (spark SQL) is a package used by Spark to operate structured data. Through this SparkSQL, you can use the SQL language to query data. This Spark SQL supports a variety of data sources, such as data warehouse tool (Hive) tables, etc. The streaming computing component is a component provided by Spark for streaming computing of real-time data. It provides an application programming interface (API) for operating data streams. When the software program product of the log information processing method provided by itself is deployed in the cloud system, the extension plug-in of the log information processing process can be used in combination with the business app or in the export gateway of the istio cluster. When the configuration information of the extension plug-in is changed, the configuration information of the extension plug-in can be flexibly adjusted and iteratively upgraded according to the needs of different users.
[0146] Figure 4 An optional flow chart of the log information processing method provided by the embodiment of the present invention is provided. It can be understood that: Figure 4 The steps shown can be performed by various electronic devices running the log information processing device, for example, a cloud server or cloud server group with a log information processing function. Figure 1 The server 200 shown in the preceding Figure 2 The corresponding software modules in the log information processing device shown below Figure 4 The steps shown are explained.
[0147] Step 401: The log information processing device scans the log information in the container group of the container cluster management system to obtain the service log information to be processed.
[0148] When the log information processing request in the present application corresponds to log information that can come from multiple different apps, and the multiple apps are connected to a server cluster, taking the container cluster management system as an example, the Kubernetes cluster generally includes a master node (Master), and multiple computing nodes (Node) that are respectively connected to the master node for communication, wherein the master node is used to manage and control multiple computing nodes, and the computing node serves as a workload node, which contains the original application program and multiple container groups (Pod) directly deployed in the node, each container group encapsulates one or more containers (Container) for carrying the application program, and Pod is the basic operation unit of Kubernetes and the smallest deployment unit that can be created, debugged, and managed. The type of working copy is resource type (Deployment type), which can deploy type tasks. Deployment integrates online deployment, rolling upgrade, copy creation, suspension of online tasks, resumption of online tasks, rollback to a previous version of Deployment (successful / stable) and other functions. To a certain extent, Deployment can achieve unattended online, greatly reducing the complex communication and operational risks of the online process. For Deployment type working copies, you can first determine the list of ReplicaSet objects associated with the Deployment type, and then find the associated Pod list from the cache through the replica controller ReplicaSet. Among them, ReplicaSet is a replica controller in kubernetes. Its main function is to control the pod managed by ReplicaSet so that the number of pod copies is always maintained at the preset number.
[0149] Before executing step 401 to obtain the service log information to be processed, the container cluster management system first generates a container group status record table reference according to the results of the events executed in each container group. Figure 5 , Figure 5 The process of generating a container group status record table in an embodiment of the present invention is schematically shown, which specifically includes the following steps:
[0150] Step 501: When a new container group is added, a new event processing function is executed through the container cluster management system to obtain new service log information.
[0151] Among them, the business log information to be processed includes: new event information, update event information, and deletion event information. Before executing step 501, the container cluster management system client establishes a long connection with the container cluster management system cluster and initializes the corresponding event processing method (callback function). For example, when adding a new pod, the container cluster management system client will call the compiled specified new event processing function, and when updating or deleting, it will call the corresponding function of the update event or deletion event. After that, the container cluster management system cluster notifies the container cluster management system client of the corresponding update event. The container cluster management system client calls the corresponding processing function according to different event types and dynamically updates the pod status record table.
[0152] In some embodiments of the present invention, each user participating in the cloud game corresponds to a pod. When the user runs the cloud game program, the cloud game program creates a new pod corresponding to each new user added. When the user ends the cloud game program, the pod corresponding to the user is destroyed.
[0153] For example, taking racing cloud games as an example, one prop can be recommended to the target user based on the target object's usage habits. At this time, the recommended prop is a new event. During the game, the user uses one game prop. At this time, the used game prop is an update event. When the user completes a game, one game point is consumed and one game point in the user account needs to be deleted. At this time, the deleted game point is a deletion event.
[0154] Step 502: When updating the container group, the update event processing function or the deletion event processing function is executed by the container cluster management system to obtain update service log information.
[0155] Step 503: When a container group is deleted, a deletion event processing function is executed by the container cluster management system to obtain deletion service log information.
[0156] Step 504: Update the container group status record table according to the newly added service log information, the updated service log information, and the deleted service log information.
[0157] like Figure 5 As shown, the event processing function is executed to update the pod status record table. Specifically, when a new pod is added, the processing function will insert a new record in the pod status table; when a pod is updated, the processing function will update the original data in the status record table with the new pod information; when a pod is deleted, the processing function will delete the corresponding data in the status record table.
[0158] After step 504 is completed, different nodes of the container cluster management system are determined, wherein the node includes at least one container group; a container group status record table of each container group in the node is obtained; and the service log information to be processed is searched according to the container group status record table.
[0159] In addition, for cloud gaming apps, the container group status record table can also have built-in error information records. The default log access path for error information records is "logs", the log file name is a regular expression of "*log*", the route matching prefix is " / ", and rules (log matching rules, which can include matching information of detection strategies and repair information of repair strategies, etc.) are configured with the following four key rule sets to match the abnormal content in the pending logs of different abnormal types:
[0160] (1) sql: used to match the exception content of database syntax exception type. It is an object containing three keys: color, typeLabel and patternList. The values of color and typeLabel are "#5cdbd3" and "sql syntax error" respectively. PatternList is a set of rules used to match database error type logs, including the matching of error logs generated by syntax errors such as "reference to non-existent SQL table", "reference to non-existent column in SQL table", "duplicate referenced fields in multi-table linked query" and "duplicate primary key unique value".
[0161] (2) es: used to match the abnormal content of ES search syntax abnormality type. The data structure corresponding to its value is consistent with sql. The values of color and typeLabel are "#722ed1" and "es query error" respectively. The patternList can match common ES error types, such as "clustering field type is text", "search does not exist field", "reference index does not exist", etc.
[0162] (3) joi: used to match the exception content of the exception type that fails parameter type verification. Its value structure is the same as above, where color and typeLabel are respectively "#ffa940" and "parameter verification error". patternList can match most error logs generated after failing the JOI tool verification.
[0163] (4) internalError: used to match the exception content of other exception types generated during system operation. Its value structure is the same as above, where color and typeLabel are respectively "#f5222d" and "system internal error". The regular expression set in the patternList collection can match common system errors, such as "reference to undefined function", "reference to undefined variable", "error in converting undefined or null variable to object", "error in reading the first element of undefined variable", "error in changing the value of constant variable", "error in reading the property of undefined or null variable", "request timeout" and other error logs.
[0164] In this way, the container group status record table obtained through the processing of steps 501 to 504 can be used in the log information processing of steps 402 to 405.
[0165] Step 402: The log information processing device creates a soft link that matches the container group.
[0166] Step 403: The log information processing device associates the service log information to be processed with the collection directory through a soft link.
[0167] In some embodiments of the present invention, reference Figure 6 , Figure 6 The following is a schematic diagram of the process of creating and updating a soft link in an embodiment of the present invention, which specifically includes the following steps:
[0168] Step 601: extract each container group status record in the container group status record table according to the soft link detection time interval.
[0169] By setting different connection detection time intervals, it is possible to avoid missing new files in the container. Before executing step 601, it is necessary to set different soft connection detection time intervals according to different application scenarios of the container group. Only then can the container group status record table and the collection directory be compared according to the soft connection detection time interval to obtain the soft connection to be established. Among them, the soft connection detection time interval is different in different cloud game scenarios. The soft connection detection time interval of role-playing cloud game programs needs to be greater than or equal to 2 minutes, and the soft connection detection time interval of racing cloud game programs is 1 minute. At the same time, when the target file cannot be obtained according to the current soft connection detection time interval, it means that the soft connection detection time interval at this time can no longer meet the usage requirements of the cloud game, and it is necessary to respond to the user's adjustment instruction to reduce the soft connection detection time interval until the target file can be obtained according to the adjusted soft connection detection time interval, so as to realize dynamic adjustment of the soft connection detection time interval.
[0170] In some embodiments of the present invention, the dynamic adjustment of the soft connection detection time interval can also be automatically adjusted by the type of cloud game. According to the computing architecture of the cloud platform running the game, cloud games can be divided into two categories: X86 architecture and ARM architecture, where the soft connection detection time interval of X86 architecture cloud games is 30s, and the soft connection detection time interval of ARM architecture cloud games is 27s; according to the game content transmitted over the network, cloud games can be divided into two categories: instruction stream transmission and video stream transmission, where the soft connection detection time interval of instruction stream transmission cloud games is 12s; the soft connection detection time interval of video stream transmission cloud games is 20s; according to the form of terminal-side cloud game products, cloud game forms can be divided into two types: game window streaming and desktop streaming, where the soft connection detection time interval of game window streaming cloud games is 10s, and the soft connection detection time interval of desktop streaming cloud games is 17s. When the soft connection detection time interval of cloud games is automatically adjusted according to the type of cloud games, users do not need to send adjustment instructions, making the user's operation easier, and the user experience of users who are not familiar with cloud game operations is further enhanced.
[0171] Step 602: Obtain the log file matching rule in the container group status record.
[0172] Step 603: Match all files in the path corresponding to the container group status record according to the log file matching rule to obtain at least one target file, wherein the target file stores the service log information to be processed.
[0173] Step 604: According to each target file, search for the corresponding soft link in the collection directory. When the target file does not have a corresponding soft link, create a soft link in the collection directory.
[0174] Therefore, through the processing of step 602-step 604, the pod status record table is read, the corresponding single pod record PRi is taken out (read pod record), and the log file matching rule in the record PRi is read. According to the log file matching rule, the specified file on the corresponding path is matched, and there may be multiple matching files here. For each matching file, a soft link is generated under the unified collection directory. If there is a soft link, it is skipped. If there is no soft link, a corresponding soft link is generated.
[0175] After associating the to-be-processed business log information with the collection directory by using soft links through steps 601 to 604, it is ensured that each to-be-processed business log information has generated a corresponding soft link before continuing to execute step 404.
[0176] Step 404: the log information processing device obtains all the to-be-processed business log information associated with the collection directory, and saves the collected to-be-processed business log information in the target server.
[0177] refer to Figure 7 , Figure 7 This is a schematic diagram of the working principle of the integrated log collection system container in an embodiment of the present invention. First, the integrated log collection system container is deployed in the node of the container cluster management system through the background support service set; the main function of the background support service set DaemonSet is to run a Daemon Pod in the Kubernetes cluster. DaemonSet only manages Pod objects, and then through the two small functions of the scheduler nodeAffinity and Toleration, it ensures that there is one and only one Pod on each node. This Pod has the following three characteristics: 1) This Pod runs on every node (Node) in the Kubernetes cluster. 2) There is only one such Pod instance on each node. 3) When a new node joins the Kubernetes cluster, the Pod will be automatically created on the new node.
[0178] When the old node is deleted, the Pod is also recycled accordingly.
[0179] After the deployment is completed, obtain the configuration file corresponding to the container group, where the configuration file includes the identification information of the target server; according to the collection directory, obtain all pending business log information associated with the collection directory through the integrated log collection system container; according to the configuration file, save all pending business log information in the target server through the integrated log collection system container. Figure 7 As shown in the figure, the fluentd container is deployed to each node through the DaemonSet of the container cluster management system, and the unified collection directory is mounted to the fluentd container through the hostPath of the container cluster management system, and the configuration file is mounted into the container through the configMap of the container cluster management system. When the Fluentd container is started, it will read the configuration file in the container. The configuration file can be used to guide fluentd to save all pending business log information in the target server (that is, the configuration file specifies the collection action of fluentd, saving all business log information to the specified server), and when the target server is fully loaded, trigger the new target server to process the pending business log information, thereby completing the automatic collection.
[0180] When passing Figure 7After all pending business log information is saved in the target server in the steps shown, in order to improve node utilization, invalid business log information and invalid soft links need to be deleted.
[0181] Step 405: The log information processing device deletes the service log information and invalid soft links in the invalid container group in the container cluster management system.
[0182] refer to Figure 8 , Figure 8 The process diagram of deleting the service log information and invalid soft links in the invalid container group in the embodiment of the present invention includes the following steps:
[0183] Step 801: According to the state of the container group and the node name of the container cluster management system, all nodes in the container cluster management system are detected to obtain an invalid container group.
[0184] Among them, regularly cleaning up the invalid log files and invalid soft links remaining in the server of the container cluster management system can ensure that these junk files do not affect the normal operation of the server and ensure the security of user data. Since the native logs of the container cluster management system are mounted in the / var / log / pods directory of the host machine, these logs are managed by the container cluster management system and will be deleted with the end of the container cycle life cycle. The independent business logs of the container are located in other locations of the host machine and are separated from the native log management system of the container cluster management system. Therefore, they need to be cleaned up regularly. At this time, the business logs in the invalid container are cleaned up instead of the container logs.
[0185] Step 802: Delete the service log information in the invalid container group.
[0186] Step 803: Traverse all soft links in the collection directory to determine the status of the business log information corresponding to the soft link.
[0187] Step 804: When the status of the service log information corresponding to the soft connection is non-existent, the soft connection is determined to be an invalid soft connection.
[0188] Step 805: Delete the invalid soft link.
[0189] In some embodiments of the present invention, since Istio provides authentication services for each service process. The Istio agent running with each container cluster management system agent is used together with istiod to automatically rotate keys and certificates, and the permissions of the service object (APP user) can be adjusted, wherein the permission information of the service object is verified based on the service object identifier of the container cluster management system; when the identifier of the service object is consistent with the corresponding permission information, the adjustment of the log information processing process is triggered, thereby ensuring the security of log information processing. At the same time, in response to receiving a hypertext transfer protocol request information including at least one URL, for each URL in at least one URL, it is possible to query whether the URL exists from a preset blacklist, and if so, prohibit access to the URL. Some resources may be harmful, and access to these resources or domain name dimensions needs to be prohibited through a blacklist mechanism. Thereby protecting the security of the terminal.
[0190] In the testing phase, referring to Table 1, compared with the existing LogPilot log collection solution, the log information processing method provided by itself can better meet the collection requirements of the native business logs of the non-container cluster management system. On the basis of the same complete log automatic discovery, log automatic collection, and log automatic cleaning, it is closer to the cloud game business needs. Through the proxy container deployed in the node, a non-intrusive log information processing method is provided to meet the characteristics of the high frequency and short interval of container pull-up and destruction in the game scene of cloud games. Take the actual online operation data of XX cloud game as an example (monthly):
[0191] Table-1 Cloud game log related indicator data
[0192]
[0193]
[0194] The following is a further description of the log information processing method provided by this application in combination with different implementation scenarios. Fig. 9 , Fig. 9This is a schematic diagram of the use environment of the log information processing method in the embodiment of the present invention in cloud games. Cloud games refer to games that run in cloud server devices, encode the game screen rendered by the cloud device, transmit it to the user terminal through the network, and render it to the display screen for display after decoding the encoded file by the user terminal. Therefore, users do not need to install the game locally, but only need to establish a communication network connection with the cloud to complete the game interaction process. The container life cycle of cloud games is shorter, and the cluster will have frequent pull-up and destruction operations. If the traditional log information processing method is used, there will be a lot of resource waste in regular scanning, and in order to improve the node utilization rate, the amount of equipment running on the same node will be very large (up to 200 pods, about 400 containers), the full amount of overhead will be very large, which will greatly increase the system overhead, and there may be data consistency issues.
[0195] See also Fig.10 , Fig.10 This is a process diagram of the log information processing method provided by this application. Fig.10 The cloud game log information to be processed refers to Table 2. Users can join different cloud games. Each user participating in the cloud game corresponds to a pod. When the user runs the cloud game program, the cloud game program creates a new pod corresponding to each new user. When the user ends the cloud game program, the pod corresponding to the user is destroyed. The number of cloud game business pods is positively correlated to the number of users. The longer the user uses it, the more operations, the more logs, and the greater the log concurrency. The content of the cloud game log is mainly aimed at how to provide users with stable links and stable and normal operation of the game. Among them, the game user identity ID, joining cloud game A, joining cloud game B, and joining cloud game C are concurrent data that need to be processed at the same time.
[0196] Table 2
[0197]
[0198]
[0199] Fig.10 The specific steps include:
[0200] Step 1001: Scan the cloud game log information in the container group of the container cluster management system to obtain the cloud game log information business log information to be processed.
[0201] Among them, the log information includes: game user identity ID joins cloud game A, joins cloud game B, and joins cloud game C.
[0202] When executing the log information processing method provided in this application, the container cluster management system can be deployed in the game operator's server according to the needs of the cloud game operator, or it can be deployed in the cloud server of the cloud server cluster operator. When the game user initiates an operation to the game APP service process deployed in the istio cluster, the generated business log information to be processed is saved in the corresponding container group.
[0203] Step 1002: Create a soft link that matches the container group, and associate the cloud game log information to be processed with the collection directory through the soft link.
[0204] Step 1003: Obtain the processed cloud game log information associated with the collection directory, and save the collected business log information to be processed in the game data server.
[0205] Step 1004: Delete the cloud game log information and invalid soft links in the invalid container group.
[0206] Beneficial technical effects:
[0207] 1) The embodiment of the present invention obtains the business log information to be processed by scanning the log information in the container group of the container cluster management system; creates a soft link matching the container group; associates the business log information to be processed to the collection directory through the soft link; obtains all the business log information to be processed associated with the collection directory, and saves the collected business log information to be processed in the target server; by deleting the business log information and invalid soft links in the invalid container group in the container cluster management system, the business logs to be processed in the container group can be placed in a collection directory through the soft link and transferred to a fixed backend (server) for management, thereby realizing the high performance, low overhead and easy management of the container cluster management system; 2) Then, with the help of the container timeliness of the container cluster management system, the business log information brought by the invalid container and the soft link used for processing are deleted, so that the maintenance efficiency of the business APP can be effectively improved, the reliability and scalability of the log information processing can be improved, so that the container cluster management system can process large volumes of business log information and ensure the user experience.
[0208] The above are only embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A log information processing method, characterized in that: Methods include: Scan the log information in the container group of the container cluster management system to obtain the business log information to be processed; Creating a soft link matching the container group; Associating the to-be-processed business log information with the collection directory through the soft connection; Acquire all pending business log information associated with the collection directory, and save the collected pending business log information in the target server; The service log information and invalid soft links in the invalid container group in the container cluster management system are deleted.
2. The method according to claim 1, characterized in that: The scanning of log information in the container group of the container cluster management system to obtain the service log information to be processed includes: Determining different nodes of the container cluster management system, wherein the node includes at least one container group; Obtain a container group status record table for each container group in the node; The to-be-processed business log information is searched according to the container group state record table, wherein the to-be-processed business log information includes: a new event, an update event, and a deletion event.
3. The method according to claim 2, characterized in that The method further comprises: When a new container group is added, a new event processing function is executed by the container cluster management system to obtain new service log information; When updating the container group, the update event processing function or the deletion event processing function is executed by the container cluster management system to obtain update service log information; When a container group is deleted, a deletion event processing function is executed by the container cluster management system to obtain deletion service log information; The container group state record table is updated according to the newly added service log information, the updated service log information, and the deleted service log information.
4. The method according to claim 1, characterized in that: The step of creating a soft link matching the container group includes: Get the soft connection detection time interval; According to the soft connection detection time interval, the container group state record table and the collection directory are compared to obtain the soft connection to be established.
5. The method according to claim 4, characterized in that The step of comparing the container group status record table and the collection directory according to the soft connection detection time interval to obtain the soft connection to be established includes: extracting each container group status record in the container group status record table according to the soft connection detection time interval; Obtaining a log file matching rule in the container group status record; Match all files in the path corresponding to the container group status record according to the log file matching rule to obtain at least one target file, wherein the target file stores the service log information to be processed; According to each target file, the corresponding soft link in the collection directory is searched, and when the target file has no corresponding soft link, a soft link is established in the collection directory.
6. The method according to claim 1, characterized in that The obtaining of all pending business log information associated with the collection directory includes: Deploy the integrated log collection system container in the node of the container cluster management system through the background support service set; Obtaining a configuration file corresponding to the container group, wherein the configuration file includes identification information of the target server; According to the collection directory, all to-be-processed business log information associated with the collection directory is acquired through the integrated log collection system container; According to the configuration file, all the to-be-processed business log information is stored in the target server through the integrated log collection system container.
7. The method according to claim 1, characterized in that The deleting of the service log information and invalid soft links in the invalid container group in the container cluster management system includes: According to the state of the container group and the node name of the container cluster management system, all nodes in the container cluster management system are detected to obtain an invalid container group; Deleting the business log information in the invalid container group; Traverse all soft links in the collection directory to determine the status of the business log information corresponding to the soft links; When the status of the business log information corresponding to the soft connection is non-existent, determining that the soft connection is an invalid soft connection; Delete the invalid soft link.
8. The method according to claim 1, characterized in that: The method further comprises: Verify the permission information of the service object based on the service object identifier of the container cluster management system; When the identifier of the service object is consistent with the corresponding permission information, the log information processing process is triggered to adjust.
9. A log information processing device, characterized in that: The device includes: An information processing module is used to scan the log information in the container group of the container cluster management system to obtain the business log information to be processed; An information processing module, used for creating a soft link matching the container group; The information processing module is used to associate the to-be-processed business log information with the collection directory through the soft connection; The information processing module is used to obtain all pending business log information associated with the collection directory, and save the collected pending business log information in the target server; The information processing module is used to delete the business log information and invalid soft links in the invalid container group in the container cluster management system.
10. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the log information processing method described in any one of claims 1 to 8 when running the executable instructions stored in the memory.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the log information processing method according to any one of claims 1 to 8 is implemented.
12. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by the processor, the log information processing method according to any one of claims 1 to 8 is implemented.
