Equipment health degree assessment method and device, equipment and storage medium
By obtaining resource consumption data and anomaly detection alarm data, and combining the health scoring rules and alarm scoring rules of different indicators, the device health of the virtual desktop scenario is calculated, which solves the problem of incomplete device health assessment in the existing technology and achieves More accurate health assessment and usage experience quantification.
Patent Information
- Application Number
- CN202410687026.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-23
AI Technical Summary
The existing device health assessment model in virtual desktop scenarios only considers a single dimension of core resources, fails to comprehensively assess the health of clusters, hosts, and virtual machines, and fails to effectively handle the health caused by occasional slowdowns and user usage habits. Poor scene.
By obtaining resource consumption data and anomaly detection alarm data, analysis is performed based on the health scoring rules and alarm scoring rules of different indicators, the health score and alarm abnormality score of each indicator are calculated, and the virtual desktop scenario is determined through weighted summation. Device health.
It improves the accuracy of device health assessment, comprehensively and systematically evaluates the health status of virtual desktop scenes, and more accurately quantifies and restores the actual usage experience.
Smart Images

Figure CN118535285A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual desktop technology, and in particular to a device health assessment method, device, equipment and storage medium. Background Art
[0002] The virtual desktop can access cross-platform applications and the entire client desktop through any device connected to the network. Among them, a thin client refers to a computer terminal in the client-network system that basically does not require an application.
[0003] The existing health scoring methods for clusters, hosts, and virtual machines in virtual desktop scenarios often only evaluate the average consumption level of core resources over a period of time, and do not take into account scenarios with poor health caused by occasional slow card operation and user usage habits. The current device health assessment model only evaluates core resources in a single dimension, fails to consider different indicators and the correlation between different indicators, and cannot comprehensively evaluate the true health of clusters, hosts, and virtual machines in virtual desktop scenarios.
[0004] It can be seen that how to improve the accuracy of equipment health assessment is a problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a device health assessment method, apparatus, device and storage medium, which can improve the accuracy of device health assessment.
[0006] To solve the above technical problems, an embodiment of the present invention provides a device health assessment method based on a virtual desktop scenario, comprising:
[0007] Obtain resource consumption data and alarm data based on anomaly detection;
[0008] Analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to different types of indicators to obtain the health score of each indicator;
[0009] Analyzing the alarm data using an alarm scoring rule to obtain an alarm anomaly score;
[0010] The health of the device corresponding to the virtual desktop scenario is determined according to the health score of each indicator and the alarm abnormality score.
[0011] On the one hand, the resource consumption data includes CPU usage, memory usage and disk IO average active time.
[0012] On the one hand, the corresponding types of resource consumption data in the resource consumption data are analyzed according to the health scoring rules corresponding to the different types of indicators to obtain the health score of each indicator, including:
[0013] Calculate the average resource consumption of the target indicator within the cycle time; wherein the target indicator is CPU, memory or disk;
[0014] Querying a list of resource consumption intervals matched by the target indicator to determine the target interval to which the average resource consumption value of the target indicator belongs; wherein the list of resource consumption intervals includes resource consumption ranges corresponding to low load intervals, medium load intervals, and high load intervals; different intervals correspond to different deduction modes;
[0015] According to the deduction mode matched by the target interval, the health score matched by the target indicator is determined.
[0016] On the one hand, determining the health score matched by the target indicator according to the deduction mode matched by the target interval includes:
[0017] Determine the deduction value of the target indicator based on the average resource consumption of the target indicator and the deduction range matched by the target interval;
[0018] The difference between the full score corresponding to the target indicator and the deduction value is used as the health score of the target indicator.
[0019] On the one hand, analyzing the alarm data using an alarm scoring rule to obtain an alarm abnormality score includes:
[0020] The number of alarms that occurred during the statistical cycle and the corresponding alarm level of each alarm;
[0021] Based on the piecewise linear relationship between the number of abnormalities and the abnormality scores, determining a first alarm abnormality score matching the number of alarms;
[0022] Based on the piecewise linear relationship between the abnormality level and the abnormality score, determining a second alarm abnormality score matching the alarm level;
[0023] The sum of the first alarm anomaly score and the second alarm anomaly score is used as the final alarm anomaly score.
[0024] On the one hand, the acquisition of resource consumption data and alarm data based on anomaly detection includes:
[0025] According to the set timed task, obtain the resource consumption data within the periodic time;
[0026] The trained anomaly detection model is used to detect abnormal situations within the cycle time to obtain the alarm data; wherein the anomaly detection model is a model obtained by training the initial anomaly detection model based on various types of alarm information.
[0027] On the one hand, determining the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score includes:
[0028] According to the proportion of each indicator, the health score of each indicator and the alarm abnormality score are weighted and summed to obtain the device health corresponding to the virtual desktop scenario.
[0029] The embodiment of the present application also provides a device health assessment apparatus based on a virtual desktop scenario, comprising an acquisition unit, a first analysis unit, a second analysis unit, and a determination unit;
[0030] The acquisition unit is used to acquire resource consumption data and alarm data based on abnormality detection;
[0031] The first analysis unit is used to analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to the different types of indicators, so as to obtain the health score of each indicator;
[0032] The second analysis unit is used to analyze the alarm data using an alarm scoring rule to obtain an alarm abnormality score;
[0033] The determining unit is used to determine the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score.
[0034] On the one hand, the resource consumption data includes CPU usage, memory usage and disk IO average active time.
[0035] In one aspect, the first analysis unit includes a calculation subunit, a query subunit, and a first determination subunit;
[0036] The calculation subunit is used to calculate the average resource consumption of the target indicator within the cycle time; wherein the target indicator is CPU, memory or disk;
[0037] The query subunit is used to query the resource consumption interval list matched by the target indicator to determine the target interval to which the resource consumption average value of the target indicator belongs; wherein the resource consumption interval list includes resource consumption ranges corresponding to low load intervals, medium load intervals and high load intervals respectively; different intervals correspond to different deduction modes;
[0038] The first determination subunit is used to determine the health score matched by the target indicator according to the deduction mode matched by the target interval.
[0039] On the one hand, the first determination subunit is used to determine the deduction value of the target indicator based on the average resource consumption of the target indicator and the deduction range matched by the target interval;
[0040] The difference between the full score corresponding to the target indicator and the deduction value is used as the health score of the target indicator.
[0041] In one aspect, the second analyzing unit includes a statistics subunit, a second determination subunit, a third determination subunit, and an as subunit;
[0042] The statistical subunit is used to count the number of alarms occurring within a period and the alarm level corresponding to each alarm;
[0043] The second determination subunit is used to determine a first alarm anomaly score matching the alarm number based on a piecewise linear relationship between the number of anomalies and the anomaly score;
[0044] The third determination subunit is used to determine a second alarm anomaly score matching the alarm level based on a piecewise linear relationship between the anomaly level and the anomaly score;
[0045] The subunit is configured to use the sum of the first alarm anomaly score and the second alarm anomaly score as a final alarm anomaly score.
[0046] On the one hand, the acquisition unit is used to
[0047] According to the set timed task, obtain the resource consumption data within the periodic time;
[0048] The trained anomaly detection model is used to detect abnormal situations within the cycle time to obtain the alarm data; wherein the anomaly detection model is a model obtained by training the initial anomaly detection model based on various types of alarm information.
[0049] On the one hand, the determining unit is used to
[0050] According to the proportion of each indicator, the health score of each indicator and the alarm abnormality score are weighted and summed to obtain the device health corresponding to the virtual desktop scenario.
[0051] The present application also provides an electronic device, including:
[0052] Memory for storing computer programs;
[0053] The processor is used to execute the computer program to implement the steps of the device health assessment method based on the virtual desktop scenario as described above.
[0054] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the device health assessment method based on the virtual desktop scenario are implemented as described above.
[0055] It can be seen from the above technical solution that resource consumption data and alarm data based on anomaly detection are obtained; the corresponding types of resource consumption data in the resource consumption data are analyzed according to the health scoring rules corresponding to different types of indicators to obtain the health score of each indicator. The alarm data is analyzed using the alarm scoring rules to obtain the alarm anomaly score. The device health corresponding to the virtual desktop scenario is determined based on the health score of each indicator and the alarm anomaly score. In this technical solution, both the device resource consumption in the virtual desktop scenario and the abnormal situations that occur in the scenario are taken into account, ensuring the comprehensiveness of the evaluation indicators. In addition, a comprehensive analysis is performed on different indicators, so that the health status of the virtual desktop scenario can be comprehensively and systematically evaluated, the accuracy of the device health evaluation is improved, and the actual use experience of the virtual desktop is more accurately quantified and restored. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] FIG1 is a flow chart of a device health assessment method based on a virtual desktop scenario provided by an embodiment of the present invention;
[0058] FIG2 is a schematic diagram of a process for quantitatively evaluating resource consumption data and alarm data provided by an embodiment of the present application;
[0059] FIG3 is a schematic diagram of the structure of a device health assessment apparatus based on a virtual desktop scenario provided by an embodiment of the present application;
[0060] FIG. 4 is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0063] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0064] Next, a device health assessment method based on a virtual desktop scenario provided by an embodiment of the present invention is described in detail. FIG1 is a flow chart of a device health assessment method based on a virtual desktop scenario provided by an embodiment of the present invention, the method comprising:
[0065] S101: Acquire resource consumption data and alarm data based on anomaly detection.
[0066] In an embodiment of the present application, the consumption of core resources in a virtual desktop scenario can be counted. Core resources generally include CPU and memory. The resource consumption data corresponding to the CPU can include CPU usage, and the resource consumption data corresponding to the memory can include memory usage.
[0067] In order to improve the accuracy of device health assessment, the dimensions of the assessment indicators can be further increased. For example, based on CPU and memory, the assessment of disk can be added. The resource consumption data corresponding to the disk can include the average active time of disk IO.
[0068] For resource consumption data, the agent can continuously collect data and store it in an open source time series database (influxdb).
[0069] In order to more accurately evaluate the health status of virtual desktops, in addition to statistics on resource consumption of various indicators in virtual desktop scenarios, you can also comprehensively consider situations where the health status is poor.
[0070] Poor health conditions can be abnormal conditions of the virtual desktop, such as occasional abnormal slowness, alarms caused by user usage habits, abnormal system responses, etc. Abnormal conditions will generate corresponding alarm data, so alarm data based on abnormal detection can be obtained.
[0071] The alarm data corresponding to different types of abnormalities are different. For example, the alarm data corresponding to abnormal slowness may include that a single CPU core is fully occupied. The alarm data corresponding to alarms caused by user usage habits may include an excessive number of process handles. The alarm data corresponding to system response abnormalities may include server memory frequency reduction, etc.
[0072] In actual applications, the resource consumption data within the cycle time can be obtained according to the set timing tasks; the trained anomaly detection model can be used to detect abnormal situations within the cycle time to obtain alarm data.
[0073] For the construction of anomaly detection model, the initial anomaly detection model can be trained according to various types of alarm information, so as to obtain an anomaly detection model that can detect abnormal situations and capture alarm data.
[0074] In addition to training the anomaly detection model separately, you can also directly use the open source system monitoring and alarm system component (prometheus) to continuously monitor anomalies and store the collected alarm data in the database.
[0075] In the specific implementation, the anomaly detection capability of Sangfor's virtual desktop intelligent operation and maintenance (IOM) platform can be used to aggregate alarm data. IOM is a software operation and maintenance platform with detailed monitoring analysis + intelligent diagnosis. It provides the industry-leading virtual desktop monitoring analysis + intelligent diagnosis solution, which can detect and discover more than 70% of virtual desktop performance bottleneck-related problems and provide optimization solutions on demand. The system combines machine learning algorithms and artificial intelligence technologies, covering operation and maintenance solutions for applications, networks, storage, virtual machines, physical machine clusters, etc., to achieve rapid troubleshooting of virtual desktop performance problems, including but not limited to virtual machine freezes, physical resource bottlenecks, application anomalies, network interruptions, etc., 7*24 hours of uninterrupted intelligent analysis of virtual desktop usage-related problems, and provide a full range of optimization solutions.
[0076] S102: Analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to the different types of indicators, so as to obtain the health score of each indicator.
[0077] Different types of indicators have different health evaluation standards. In order to more reasonably evaluate the health status reflected by each indicator, corresponding health scoring rules can be set for different types of indicators.
[0078] The health scoring rule corresponding to each indicator is used to quantitatively evaluate the resource consumption data of the indicator, thereby converting the resource consumption data into a health score.
[0079] The health scoring rules may include scores corresponding to different indicators in different value ranges.
[0080] Taking into account that in actual applications, as resource consumption gradually increases, its health often decreases in a layered manner, in order to further improve the accuracy of health assessment, a segmented assessment method can be adopted in the health scoring rules. For example, different intervals can be set, and each interval has its own corresponding deduction mode.
[0081] Indicators corresponding to resource consumption data for evaluating health can include CPU, memory, and disk. The health evaluation methods of these three types of indicators are similar. Taking any one of the three types of indicators, CPU, memory, and disk, as an example, the process of determining the health score corresponding to the indicator is introduced. For the convenience of description, any one of the three types of indicators, CPU, memory, and disk, can be called a target indicator.
[0082] In the specific implementation, the average resource consumption of the target indicator within the cycle time can be calculated; the list of resource consumption intervals matched by the target indicator can be queried to determine the target interval to which the average resource consumption of the target indicator belongs; different intervals correspond to different deduction modes. According to the deduction mode matched by the target interval, the health score matched by the target indicator can be determined.
[0083] Each indicator has its own corresponding list of resource consumption intervals.
[0084] In the embodiment of the present application, the resource consumption interval can be divided into a low load interval, a medium load interval and a high load interval. Each load interval has its corresponding resource consumption range and deduction mode.
[0085] The deduction mode reflects the deduction method for each interval. The deduction mode can include the deduction ranges corresponding to different intervals. In actual applications, the deduction value of the target indicator can be determined based on the average resource consumption of the target indicator and the deduction range matching the target interval; the difference between the full score corresponding to the target indicator and the deduction value is used as the health score of the target indicator.
[0086] Taking CPU usage as an example, CPU usage can be expressed in percentage, and accordingly, resource consumption range can also be expressed in percentage. The deduction range can be based on a full score of 100.
[0087] Table 1 below is a list of resource consumption ranges corresponding to the CPU:
[0088] Table 1
[0089] In Table 1, the resource consumption range of 0-50% (including 50%) is the low load interval, the resource consumption range of 50%-70% (excluding 50%, including 70%) is the medium load interval, and the resource consumption range of 70%-100% (excluding 70%, including 100%) is the high load interval.
[0090] Regardless of the resource consumption data range, points can be deducted based on the principle that the higher the resource consumption, the more points will be deducted. In the low load range, the maximum deduction is 40 points; in the medium load range, the minimum deduction is 40 points, and the maximum deduction is 60 points; in the high load range, the minimum deduction is 60 points, and the maximum deduction is 100 points.
[0091] It should be noted that the resource consumption intervals are divided into low load intervals, medium load intervals and high load intervals in Table 1 above, and the resource consumption ranges and deduction modes corresponding to each interval are all examples. In actual applications, a rougher or more detailed division can be made according to needs, which is not limited here.
[0092] S103: Analyze the alarm data using the alarm scoring rule to obtain an alarm abnormality score.
[0093] In the embodiment of the present application, the alarm data can be scored based on aspects such as the number of alarms and the alarm level.
[0094] In a specific implementation, the number of alarms that occur within a cycle and the alarm level corresponding to each alarm can be counted. Based on the piecewise linear relationship between the number of abnormalities and the abnormality score, the first alarm abnormality score that matches the number of alarms is determined; based on the piecewise linear relationship between the abnormality level and the abnormality score, the second alarm abnormality score that matches the alarm level is determined; the sum of the first alarm abnormality score and the second alarm abnormality score is used as the final alarm abnormality score.
[0095] The piecewise linear relationship between the number of anomalies and the anomaly score can include the deduction methods corresponding to different intervals. For alarm data, the intervals can be divided into low-risk intervals, medium-risk intervals, and high-risk intervals. Each interval can have its corresponding alarm number range and deduction range. The value range of the alarm number corresponding to the low-risk interval can be smaller, and the deduction range is smaller; the value range of the alarm number corresponding to the medium-risk interval can be moderate, and the deduction range can be applicable; the value range of the alarm number corresponding to the high-risk interval can be higher, and the deduction range can be higher. The specific values can be flexibly adjusted based on actual needs, and will not be elaborated here.
[0096] In specific implementation, the deduction value can be determined according to the principle that the higher the number of alarms in a period, the more points will be deducted, and the higher the severity of the alarm, the more points will be deducted. The difference between the full score corresponding to the alarm data and the deduction value is used as the alarm abnormality score.
[0097] S104: Determine the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score.
[0098] In the embodiment of the present invention, the performance requirements of the virtual desktop scene may be recorded. The performance requirements may include the degree of requirements for different indicators. The degree of requirements may be represented by a proportion.
[0099] In actual applications, the health score of each indicator and the alarm abnormality score can be weighted and summed according to the proportion of each indicator in the performance requirement to obtain the device health corresponding to the virtual desktop scenario.
[0100] The proportion of each indicator can be expressed in percentage form, and the sum of the proportions of all indicators is 1. Taking the health scores corresponding to the CPU, memory, and disk described above, and the alarm abnormality scores corresponding to the alarm data as an example, the CPU, memory, disk, and alarm can be regarded as four types of indicators, and the proportion of each indicator can be 25% in the initial state.
[0101] When performance requirements change, you can adjust the proportion of the corresponding indicators. For example, when the CPU performance requirements are high, the proportion of the health score corresponding to the CPU can be set higher, such as 40% for the CPU and 20% for memory, disk, and alarm.
[0102] Figure 2 is a schematic diagram of a process for quantitatively evaluating resource consumption data and alarm data provided by an embodiment of the present application. The model input can be various resource usage time series data and alarm exception data. The overall architecture of the model is a piecewise linear regression algorithm based on the bagging strategy. The model can construct multiple weak learners to evaluate different core resource consumption data respectively.
[0103] In practical applications, independent weak learners can be constructed for the resource consumption data of each indicator. For example, weak learner A is responsible for scoring CPU resource consumption data, weak learner B is responsible for scoring memory resource consumption data, and weak learner C is responsible for scoring disk resource consumption data. In addition, a special weak learner can be constructed to learn the alarm rules set by expert experience to capture occasional anomalies and score them. Finally, the bagging strategy is used to perform weighted voting to form a strong learner to calculate the final health score.
[0104] The piecewise linear regression algorithm can select different deduction modes for resource consumption data in different intervals. The deduction principle is that the deduction is gentler in the low-load interval and more aggressive in the high-load interval.
[0105] After calculating the final health by weighted summation, the performance of the virtual desktop scenario can be evaluated in combination with user feedback. For example, the segmentation settings can be as follows:
[0106] Excellent (80-100 points): The host / virtual machine has sufficient resources in all aspects, and the user experience is smooth. Good (60-79 points): Most of the host / virtual machine resources are sufficient, and the user experience is smooth. Average (40-59 points): The host / virtual machine resources are basically sufficient and can support most scenarios, and the experience is not obviously slow. Poor (20-39 points): The host / virtual machine resources are beginning to be insufficient, and the experience in some scenarios begins to be slow. Very poor (0-19 points): The host / virtual machine resources are seriously insufficient, and the experience in most scenarios begins to be slow.
[0107] It can be seen from the above technical solution that resource consumption data and alarm data based on anomaly detection are obtained; the corresponding types of resource consumption data in the resource consumption data are analyzed according to the health scoring rules corresponding to different types of indicators to obtain the health score of each indicator. The alarm data is analyzed using the alarm scoring rules to obtain the alarm anomaly score. The device health corresponding to the virtual desktop scenario is determined based on the health score of each indicator and the alarm anomaly score. In this technical solution, both the device resource consumption in the virtual desktop scenario and the abnormal situations that occur in the scenario are taken into account, ensuring the comprehensiveness of the evaluation indicators. In addition, a comprehensive analysis is performed on different indicators, so that the health status of the virtual desktop scenario can be comprehensively and systematically evaluated, the accuracy of the device health evaluation is improved, and the actual use experience of the virtual desktop is more accurately quantified and restored.
[0108] 3 is a schematic diagram of the structure of a device health assessment apparatus based on a virtual desktop scenario provided by an embodiment of the present application, including an acquisition unit 31, a first analysis unit 32, a second analysis unit 33 and a determination unit 34;
[0109] An acquisition unit 31 is used to acquire resource consumption data and alarm data based on anomaly detection;
[0110] The first analysis unit 32 is used to analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to the different types of indicators, so as to obtain the health score of each indicator;
[0111] The second analysis unit 33 is used to analyze the alarm data using the alarm scoring rule to obtain an alarm abnormality score;
[0112] The determination unit 34 is used to determine the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score.
[0113] In some embodiments, the resource consumption data includes CPU usage, memory usage, and disk IO average active time.
[0114] In some embodiments, the first analysis unit includes a calculation subunit, a query subunit, and a first determination subunit;
[0115] The calculation subunit is used to calculate the average resource consumption of the target indicator within the cycle time; the target indicator is CPU, memory or disk;
[0116] A query subunit is used to query the resource consumption interval list matched by the target indicator to determine the target interval to which the average resource consumption value of the target indicator belongs; wherein the resource consumption interval list includes resource consumption ranges corresponding to the low load interval, the medium load interval and the high load interval respectively; different intervals correspond to different deduction modes;
[0117] The first determination subunit is used to determine the health score matched by the target indicator according to the deduction mode matched by the target interval.
[0118] In some embodiments, the first determination subunit is used to determine the deduction value of the target indicator based on the average resource consumption of the target indicator and the deduction range matched by the target interval;
[0119] The difference between the full score and the deduction value corresponding to the target indicator is used as the health score of the target indicator.
[0120] In some embodiments, the second analyzing unit includes a statistics subunit, a second determination subunit, a third determination subunit, and an as subunit;
[0121] The statistical subunit is used to count the number of alarms that occur within a period and the alarm level corresponding to each alarm;
[0122] A second determination subunit is used to determine a first alarm anomaly score matching the alarm number based on a piecewise linear relationship between the number of anomalies and the anomaly score;
[0123] A third determination subunit, configured to determine a second alarm abnormality score matching the alarm level based on a piecewise linear relationship between the abnormality level and the abnormality score;
[0124] As a subunit, it is used to take the sum of the first alarm anomaly score and the second alarm anomaly score as the final alarm anomaly score.
[0125] In some embodiments, the acquisition unit is used to
[0126] According to the set timed tasks, obtain resource consumption data within the cycle time;
[0127] The trained anomaly detection model is used to detect abnormal situations within the cycle time to obtain alarm data; wherein the anomaly detection model is a model obtained by training the initial anomaly detection model based on various types of alarm information.
[0128] In some embodiments, the determining unit is used to
[0129] According to the proportion of each indicator, the health score of each indicator and the alarm abnormality score are weighted and summed to obtain the device health corresponding to the virtual desktop scenario.
[0130] For the description of the features in the embodiment corresponding to FIG. 3 , reference can be made to the relevant description of the embodiment corresponding to FIG. 1 , and they will not be described one by one here.
[0131] It can be seen from the above technical solution that resource consumption data and alarm data based on anomaly detection are obtained; the corresponding types of resource consumption data in the resource consumption data are analyzed according to the health scoring rules corresponding to different types of indicators to obtain the health score of each indicator. The alarm data is analyzed using the alarm scoring rules to obtain the alarm anomaly score. The health corresponding to the virtual desktop scene is determined based on the health score of each indicator and the alarm anomaly score. In this technical solution, both the device resource consumption in the virtual desktop scene and the abnormal situations that occur in the scene are taken into account, ensuring the comprehensiveness of the evaluation indicators. In addition, a comprehensive analysis is performed on different indicators, so that the health status of the virtual desktop scene can be comprehensively and systematically evaluated, the accuracy of the device health evaluation is improved, and the actual use experience of the virtual desktop is more accurately quantified and restored.
[0132] FIG4 is a structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG4 , the electronic device includes: a memory 40 for storing a computer program;
[0133] The processor 41 is configured to implement the steps of the device health assessment method based on the virtual desktop scenario in the above embodiment when executing the computer program.
[0134] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0135] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0136] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, it can implement the relevant steps of the device health assessment method based on the virtual desktop scenario disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. Data 403 may include but is not limited to resource consumption data and alarm data, etc.
[0137] In some embodiments, the electronic device may further include a display screen 42 , an input / output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .
[0138] Those skilled in the art will appreciate that the structure shown in FIG. 4 does not limit the electronic device and may include more or fewer components than those shown in the figure.
[0139] It is understandable that if the device health assessment method based on the virtual desktop scenario in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program code.
[0140] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the device health assessment method based on the virtual desktop scenario are implemented.
[0141] The above is a detailed introduction to a device health assessment method, device, equipment and computer-readable storage medium provided in an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0142] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0143] The above is a detailed introduction to a method, apparatus, device and computer-readable storage medium for evaluating the health of an equipment provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A device health assessment method based on a virtual desktop scenario, characterized in that: include: Obtain resource consumption data and alarm data based on anomaly detection; Analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to different types of indicators to obtain the health score of each indicator; Analyzing the alarm data using an alarm scoring rule to obtain an alarm anomaly score; The health of the device corresponding to the virtual desktop scenario is determined according to the health score of each indicator and the alarm abnormality score.
2. The device health assessment method based on a virtual desktop scenario according to claim 1 is characterized in that: The resource consumption data includes CPU usage, memory usage and disk IO average active time.
3. The device health assessment method based on the virtual desktop scenario according to claim 2 is characterized in that: The analyzing the resource consumption data of corresponding types in the resource consumption data according to the health score rules corresponding to the different types of indicators to obtain the health score of each indicator includes: Calculate the average resource consumption of the target indicator within the cycle time; wherein the target indicator is CPU, memory or disk; Querying a list of resource consumption intervals matched by the target indicator to determine the target interval to which the average resource consumption value of the target indicator belongs; wherein the list of resource consumption intervals includes resource consumption ranges corresponding to low load intervals, medium load intervals, and high load intervals; different intervals correspond to different deduction modes; According to the deduction mode matched by the target interval, the health score matched by the target indicator is determined.
4. The device health assessment method based on a virtual desktop scenario according to claim 3 is characterized in that: Determining the health score matched by the target indicator according to the deduction mode matched by the target interval includes: Determine the deduction value of the target indicator based on the average resource consumption of the target indicator and the deduction range matched by the target interval; The difference between the full score corresponding to the target indicator and the deduction value is used as the health score of the target indicator.
5. The device health assessment method based on a virtual desktop scenario according to claim 1 is characterized in that: The analyzing the alarm data by using the alarm scoring rule to obtain the alarm abnormality score includes: The number of alarms that occurred during the statistical cycle and the corresponding alarm level of each alarm; Based on the piecewise linear relationship between the number of abnormalities and the abnormality scores, determining a first alarm abnormality score matching the number of alarms; Based on the piecewise linear relationship between the abnormality level and the abnormality score, determining a second alarm abnormality score matching the alarm level; The sum of the first alarm anomaly score and the second alarm anomaly score is used as the final alarm anomaly score.
6. The device health assessment method based on a virtual desktop scenario according to claim 1 is characterized in that: The acquisition of resource consumption data and alarm data based on anomaly detection includes: According to the set timed task, obtain the resource consumption data within the periodic time; The trained anomaly detection model is used to detect abnormal situations within the cycle time to obtain the alarm data; wherein the anomaly detection model is a model obtained by training the initial anomaly detection model based on various types of alarm information.
7. The device health assessment method based on a virtual desktop scenario according to any one of claims 1 to 6, characterized in that: Determining the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score includes: According to the proportion of each indicator, the health score of each indicator and the alarm abnormality score are weighted and summed to obtain the device health corresponding to the virtual desktop scenario.
8. A device health assessment device based on a virtual desktop scenario, characterized in that: comprising an acquisition unit, a first analysis unit, a second analysis unit and a determination unit; The acquisition unit is used to acquire resource consumption data and alarm data based on abnormality detection; The first analysis unit is used to analyze the resource consumption data of corresponding types in the resource consumption data according to the health scoring rules corresponding to the different types of indicators, so as to obtain the health score of each indicator; The second analysis unit is used to analyze the alarm data using an alarm scoring rule to obtain an alarm abnormality score; The determining unit is used to determine the device health corresponding to the virtual desktop scenario according to the health score of each indicator and the alarm abnormality score.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the device health assessment method based on the virtual desktop scenario as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device health assessment method based on a virtual desktop scenario as claimed in any one of claims 1 to 7 are implemented.
