Data acquisition method and device, equipment and storage medium
By monitoring server performance load data and dynamically adjusting collection parameters, the problem of data collection affecting server operation is solved, and flexible and accurate fault warnings are achieved.
Patent Information
- Application Number
- CN202410803346.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
AI Technical Summary
Existing data collection methods ignore server performance changes, causing the data collection process to affect the normal operation of the server, which may lead to performance degradation or downtime.
By monitoring the performance load data of the server, the performance status level is determined, and the data collection parameters, including collection frequency and level, are dynamically adjusted according to the level to adapt to server performance changes. Raw data is collected and key indicator data is extracted for fault warning.
It enhances the flexibility of data collection, avoids the negative impact of the data collection process on server operation, and ensures the normal operation of the server and the accuracy of fault warnings.
Smart Images

Figure CN118626265A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of equipment operation and maintenance, and in particular to a data collection method, apparatus, equipment and storage medium. Background Art
[0002] In modern Internet infrastructure, servers generate a large amount of data every day, including system logs, application logs, performance indicators, etc. The amount of this data is huge and the content is complex and changeable. In order to ensure the security and reliability of the system, it is necessary to monitor the server for faults. In the traditional fault monitoring method, fixed rules or formulas are used to monitor the changes in the data generated by the server to determine whether the server has failed. This traditional method is often too rigid and cannot cope with complex and changeable fault modes and cannot analyze the actual causes of the faults. The fault diagnosis and solution process relies on manual work, and the whole process is slow and inefficient. In order to solve this problem, artificial intelligence technology is introduced to improve the intelligence level of fault analysis and solutions. A large amount of data generated in the server is collected, and the fault warning model is trained through machine learning algorithms and deep learning algorithms to learn the ability to identify fault patterns, analyze fault causes, and provide solutions from historical data. After the training is completed, the real-time data generated in the server is collected, and the fault warning model is used to identify the fault mode, analyze the fault cause, and provide solutions.
[0003] However, whether in the training stage of the fault warning model or in the application stage of the fault warning model, fixed data collection rules are used to collect data from the server for fault warning, such as: using a fixed collection interval to collect fixed types of data. This data collection process ignores the performance changes of the server and is likely to affect the normal operation of the server. For example: when the server is processing data, as the amount of data to be processed changes, the performance of the server will change at any time. If a smaller collection interval is used to collect a large amount of fixed type data when the server performance is poor, the server performance will further decline, and there is even the possibility of downtime. Summary of the invention
[0004] The present application provides a data collection method, apparatus, device and storage medium to solve the problem that the existing data collection process ignores the performance changes of the server and easily affects the normal operation of the server.
[0005] In order to solve the above technical problems, the present application is solved by the following technical solutions:
[0006] An embodiment of the present application provides a data collection method, including: determining the performance status level of the target system by monitoring the performance load data of the target system; determining data collection parameters according to the performance status level of the target system; collecting raw data in the target system based on the data collection parameters; extracting key indicator data from the raw data, so as to perform fault warning according to the key indicator data using a preset fault warning model.
[0007] Among them, determining the performance status level of the target system by monitoring the performance load data of the target system includes: monitoring at least one performance load data of the target system; reading status conditions corresponding to multiple preset performance status levels; and determining the performance status level corresponding to the status condition met by the at least one performance load data as the performance status level of the target system.
[0008] The at least one performance load data includes: CPU usage and memory occupancy; the multiple preset performance status levels include: low performance status level, medium performance status level and high performance status level; the determining the performance status level corresponding to the status condition that the at least one performance load data meets includes: comparing the CPU usage with a preset first CPU usage threshold and a second CPU usage threshold, and comparing the memory occupancy with a preset first memory occupancy threshold and a second memory occupancy threshold, respectively; wherein the first CPU usage threshold is greater than the second CPU usage threshold; the first memory occupancy threshold is greater than the second memory occupancy threshold; if the CPU usage is greater than the first CPU usage threshold, or the memory occupancy is greater than the first memory occupancy threshold, it is determined that the status condition that the at least one performance load data meets corresponds to the low performance status level; if the CPU usage is less than the second CPU usage threshold, and the memory occupancy is less than the second memory occupancy threshold, it is determined that the status condition that the at least one performance load data meets corresponds to the high performance status level; otherwise, it is determined that the status condition that the at least one performance load data meets corresponds to the medium performance status level.
[0009] Wherein, determining the data collection parameters according to the performance status level of the target system includes: determining the sample collection data corresponding to the performance status level of the target system in the data collection parameters pre-set for multiple performance status levels; wherein different performance status levels correspond to different data collection parameters; in each of the data collection parameters, including: collection frequency and collection level; the collection frequency refers to: the time interval between two adjacent collections of raw data; the collection level refers to: the data type to which the raw data belongs.
[0010] Wherein, the multiple preset performance status levels include: a low performance status level, a medium performance status level and a high performance status level; the collecting of raw data in the target system based on the data acquisition parameters includes: if the performance status level of the target system is a low performance status level, then using a preset first acquisition frequency, in the target system, collecting system-level raw data; if the performance status level of the target system is a medium performance status level, then using a preset second acquisition frequency, in the target system, collecting application-level raw data; if the performance status level of the target system is a high performance status level, then using a preset third acquisition frequency, in the target system, collecting data-level raw data; wherein the values of the first acquisition frequency, the second acquisition frequency and the third acquisition frequency increase sequentially.
[0011] Among them, the extracting key indicator data from the original data includes: performing preprocessing on the original data; extracting various data features in the original data after preprocessing; clustering each data feature according to the type of each data feature to form at least one feature set; in each feature set, extracting data features used for fault prediction as key indicator data.
[0012] Among them, the use of a preset fault warning model to perform fault warning according to the key indicator data includes: in the model application stage, the key indicator data is input into the fault warning model, so that the fault warning model outputs fault warning data according to the key indicator data; in the model training stage, labels are set for the key indicator data to form training sample data; the training sample data is input into the fault warning model, so that the fault warning model outputs fault warning data according to the training sample data, and the fault warning model is adjusted based on the label and the fault warning data.
[0013] Wherein, inputting the training sample data into the fault warning model includes: distributing the training sample data to a plurality of preset training nodes; wherein the plurality of training nodes adopt different machine learning algorithms; instructing each of the training nodes to input the training sample data into the fault warning model located at the training node, so as to perform model training based on federated learning on the fault warning model based on the training sample data.
[0014] Wherein, collecting original data in the target system based on the data collection parameters includes: collecting incremental original data in the target system based on the data collection parameters during the model training phase.
[0015] An embodiment of the present application also provides a data acquisition device, including: a first determination module, used to determine the performance status level of the target system by monitoring the performance load data of the target system; a second determination module, used to determine data acquisition parameters according to the performance status level of the target system; a data acquisition module, used to collect original data in the target system based on the data acquisition parameters; a data extraction module, used to extract key indicator data from the original data, so as to perform fault warning according to the key indicator data using a preset fault warning model.
[0016] An embodiment of the present application also provides a data acquisition device, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to: execute a data acquisition program stored in the memory to implement any of the data acquisition methods described above.
[0017] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed to implement any of the data collection methods described above.
[0018] The beneficial effects of this application are as follows:
[0019] In an embodiment of the present application, the performance status level of the target system is determined by monitoring the performance load data of the target system; data acquisition parameters are determined according to the performance status level of the target system; raw data is collected in the target system based on the data acquisition parameters; key indicator data is extracted from the raw data so as to use a preset fault warning model to perform fault warning according to the key indicator data. The embodiment of the present application does not adopt a fixed collection rule, but focuses on the performance changes of the target system. By monitoring the performance load data of the target system, the data collection method that is adapted to the current performance of the target system is dynamically adjusted, thereby enhancing the flexibility of data collection and avoiding the problem that the data collection process affects the normal operation of the target system. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of a data collection method according to an embodiment of the present application;
[0021] Figure 2 A flowchart of the steps of determining the performance status level of a target system according to an embodiment of the present application;
[0022] Figure 3 A flowchart of the steps of extracting key indicator data according to an embodiment of the present application;
[0023] Figure 4 is a structural diagram of a data acquisition device according to an embodiment of the present application;
[0024] Figure 5 It is a structural diagram of a data acquisition device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0027] For ease of description, spatial relative terms may be used in the text to describe the relative position or movement of an element or feature as shown in the figure relative to another element or feature, such as "inside", "outside", "inner side", "outer side", "below", "below", "above", "above", "front", "back", etc. Such spatial relative terms are intended to include different orientations of the device in use or operation in addition to the orientation depicted in the figure. For example, if the device in the figure undergoes a position flip or a change in posture or a change in motion state, then these directional indications will also change accordingly, for example: an element described as "below other elements or features" or "below other elements or features" will subsequently be oriented as "above other elements or features" or "above other elements or features". Therefore, the example term "below..." can include both upper and lower orientations. The device can be oriented otherwise (rotated 90 degrees or in other directions) and the spatial relative descriptors used in the text are interpreted accordingly.
[0028] In order to solve the problem that the existing data collection process ignores the performance change of the server and easily affects the normal operation of the server, an embodiment of the present application provides a data collection method. Figure 1 Flow chart of a data collection method according to an embodiment of the present application.
[0029] Step S110, determining the performance status level of the target system by monitoring the performance load data of the target system.
[0030] The target system is the system to be monitored. The target system can be a system running in a server.
[0031] The performance load data of the target system is used to measure the performance of the target system. The performance load data includes, but is not limited to, the load status data and performance status data of the target system. The load status data can reflect the resource usage in the target system. For example, the load status data can be data such as CPU (Central Processing Unit) usage rate and memory occupancy rate; the performance status data can be data such as the response time and throughput of the target system.
[0032] The performance status level refers to the degree of performance of the target system. Multiple performance status levels can be preset, and the current performance status level of the target system can be determined by monitoring the performance load data of the target system.
[0033] Step S120: determining data collection parameters according to the performance status level of the target system.
[0034] Data collection parameters refer to the rules followed during data collection.
[0035] Data collection parameters are respectively set corresponding to a plurality of performance status levels in advance, and different data collection parameters are set corresponding to different performance status levels, so as to cope with different target system performances.
[0036] Step S130: collecting raw data in the target system based on the data collection parameters.
[0037] Types of raw data include, but are not limited to: system logs, application logs, and monitoring data.
[0038] After determining the data collection parameters corresponding to the current performance status level of the target system, original data is collected in the target system according to the collection rules specified in the data collection parameters.
[0039] Step S140, extracting key indicator data from the original data, so as to perform fault warning according to the key indicator data using a preset fault warning model.
[0040] Key indicator data refers to data used for fault warning.
[0041] The fault warning model can provide fault warning based on key indicator data and output fault warning data.
[0042] The fault warning model can be a model that has not yet converged in the training phase or a model that can provide real-time fault warning in the application phase.
[0043] The fault warning data includes, but is not limited to: a fault list, fault analysis data and fault resolution data corresponding to each fault recorded in the fault list. After outputting the fault warning data, the fault warning model sends the fault warning data to a preset device.
[0044] In an embodiment of the present application, the performance status level of the target system is determined by monitoring the performance load data of the target system; data acquisition parameters are determined according to the performance status level of the target system; raw data is collected in the target system based on the data acquisition parameters; key indicator data is extracted from the raw data so as to use a preset fault warning model to perform fault warning according to the key indicator data. The embodiment of the present application does not adopt a fixed collection rule, but focuses on the performance changes of the target system. By monitoring the performance load data of the target system, the data collection method that is adapted to the current performance of the target system is dynamically adjusted, thereby enhancing the flexibility of data collection and avoiding the problem that the data collection process affects the normal operation of the target system.
[0045] In order to make the embodiments of the present application easier to understand, the data collection method of the embodiments of the present application is further described below.
[0046] The following further describes the process of determining the performance status level of the target system.
[0047] like Figure 2 , which is a flowchart of steps for determining the performance status level of a target system according to an embodiment of the present application.
[0048] Step S210: monitor at least one performance load data of the target system.
[0049] The at least one performance load data includes but is not limited to: CPU usage and memory occupancy. For example, the performance load data may also include network bandwidth occupancy, target system response time, disk I / O data throughput, etc.
[0050] Step S220, reading status conditions corresponding to a plurality of preset performance status levels.
[0051] The state condition refers to: a condition that the at least one performance load data must satisfy.
[0052] A plurality of performance status levels are preset, and each performance status level corresponds to a status condition.
[0053] A plurality of preset performance status levels include: a low performance status level, a medium performance status level and a high performance status level. The system performance corresponding to the low performance status level, the medium performance status level and the high performance status level is arranged in order from low to high.
[0054] Further, status conditions are respectively set in advance for the low performance status level, the medium performance status level, and the high performance status level.
[0055] Specifically, when the at least one performance load data includes: CPU usage and memory occupancy, each status condition includes:
[0056] The status condition corresponding to the low performance status level is: the CPU usage of the target system is greater than the first CPU usage threshold, or the memory usage of the target system is greater than the first memory usage threshold;
[0057] The status conditions corresponding to the medium performance status level are: the CPU usage of the target system is less than or equal to the first CPU usage threshold, and the memory occupancy of the target system is less than or equal to the first memory occupancy threshold; and the CPU usage of the target system is greater than or equal to the second CPU usage threshold, or the memory occupancy of the target system is greater than or equal to the second memory occupancy threshold;
[0058] The status condition corresponding to the high performance status level is: the CPU usage of the target system is less than the second CPU usage threshold, and the memory occupancy of the target system is less than the second memory occupancy threshold.
[0059] Among them, the first CPU usage threshold is greater than the second CPU usage threshold; the first memory occupancy threshold is greater than the second memory occupancy threshold. The first CPU usage threshold, the second CPU usage threshold, the first memory occupancy threshold, and the second memory occupancy threshold are all empirical values or values obtained through experiments. For example: the first CPU usage threshold is set to 90%, and the second CPU usage threshold is set to 25%; the first memory occupancy threshold is set to 90%, and the second memory occupancy threshold is set to 25%.
[0060] Step S230: Determine the performance status level corresponding to the status condition met by the at least one performance load data as the performance status level of the target system.
[0061] After monitoring at least one item of performance load data of the target system, the at least one item of performance load data is matched with each state condition respectively, thereby determining the state condition that the at least one item of performance load data meets.
[0062] Specifically, after monitoring the current CPU usage and memory occupancy of the target system, the CPU usage is compared with a preset first CPU usage threshold and a second CPU usage threshold, and the memory occupancy is compared with a preset first memory occupancy threshold and a second memory occupancy threshold; wherein the first CPU usage threshold is greater than the second CPU usage threshold; the first memory occupancy threshold is greater than the second memory occupancy threshold; if the CPU usage is greater than the first CPU usage threshold, or the memory occupancy is greater than the first memory occupancy threshold, it is determined that the state condition met by the at least one performance load data corresponds to a low performance state level; if the CPU usage is less than the second CPU usage threshold, and the memory occupancy is less than the second memory occupancy threshold, it is determined that the state condition met by the at least one performance load data corresponds to a high performance state level; otherwise, it is determined that the state condition met by the at least one performance load data corresponds to a medium performance state level.
[0063] After determining the performance status level of the target system, data collection parameters may be determined according to the performance status level of the target system. The process of determining data collection parameters is described below.
[0064] Data collection parameters are respectively set for a plurality of performance status levels in advance; after the corresponding relationship is established, sample collection data corresponding to the performance status level of the target system can be determined in the data collection parameters respectively set for a plurality of performance status levels in advance.
[0065] In the embodiment of the present application, in order to cope with different load conditions (different performance status levels) of the target system, different data collection parameters may correspond to different performance status levels.
[0066] In the embodiment of the present application, each of the data collection parameters includes but is not limited to: collection frequency and collection level. For example, each of the data collection parameters may also include: collection quantity.
[0067] The acquisition frequency refers to the time interval between two adjacent acquisitions of raw data. According to the order of low performance status level, medium performance status level, and high performance status level, the acquisition frequencies corresponding to the low performance status level, medium performance status level, and high performance status level increase in sequence. For example, the acquisition frequency corresponding to the low performance status level is once per minute; the acquisition frequency corresponding to the medium performance status level is once every half a minute; and the acquisition frequency corresponding to the high performance status level is once per second.
[0068] The collection quantity refers to the number of items of raw data collected each time. According to the order of low performance status level, medium performance status level, and high performance status level, the collection quantities corresponding to the low performance status level, medium performance status level, and high performance status level increase in sequence. For example, the collection quantity corresponding to the low performance status level is 20; the collection quantity corresponding to the medium performance status level is 100; and the collection quantity corresponding to the high performance status level is 500.
[0069] The acquisition level refers to: the type of data to which the original data belongs. According to the order of low performance status level, medium performance status level, and high performance status level, the system performance corresponding to the low performance status level, medium performance status level, and high performance status level respectively increases in sequence, and the acquisition level decreases in sequence. Among them, since it is necessary to calculate the data of the high acquisition level through the data of the low acquisition level, the higher the acquisition level, the less data is included; the lower the acquisition level, the more data is included. Furthermore, the types of acquisition levels include, but are not limited to: system level, application level, and data level. Among them, the acquisition levels of the system level, application level, and data level decrease in sequence.
[0070] After determining the sample acquisition data corresponding to the performance status level of the target system, raw data may be acquired in the target system based on the data acquisition parameters.
[0071] The system level is a high-level level. The raw data corresponding to the system level includes but is not limited to: data at the target system level. For example: CPU usage and memory usage of the target system.
[0072] The application layer is the middle layer. The raw data corresponding to the application layer includes but is not limited to: data at the application level. For example: CPU usage and memory usage of the application.
[0073] The data layer is the basic layer. The original data corresponding to the data layer includes but is not limited to: data at the data transmission and reception level. For example: the data flow of the port, the number of bits transmitted and received corresponding to the application.
[0074] Specifically, if the performance status level of the target system is a low performance status level, a preset first acquisition frequency is used to collect system-level original data in the target system; if the performance status level of the target system is a medium performance status level, a preset second acquisition frequency is used to collect application-level original data in the target system; if the performance status level of the target system is a high performance status level, a preset third acquisition frequency is used to collect data-level original data in the target system; wherein the first acquisition frequency, the second acquisition frequency and the third acquisition frequency increase sequentially.
[0075] In this way, when the performance of the target system is poor, a lower acquisition frequency is used, that is, a larger sampling interval is used to collect raw data with a higher acquisition level, which can reduce the operating burden of the target system; when the performance of the target system is good, a higher acquisition frequency is used, that is, a smaller sampling interval is used to collect raw data with a lower acquisition level, and data is collected to the greatest extent. In this way, the frequency and intensity of data collection can be adjusted dynamically to adapt to the performance load of the target system, increase the flexibility of data collection, and reduce the operating burden of the target system.
[0076] Furthermore, the embodiment of the present application does not limit the data source. When collecting raw data, raw data of different collection levels can be collected from structured data or unstructured data corresponding to the target system.
[0077] After collecting the raw data, key indicator data can be extracted from the raw data. Figure 3 FIG. 1 is a flowchart of steps for extracting key indicator data according to an embodiment of the present application.
[0078] Step S310: performing preprocessing on the original data.
[0079] In order to ensure data quality, in the embodiment of the present application, after the raw data is collected, the raw data is preprocessed, including: data cleaning of the raw data to remove invalid data and erroneous records in the raw data, and then the raw data after data cleaning can be converted into data of the same format by normalization. For example: the data range of the raw data after data cleaning is processed between 0 and 1.
[0080] Step S320: extracting various data features from the pre-processed original data.
[0081] Data features include, but are not limited to, statistical features, time series features, keywords, and features that are highly correlated with faults.
[0082] Statistical features include, for example, CPU usage and memory usage.
[0083] The time series feature is, for example, the system operation duration of the target system each time.
[0084] Examples of keywords are: power on, power off.
[0085] Features that are highly correlated with failures include, for example, error data and warning data.
[0086] Step S330: clustering the data features according to the type of each data feature to form at least one feature set.
[0087] The types of data features are, for example, CPU usage, content occupancy, system operation time of each target system, startup, shutdown, error data, and alarm data.
[0088] Step S340: extracting data features for fault prediction from each of the feature sets as key indicator data.
[0089] The data features used for fault prediction refer to the useful features in the feature set that are helpful for fault warning. For example, CPU usage that is higher than the usage threshold, memory usage that is higher than the usage threshold. These data can correspond to suspected faults.
[0090] In an embodiment of the present application, the data collection frequency and collection level (such as basic features, high-order features) are automatically adjusted according to the different performance states of the target system (such as low, medium, and high), the data collection task is executed and the required features can be extracted at different levels, so as to improve the data processing performance of the target system under different load conditions. In this way, when abnormally high load or other abnormal conditions occur, corresponding measures can be taken in time, such as reducing the collection frequency or suspending certain non-critical tasks, to ensure stable operation of the system.
[0091] After extracting the key indicator data from the original data, a preset fault warning model can be used to perform fault warning according to the key indicator data. The fault warning model can be a model in the training stage or a model in the application stage.
[0092] In the model application stage, the key indicator data is input into the fault warning model so that the fault warning model outputs fault warning data according to the key indicator data.
[0093] Furthermore, the converged fault warning model is deployed to the target system, and key indicator data is extracted from the real-time collected data and input into the fault warning model. When abnormal behavior or potential faults are detected, the warning mechanism will be triggered immediately, and the relevant information (fault list, fault analysis data and fault resolution data corresponding to each fault recorded in the fault list) will be sent to the device designated by the operation and maintenance team via email, SMS or other instant messaging tools, and recorded in the event management system for further analysis.
[0094] Furthermore, after the fault warning model outputs the fault warning data, a fault tracking task can be set for each fault in the fault warning data to display the fault analysis data and the fault solution data. The fault solution data corresponds to multiple solution nodes, each solution node corresponds to a solution, and the fault tracking task can track the execution of the solution node.
[0095] In the model training stage, labels are set for the key indicator data to form training sample data; the training sample data is input into the fault warning model so that the fault warning model outputs fault warning data according to the training sample data, and the fault warning model is adjusted based on the labels and the fault warning data.
[0096] The model training phase is further described below.
[0097] During the model training phase, labels are set for the key indicator data to form training sample data; the training sample data is distributed to a plurality of preset training nodes; wherein the plurality of training nodes adopt different machine learning algorithms; each of the training nodes is instructed to input the training sample data into the fault warning model located at the training node, so as to perform model training based on federated learning on the fault warning model based on the training sample data.
[0098] Specifically, in order to protect the security and privacy of data, the embodiment of the present application adopts a federated learning method across multiple training nodes, where each training node shares the fault warning model but does not share sensitive data. The specific steps are as follows:
[0099] Step S1, deploy different machine learning algorithms and the same fault warning model on multiple training nodes. For example, the first training node uses SVM (Support Vector Machine), the second training node uses RF (Random forest), and the third training node uses logistic regression.
[0100] Step S2, after collecting the original data and extracting the key indicator data, set labels for the key indicator data to form training sample data. The label of the key indicator data is a fault list as a real value, and the fault analysis data and fault resolution data corresponding to each fault recorded in the fault list.
[0101] Step S3, the training sample data is sent to each training node respectively, so that each training node uses the machine learning algorithm deployed on the local end to train the fault warning model deployed on the local end. Further, the following steps are performed at each training node: the training sample data is input into the fault warning model, and the fault warning model uses a preset database to predict the fault warning data corresponding to the training sample data, and obtains the fault warning data output by the fault warning model. Using the preset loss function, the loss value between the label and the fault warning data is calculated; if the loss value is greater than the preset loss threshold, the model parameters and the values of the model parameters that are to be adjusted are determined, and the model parameters and the values of the model parameters that are to be adjusted are sent to the device where the target system is located.
[0102] Furthermore, the database includes: an expert knowledge base and a historical solution case database. The expert knowledge base is used to record the fault analysis data corresponding to the preset faults. The historical solution case database is used to record the preset historical solution cases, that is, the fault solution data corresponding to the historical faults. In this way, after the fault is detected, the fault warning model can use a causal reasoning algorithm to analyze the cause chain behind the fault based on the data recorded in the database, obtain the fault analysis data, and match the fault solution data of the fault in the historical solution case. The fault analysis data is the cause of the fault. The fault solution data is the method to solve the fault, such as restarting the service, clearing the disk space, adjusting the resource configuration, or executing a more complex repair script.
[0103] Step S4, after receiving the model parameters and the values of the model parameters fed back by each training node, determine the target values corresponding to each model parameter, and send the target values corresponding to each model parameter to each training node, so that each training node adjusts the value of the corresponding model parameter in the fault warning model to the target value, and then jumps to step S2 until it is determined that the fault warning models of each training node have converged.
[0104] Furthermore, after receiving the model parameters and the values of the model parameters respectively fed back by the training nodes, if the same model parameter has multiple values, the average value corresponding to the same model parameter is calculated, and the average value is used as the target value corresponding to the same model parameter.
[0105] Furthermore, techniques such as cross-validation can be used to avoid overfitting, and evaluation indicators such as precision, recall, and F1 score can be used to assess whether the fault warning model has converged.
[0106] In the embodiment of the present application, in order to enable the fault warning model to adapt to the continuously changing characteristics in the operation and maintenance environment, the fault warning model can be retrained at regular intervals. In the model training stage, based on the data collection parameters, incremental raw data is collected in the target system, that is, the newly added raw data is used to train the fault warning model, without the need to train the fault warning model from scratch.
[0107] In an embodiment of the present application, during the model training stage, the original data and key indicator data that need to be collected at different collection levels can be adjusted, so that the collected original data and key indicator data can predict more accurate fault warning data.
[0108] The present application also provides a data acquisition device. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 , which is a structural diagram of a data acquisition device according to an embodiment of the present application.
[0109] The data acquisition device comprises:
[0110] The first determination module 410 is used to determine the performance status level of the target system by monitoring the performance load data of the target system.
[0111] The second determination module 420 is used to determine data collection parameters according to the performance status level of the target system.
[0112] The data acquisition module 430 is used to acquire raw data in the target system based on the data acquisition parameters.
[0113] The data extraction module 440 is used to extract key indicator data from the original data so as to perform fault warning according to the key indicator data using a preset fault warning model.
[0114] The functions of the device described in the embodiment of the present application have been described in the above method embodiment. Therefore, for any details not provided in the description of this embodiment, please refer to the relevant descriptions in the above embodiment and will not be repeated here.
[0115] The present application also provides a data acquisition device, such as Figure 5 , which is a structural diagram of a data acquisition device according to an embodiment of the present application.
[0116] The software flashing device includes: a processor 510, a communication interface 520, a memory 530 and a communication bus 540. The processor 510, the communication interface 520 and the memory 630 communicate with each other through the communication bus 540.
[0117] The memory 530 is used to store computer programs.
[0118] In one embodiment of the present application, the processor 510, when used to execute the program stored in the memory 530, implements the data collection method provided by any one of the aforementioned method embodiments, including: determining the performance status level of the target system by monitoring the performance load data of the target system; determining data collection parameters according to the performance status level of the target system; based on the data collection parameters, collecting raw data in the target system; extracting key indicator data from the raw data, so as to perform fault warning according to the key indicator data using a preset fault warning model.
[0119] Among them, determining the performance status level of the target system by monitoring the performance load data of the target system includes: monitoring at least one performance load data of the target system; reading status conditions corresponding to multiple preset performance status levels; and determining the performance status level corresponding to the status condition met by the at least one performance load data as the performance status level of the target system.
[0120] The at least one performance load data includes: CPU usage and memory occupancy; the multiple preset performance status levels include: low performance status level, medium performance status level and high performance status level; the determining the performance status level corresponding to the status condition that the at least one performance load data meets includes: comparing the CPU usage with a preset first CPU usage threshold and a second CPU usage threshold, and comparing the memory occupancy with a preset first memory occupancy threshold and a second memory occupancy threshold, respectively; wherein the first CPU usage threshold is greater than the second CPU usage threshold; the first memory occupancy threshold is greater than the second memory occupancy threshold; if the CPU usage is greater than the first CPU usage threshold, or the memory occupancy is greater than the first memory occupancy threshold, it is determined that the status condition that the at least one performance load data meets corresponds to the low performance status level; if the CPU usage is less than the second CPU usage threshold, and the memory occupancy is less than the second memory occupancy threshold, it is determined that the status condition that the at least one performance load data meets corresponds to the high performance status level; otherwise, it is determined that the status condition that the at least one performance load data meets corresponds to the medium performance status level.
[0121] Wherein, determining the data collection parameters according to the performance status level of the target system includes: determining the sample collection data corresponding to the performance status level of the target system in the data collection parameters pre-set for multiple performance status levels; wherein different performance status levels correspond to different data collection parameters; in each of the data collection parameters, including: collection frequency and collection level; the collection frequency refers to: the time interval between two adjacent collections of raw data; the collection level refers to: the data type to which the raw data belongs.
[0122] Wherein, the multiple preset performance status levels include: a low performance status level, a medium performance status level and a high performance status level; the collecting of raw data in the target system based on the data acquisition parameters includes: if the performance status level of the target system is a low performance status level, then using a preset first acquisition frequency, in the target system, collecting system-level raw data; if the performance status level of the target system is a medium performance status level, then using a preset second acquisition frequency, in the target system, collecting application-level raw data; if the performance status level of the target system is a high performance status level, then using a preset third acquisition frequency, in the target system, collecting data-level raw data; wherein the values of the first acquisition frequency, the second acquisition frequency and the third acquisition frequency increase sequentially.
[0123] Among them, the extracting key indicator data from the original data includes: performing preprocessing on the original data; extracting various data features in the original data after preprocessing; clustering each data feature according to the type of each data feature to form at least one feature set; in each feature set, extracting data features used for fault prediction as key indicator data.
[0124] Among them, the use of a preset fault warning model to perform fault warning according to the key indicator data includes: in the model application stage, the key indicator data is input into the fault warning model, so that the fault warning model outputs fault warning data according to the key indicator data; in the model training stage, labels are set for the key indicator data to form training sample data; the training sample data is input into the fault warning model, so that the fault warning model outputs fault warning data according to the training sample data, and the fault warning model is adjusted based on the label and the fault warning data.
[0125] Wherein, inputting the training sample data into the fault warning model includes: distributing the training sample data to a plurality of preset training nodes; wherein the plurality of training nodes adopt different machine learning algorithms; instructing each of the training nodes to input the training sample data into the fault warning model located at the training node, so as to perform model training based on federated learning on the fault warning model based on the training sample data.
[0126] Wherein, collecting original data in the target system based on the data collection parameters includes: collecting incremental original data in the target system based on the data collection parameters during the model training phase.
[0127] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the data collection steps of the method provided by any of the above method embodiments are implemented. Since the data collection method has been described in detail above, for any details not fully described in the description of this embodiment, please refer to the relevant descriptions in the above embodiments, and no further description will be given here.
[0128] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0130] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0131] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A data collection method, characterized in that: include: Determining the performance status level of the target system by monitoring the performance load data of the target system; Determining data acquisition parameters according to the performance status level of the target system; Based on the data collection parameters, in the target system, collecting raw data; Key indicator data is extracted from the original data so as to perform fault warning according to the key indicator data using a preset fault warning model.
2. The method according to claim 1, characterized in that: Determining the performance status level of the target system by monitoring the performance load data of the target system includes: Monitoring at least one performance load data of the target system; Reading status conditions corresponding to a plurality of preset performance status levels; A performance status level corresponding to a status condition met by the at least one performance load data is determined as the performance status level of the target system.
3. The method according to claim 2, characterized in that The at least one performance load data includes: CPU usage and memory occupancy; The plurality of preset performance status levels include: a low performance status level, a medium performance status level and a high performance status level; The step of determining the performance status level corresponding to the status condition met by the at least one performance load data includes: The CPU usage is compared with a preset first CPU usage threshold and a second CPU usage threshold, respectively, and the memory occupancy is compared with a preset first memory occupancy threshold and a preset second memory occupancy threshold, respectively; wherein the first CPU usage threshold is greater than the second CPU usage threshold; and the first memory occupancy threshold is greater than the second memory occupancy threshold; If the CPU usage is greater than the first CPU usage threshold, or the memory occupancy is greater than the first memory occupancy threshold, determining that the state condition met by the at least one performance load data corresponds to a low performance state level; If the CPU usage is less than the second CPU usage threshold, and the memory occupancy is less than the second memory occupancy threshold, determining that the state condition met by the at least one performance load data corresponds to a high performance state level; Claims Otherwise, it is determined that the state condition met by the at least one performance load data corresponds to a medium performance state level.
4. The method according to claim 1, characterized in that: Determining data acquisition parameters according to the performance status level of the target system includes: Determining sample collection data corresponding to the performance status level of the target system among the data collection parameters pre-set for the plurality of performance status levels; Among them, different performance status levels correspond to different data collection parameters; Each of the data collection parameters includes: collection frequency and collection level; The acquisition frequency refers to: the time interval between two consecutive acquisitions of raw data; The collection level refers to the data type to which the original data belongs.
5. The method according to claim 4, characterized in that The plurality of preset performance status levels include: a low performance status level, a medium performance status level and a high performance status level; The collecting of raw data in the target system based on the data collection parameters includes: If the performance status level of the target system is a low performance status level, using a preset first collection frequency, in the target system, collecting system-level raw data; If the performance status level of the target system is a medium performance status level, using a preset second collection frequency, in the target system, collecting application-level raw data; If the performance status level of the target system is a high performance status level, a preset third acquisition frequency is used to collect raw data of the data layer in the target system; wherein the values of the first acquisition frequency, the second acquisition frequency and the third acquisition frequency increase sequentially.
6. The method according to claim 1, characterized in that The extracting of key indicator data from the original data includes: Performing preprocessing on the raw data; Extracting various data features from the preprocessed raw data; According to the type of each of the data features, clustering is performed on each of the data features to form at least one feature set; Claims In each of the feature sets, data features used for fault prediction are extracted as key indicator data.
7. The method according to claim 1, characterized in that The using of a preset fault warning model to perform fault warning according to the key indicator data includes: In the model application stage, the key indicator data is input into the fault warning model so that the fault warning model outputs fault warning data according to the key indicator data; In the model training stage, labels are set for the key indicator data to form training sample data; the training sample data is input into the fault warning model so that the fault warning model outputs fault warning data according to the training sample data, and the fault warning model is adjusted based on the labels and the fault warning data.
8. The method according to claim 7, characterized in that The step of inputting the training sample data into the fault warning model comprises: Distributing the training sample data to a plurality of preset training nodes; wherein the plurality of training nodes adopt different machine learning algorithms; Instruct each of the training nodes to input the training sample data into the fault warning model located at the training node, so as to perform model training based on federated learning on the fault warning model based on the training sample data.
9. The method according to claim 7, characterized in that: The collecting of raw data in the target system based on the data collection parameters includes: In the model training phase, incremental raw data is collected in the target system based on the data collection parameters.
10. A data acquisition device, characterized in that: include: A first determination module is used to determine the performance status level of the target system by monitoring the performance load data of the target system; A second determination module is used to determine data collection parameters according to the performance status level of the target system; A data acquisition module, used for acquiring raw data in the target system based on the data acquisition parameters; The data extraction module is used to extract key indicator data from the original data so as to perform fault warning according to the key indicator data using a preset fault warning model.
11. A data acquisition device, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to: execute a data acquisition program stored in the memory to implement the data acquisition method according to any one of claims 1-9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed to implement the data collection method according to any one of claims 1 to 9.
Citation Information
Cited By
AI-based marine ecological survey recording method and system
CN122087371A
