Method and system for monitoring operation environment information of data base

By constructing a hierarchical software operating environment model and using long-short-term memory neural networks for sequence modeling, the deficiencies of the data base in software and hardware monitoring and real-time storage are solved, enabling fast, comprehensive, and accurate monitoring and analysis, and improving The operational efficiency and intelligent analysis capabilities of the data base.

CN118642918APending Publication Date: 2024-09-13CHINA TOBACCO SHANDONG IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410820360.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The existing data base lacks a clear hierarchy in terms of software and hardware indicator monitoring, making it difficult to realize the connection between data in real-time storage and perform efficient and intelligent in-depth analysis.

Method used

Build a hierarchical software running environment model, use the database Neo4j and distributed search engines for data indexing, combine with long and short-term memory neural networks for sequence modeling, extract features through convolutional layers, and realize intelligent monitoring of hardware, system and application environment indicators. and analysis.

Benefits of technology

It achieves fast, comprehensive and accurate monitoring of data base operating environment information, improves the layering and scalability of monitoring, solves the bottleneck of real-time storage and data utilization, and has better feature extraction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642918A
    Figure CN118642918A
Patent Text Reader

Abstract

The invention relates to the field of information technology processing, and provides a method and a system for monitoring operation environment information of a data base. The method comprises the following steps: constructing a hardware environment layer, a system environment layer and an application environment layer for acquiring various indexes from bottom to top, and constructing a software operation environment model for organizing monitored software operation environment information; based on a software operation environment model, a calling relation between services is stored by adopting a database Neo4j, and a data index is constructed through a distributed search engine; and extracting the characteristics of each index, and performing sequence modeling by adopting a long-short-term memory neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology processing, and in particular to a method and system for monitoring operating environment information of a data base. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the development of the Internet, the monitoring and rational use of the operating environment of system software and application software in large distributed computer systems has become increasingly important. Rapid, comprehensive and accurate monitoring and analysis of software operating environment information (including processor utilization, memory utilization, I / O throughput, service quality indicators, etc.) is not only conducive to a complete grasp of the system operation status, but also provides data support for efficient exception handling and intelligent disaster recovery. In particular, there are a large number of demands for natural language processing large model reasoning, tobacco retail data collection, tobacco product information query, etc. in the field of tobacco intelligent retail, and the data relied on by these demands are all stored in the data base. How to effectively ensure the high reliability of the data base through intelligent monitoring means has a profound impact on the service capabilities of the tobacco retail system and the user's consumption experience.

[0004] Intelligent monitoring and analysis of software operating environment information mainly involves the following background technologies: (1) computer system hardware and software indicator monitoring; (2) large-scale real-time data storage; (3) machine learning technology.

[0005] The data base has certain deficiencies in all three aspects mentioned above. In terms of software and hardware indicator monitoring, the current data base has the problem of unclear hierarchy of data to be monitored, which hinders the hierarchical and scalable nature of the data base in terms of monitoring capabilities. In terms of real-time storage of large-scale data, the current data base is difficult to clarify the relationship between monitoring data based on real-time storage, which creates a bottleneck in the use of real-time monitoring data. In terms of the application of intelligent technologies such as machine learning, the current data base is difficult to use monitoring data for efficient, intelligent, and in-depth analysis that is close to business reality. Summary of the invention

[0006] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a method and system for monitoring the operating environment information of a data base. The present invention supports the collection and intelligent analysis of hardware indicators such as CPU, memory usage, hard disk I / O throughput, network bandwidth, and software indicators such as the number of service requests per minute, service latency, and service call relationships.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] A first aspect of the present invention provides a method for monitoring operating environment information of a data base.

[0009] A method for monitoring operating environment information of a data base, comprising:

[0010] Build hardware environment layer, system environment layer and application environment layer from bottom to top to obtain various indicators, build software operation environment model, and organize the software operation environment information to be monitored;

[0011] Based on the software operating environment model, the Neo4j database is used to store the call relationship between services and the data index is built through a distributed search engine;

[0012] The features of each indicator are extracted and long short-term memory neural network is used for sequence modeling.

[0013] Furthermore, the hardware environment layer is used to obtain indicators of the hardware environment layer, including: CPU usage, memory usage, hard disk bandwidth and network bandwidth.

[0014] Furthermore, the system environment layer is used to obtain resource occupancy indicators of containers and virtual machines and the overall throughput of the system.

[0015] Furthermore, the application environment layer is used to integrate Zipkin and in-application logs to collect, store and view request link data across multiple services.

[0016] Furthermore, the software operating environment model calls the indicator collection code at a configurable time interval and persists the collected indicators.

[0017] Furthermore, the database Neo4j is used to store various indicator data of the hardware environment layer, the system environment layer and the application environment layer, as well as to store the number of service requests and the end-to-end delay.

[0018] Furthermore, the process of extracting the features of each indicator includes: considering each indicator as a time series, and then representing the time series as a two-dimensional image, in which time is used as the horizontal axis and the indicator value is used as the vertical axis, and a convolution layer is used to perform a convolution operation on the time series of each indicator to extract temporal and spatial features.

[0019] A second aspect of the present invention provides a data base operation environment information monitoring system.

[0020] A data base operation environment information monitoring system, comprising:

[0021] An organization module, used to construct a software operating environment model for organizing the software operating environment information monitored, wherein the software operating environment model includes a hardware environment layer, a system environment layer, and an application environment layer for obtaining various indicators;

[0022] The storage module is used to build data indexes through distributed search engines based on the software operating environment model and using the call relationship between the Neo4j database services.

[0023] Implement a module to extract features of each indicator and use long short-term memory neural network for sequence modeling.

[0024] A third aspect of the present invention provides a computer-readable storage medium.

[0025] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the method for monitoring the operating environment information of a data base as described in the first aspect above.

[0026] A fourth aspect of the present invention provides a computer device.

[0027] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for monitoring the operating environment information of a data base as described in the first aspect above are implemented.

[0028] Compared with the prior art, the present invention has the following beneficial effects:

[0029] The present invention can quickly, comprehensively and accurately monitor and analyze the operating environment information for the cigarette retail data base. The present invention establishes a hierarchical software operating environment model according to the structure of the distributed software system, covering various indicators such as CPU utilization, memory utilization, container / virtual machine resource occupancy, service request volume, end-to-end latency, etc. The model defines the hierarchical structure of the software environment information, which is conducive to subsequent structured storage. In order to solve the problem of fast real-time access to software operating environment information, the present invention proposes a method for persisting environmental information based on a graph database and a distributed search engine. In addition, the present invention proposes a long short-term memory neural network that integrates convolution operations for the prediction of environmental information. Compared with traditional long short-term memory neural networks, this network has better feature extraction capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0031] Figure 1It is a flow chart of a method for monitoring operating environment information of a data base shown in the present invention;

[0032] Figure 2 It is a flow chart of the method for persisting environmental information based on a graph database and a distributed search engine shown in the present invention;

[0033] Figure 3 This is a structural diagram of a long short-term memory neural network that integrates convolution operations shown in the present invention. DETAILED DESCRIPTION

[0034] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0035] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0036] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0037] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and systems according to various embodiments of the present disclosure. It should be noted that each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code may include one or more executable instructions for implementing the logical functions specified in each embodiment. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented using a dedicated hardware-based system that performs a specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0038] Embodiment 1

[0039] like Figure 1As shown, this embodiment provides a method for monitoring the operating environment information of a data base. This embodiment uses the method applied to a server as an example. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network servers, cloud communications, middleware services, domain name services, security services CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application. In this embodiment, the method includes the following steps:

[0040] Build hardware environment layer, system environment layer and application environment layer from bottom to top to obtain various indicators, build software operation environment model, and organize the software operation environment information to be monitored;

[0041] Based on the software operating environment model, the Neo4j database is used to store the call relationship between services and the data index is built through a distributed search engine;

[0042] The features of each indicator are extracted and long short-term memory neural network is used for sequence modeling.

[0043] The present invention is described in detail below:

[0044] The present invention comprises: a layered software operating environment model for organizing the monitored software operating environment information;

[0045] An environmental information persistence method based on a graph database and a distributed search engine is used to store the monitored software operating environment information, including: (1) the latency and throughput of large dialogue model reasoning, (2) the latency and throughput of tobacco retail data collection, and (3) the latency and throughput of tobacco product information query.

[0046] A long short-term memory neural network with convolutional operations is used to implement predictions of the software running environment.

[0047] Specifically, the present invention establishes a hierarchical software operating environment model according to the structure of a distributed software system. The model is divided into three layers, from bottom to top: hardware environment layer, system environment layer and application environment layer. The hardware environment layer includes indicators such as CPU usage, memory usage, hard disk bandwidth, network bandwidth, etc.; the system environment layer includes resource occupancy indicators of containers and virtual machines and the overall throughput of the system; the application environment includes service call relationships, request volume, end-to-end latency and other indicators. The software operating environment monitoring program deployed on the server collects and persists the software operating environment according to configurable time intervals and indicators defined by the hierarchical software operating environment model. The above three layers of software operating environments form a step-by-step progressive relationship, and the acquisition of the upper-layer environment information is based on the next layer of environment information. For example, the resource occupancy indicators of containers and virtual machines in the system environment layer and the system throughput need to be calculated based on indicators such as CPU, memory, network, and hard disk in the hardware environment layer.

[0048] The process of collecting and building a layered software runtime environment mainly includes the following steps:

[0049] (1) Define the model layers: including hardware environment layer, system environment layer, and application environment layer;

[0050] (2) Hardware environment layer indicator collection: Define several monitoring agents in the server to collect hardware environment layer indicators such as CPU usage, memory usage, hard disk bandwidth, network bandwidth, etc. by calling operating system commands such as top and reading the contents of the \proc directory.

[0051] (3) System environment layer indicator collection: The operating information of the system environment layer includes the resource usage indicators of containers and virtual machines and the overall system throughput. Use the API provided by the container management tool (Docker CLI) and the virtualization platform (VMware) to obtain the resource usage of containers and virtual machines. For indicators such as the overall system throughput, calculate them based on the collected hardware environment indicators. Specifically, calculate the following indicators:

[0052] ① Network throughput (N T ):

[0053] N T =B / T. T is the time period, and B is the number of bytes sent and received through the network during the time period.

[0054] ② Service throughput (S T )

[0055] S T =C trans / T. Where T is the time period, C trans The number of request transactions completed during this time period.

[0056] When the server cannot continue to create new virtual machines, various types of resources will be left over. In order to reduce various types of remaining resources, the present invention establishes an optimization model:

[0057]

[0058] Among them, c represents CPU, m represents memory, and d represents hard disk. Indicates the total idle capacity of the server. Represents physical server y j The number of idle CPUs, x ic Represents virtual machine x i In the present invention, the output result of the optimization model is controlled to be as small as possible, so that the utilization of server resources is as balanced as possible.

[0059] (4) Application environment layer indicator collection: Integrate Zipkin and application logs to collect, store, and view request link data across multiple services, so as to obtain and calculate indicators such as service call relationships, request volume, and end-to-end latency.

[0060] (5) Setting up a collection timer task: Calling the indicator collection code at a configurable time interval and persisting the collected indicators. Specifically, the present invention uses a Cron expression to run the monitoring program regularly every 30 seconds.

[0061] At the same time, a Python daemon process is used to trigger various collection tasks at the hardware environment layer, system environment layer, and application environment layer.

[0062] To support fast real-time access to the software runtime environment, such as Figure 2 As shown, the present invention proposes a method for persisting environmental information based on a graph database and a distributed search engine. Considering that indicators such as CPU usage, memory usage, hard disk bandwidth, and network bandwidth may be frequently read, the present invention uses a distributed search engine Elasticsearch to build an index for efficient search. Considering the calling relationship between services based on a directed graph structure, the present invention uses the graph database Neo4j to store the calling relationship between services.

[0063] like Figure 3 As shown, the present invention proposes a long short-term memory neural network that integrates convolution operations for the prediction of environmental information. Compared with the traditional long short-term memory neural network, the network extracts the characteristics of indicators such as CPU, memory, hard disk, network, number of requests, end-to-end delay, etc. of each service in the server through the convolution layer, achieving better feature extraction. Specifically, the training and design of the long short-term memory neural network that integrates convolution operations mainly includes the following steps:

[0064] (1) Data preparation: Collect historical data of CPU, memory, hard disk, network, number of requests, end-to-end latency and other operating indicators of each service in the server through the Neo4j database. Organize the above data into training data files in csv format in chronological order.

[0065] (2) Feature extraction: The features of each indicator are extracted through the convolution layer. Specifically, the structure of the convolutional neural network is used for feature extraction. Each indicator is regarded as a time series and then represented as a two-dimensional image, with time as the horizontal axis and the indicator value as the vertical axis. Then, the convolution layer is used to perform a convolution operation on the time series of each indicator to extract temporal and spatial features. Specifically, the indicators involved mainly include CPU, memory, hard disk, network, number of requests, end-to-end latency, dialogue large model inference latency and throughput, tobacco retail data collection latency and throughput, tobacco product information query latency and throughput, etc.

[0066] (3) Sequence modeling: The feature extraction results are further input into the long short-term memory network. This network can handle the long-term dependencies of time series data and retain the spatial locality characteristics. The network structure can be seen in Figure 3 Compared with the traditional long short-term memory network, the network proposed in the present invention uses convolution operation instead of full connection operation, so that the network can automatically learn the characteristics of time and space. The output of the network is the predicted value of the corresponding indicator at the next time step.

[0067] Embodiment 2

[0068] This embodiment provides a data base operation environment information monitoring system.

[0069] A data base operation environment information monitoring system, comprising:

[0070] An organization module, used to construct a software operating environment model for organizing the software operating environment information monitored, wherein the software operating environment model includes a hardware environment layer, a system environment layer, and an application environment layer for obtaining various indicators;

[0071] The storage module is used to build data indexes through distributed search engines based on the software operating environment model and using the call relationship between the Neo4j database services.

[0072] Implement a module to extract features of each indicator and use long short-term memory neural network for sequence modeling.

[0073] It should be noted that the above-mentioned organization module, storage module and implementation module are the same as the examples and application scenarios implemented by the steps in Embodiment 1, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the above-mentioned modules as part of the system can be executed in a computer system such as a set of computer executable instructions.

[0074] Embodiment 3

[0075] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for monitoring the operating environment information of a data base as described in the first embodiment above are implemented.

[0076] Embodiment 4

[0077] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for monitoring the operating environment information of a data base as described in the first embodiment above are implemented.

[0078] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0079] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0082] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0083] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for monitoring operating environment information of a data base, characterized in that: include: Build hardware environment layer, system environment layer and application environment layer from bottom to top to obtain various indicators, build software operation environment model, and organize the software operation environment information to be monitored; Based on the software operating environment model, the Neo4j database is used to store the call relationship between services and the data index is built through a distributed search engine; The features of each indicator are extracted and long short-term memory neural network is used for sequence modeling.

2. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The hardware environment layer is used to obtain indicators of the hardware environment layer, including: CPU usage, memory usage, hard disk bandwidth and network bandwidth.

3. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The system environment layer is used to obtain resource occupancy indicators of containers and virtual machines and the overall throughput of the system.

4. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The application environment layer is used to integrate Zipkin and in-application logs to collect, store, and view request link data across multiple services.

5. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The software operating environment model calls the indicator collection code at configurable time intervals and persists the collected indicators.

6. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The database Neo4j is used to store various indicator data of the hardware environment layer, the system environment layer and the application environment layer, as well as the number of service requests and the end-to-end delay.

7. The method for monitoring the operating environment information of a data base according to claim 1, characterized in that: The process of extracting the features of each indicator includes: considering each indicator as a time series, and then representing the time series as a two-dimensional image, in which time is used as the horizontal axis and the indicator value is used as the vertical axis, and a convolution layer is used to perform a convolution operation on the time series of each indicator to extract features in time and space.

8. A data base operating environment information monitoring system, characterized in that: include: An organization module, used to construct a software operating environment model for organizing the software operating environment information monitored, wherein the software operating environment model includes a hardware environment layer, a system environment layer, and an application environment layer for obtaining various indicators; The storage module is used to build data indexes through distributed search engines based on the software operating environment model and using the call relationship between the Neo4j database services. Implement a module to extract features of each indicator and use long short-term memory neural network for sequence modeling.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method for monitoring the operating environment information of a data base as described in any one of claims 1 to 7 are implemented.

10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for monitoring the operating environment information of the data base according to any one of claims 1 to 7 are implemented.