Host reliability scoring method, program product, electronic device and storage medium

By determining the rating and deduction items in the host reliability score, setting the scoring range according to the alarm level and deducting points, the problem of too low scores in the existing technology is solved, and the accurate reflection and operation of the host's health status is achieved. Improved dimensional efficiency.

CN119003278APending Publication Date: 2024-11-22SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411165109.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the existing technology, when the point deduction method is adopted in the host reliability score, when there are many points deductions but not serious, the score will be too low, which will not accurately reflect the health status of the host, and it will not be able to adapt to the health changes of the host in real time.

Method used

By obtaining the host's alarm data collection, determining the rating items and deduction items, setting the scoring range according to the alarm level, and deducting points within this range to ensure the accuracy and stability of the scoring.

Benefits of technology

The accuracy and stability of the host reliability score is achieved, which can better reflect the health status of the host, improve operation and maintenance monitoring efficiency, and promptly identify and handle faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003278A_ABST
    Figure CN119003278A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is suitable for the technical field of computers, and provides a host reliability scoring method, a computer program product, electronic equipment and a storage medium, and the host reliability scoring method comprises the following steps: obtaining an alarm data set of a host; each alarm data in the alarm data set corresponds to a score deduction value and an alarm level, and each alarm level corresponds to a score range of a reliability score; determining a grading item and a score deduction item of the reliability score of the host in the alarm data set; the grading item represents the alarm data with the highest alarm grade in the alarm data set, and the alarm data except the grading item in the alarm data set are all score deduction items; determining the score range of the reliability score of the host based on the alarm grade corresponding to the grading item; and determining the reliability score of the host based on the score range of the reliability score of the host and the score deduction score corresponding to each score deduction item.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a host reliability scoring method, a program product, an electronic device and a storage medium. Background Art

[0002] Related technologies evaluate hosts in multiple dimensions (system, performance, capacity, configuration, hardware), and use the method of deducting points to obtain scores for each dimension, thereby obtaining a reliability score or health score for the host. Related technologies only use the method of deducting points. When there are many deductible items but they are not serious, the host reliability score will be very low, resulting in the score being unable to accurately reflect the health of the host. Summary of the invention

[0003] In order to solve the above problems, the embodiments of the present invention provide a host reliability scoring method, a program product, an electronic device and a storage medium, which can enable the scoring to accurately reflect the health status of the host.

[0004] The technical solution of the present invention is achieved in this way:

[0005] In one aspect, an embodiment of the present invention provides a host reliability scoring method, the method comprising:

[0006] Acquire an alarm data set of the host; each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a reliability score range;

[0007] Determine the grading items and deduction items of the reliability score of the host in the alarm data set; the grading item represents the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set except the grading item are all deduction items;

[0008] Determining a score range of the reliability score of the host based on the alarm level corresponding to the rating item;

[0009] The reliability score of the host is determined based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item.

[0010] In the above solution, the step of determining the grading items and deduction items of the reliability score of the host in the alarm data set includes:

[0011] If there are multiple alarm data with the highest alarm level in the alarm data set, the alarm data with the smallest deduction score among the multiple alarm data with the highest alarm level is determined as the grading item;

[0012] The alarm data in the alarm data set other than the rating items are determined as deduction items.

[0013] In the above solution, the step of obtaining the alarm data set of the host includes:

[0014] If the host includes alarm data of multiple different disks, the alarm data of the multiple disks are aggregated into a multi-disk alarm data;

[0015] The multi-disk alarm data is added to the alarm data set.

[0016] In the above solution, the step of obtaining the alarm data set of the host includes:

[0017] For alarm data requiring downtime for fault repair, determine whether the alarm time is after the startup time of the host;

[0018] If the alarm time is before the start time of the host, the alarm data is not added to the alarm data set;

[0019] If the alarm time is after the startup time of the host, the alarm data is added to the alarm data set.

[0020] In the above solution, determining the reliability score of the host based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item includes:

[0021] Subtract the sum of the deduction scores of all deduction items from the upper limit of the scoring range to obtain a calculation result;

[0022] The maximum value between the calculation result and the lower limit of the score range is taken as the reliability score of the host.

[0023] In the above scheme, the alarm data set includes alarm data within a valid time, and the alarm data set includes alarm data of a first alarm type and alarm data of a second alarm type. The valid time of the alarm data of the first alarm type is within a fault detection period, and the valid time of the alarm data of the second alarm type is greater than the fault detection period.

[0024] In the above solution, for the same alarm of the same hardware of the host, only the alarm data with the latest timestamp is retained.

[0025] On the other hand, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned host reliability scoring method.

[0026] On the other hand, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps in the above-mentioned host reliability scoring method when running the computer program.

[0027] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the host reliability scoring method provided in the embodiment of the present invention are implemented.

[0028] The embodiment of the present application obtains the alarm data set of the host, and each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a scoring range of the reliability score. The grading items and deduction items of the reliability score of the host in the alarm data set are determined, and the grading items represent the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set except the grading items are all deduction items. Based on the alarm level corresponding to the grading items, the scoring range of the reliability score of the host is determined, and based on the scoring range of the reliability score of the host and the deduction scores corresponding to each deduction item, the reliability score of the host is determined. The embodiment of the present application adopts a scheme of grading items plus deduction items, and determines the range of the reliability score of the host according to the highest level of alarm data, and then deducts points within the scoring range, so that the fluctuation of the reliability score of the host is small, the scoring result is more accurate, and it can better reflect the health status of the host. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of an implementation flow of a host reliability scoring method provided by an embodiment of the present invention;

[0030] Figure 2 This is a schematic diagram of the relationship between a fault type, an alarm level, and a deduction score provided by an embodiment of the present invention;

[0031] Figure 3 A flowchart for determining grading items and deduction items provided by an embodiment of the present invention;

[0032] Figure 4 is a schematic diagram of an alarm aggregation process provided by an embodiment of the present invention;

[0033] Figure 5 It is a flowchart of alarm screening within a valid time range provided by an embodiment of the present invention;

[0034] Figure 6 This is a schematic diagram of host reliability score calculation provided by an embodiment of the present invention;

[0035] Figure 7This is an overall flow chart of a host reliability comprehensive scoring method provided by an embodiment of the present invention;

[0036] Figure 8 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] 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 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.

[0038] Reliability scoring of hosts can monitor the health status of hosts and provide operation and maintenance monitoring personnel with a metric representation of the host's health level, making it easier for them to fully understand the host's operating status, eliminate potential fault hazards, and improve system availability. This frees them from the work of massive alarm analysis and real-time alarm monitoring, and allows them to understand the macro situation most intuitively and judge the priority and urgency, thereby greatly improving work efficiency.

[0039] Currently, the health score of a related technology is mainly divided into two aspects:

[0040] 1. System health: System health is the score of the one-click inspection. An active inspection is performed once an hour by deducting points. The evaluation dimensions are mainly system, computing, storage, network, and high-reliability services.

[0041] 2. Storage cluster health: The storage cluster health is calculated by the weighted average of the host health, host data disk health, and data health of the distributed storage cluster. The weighted value of host health is 70%, the weighted value of data disk health is 20%, and the weighted value of data health is 10%.

[0042] Another related technology health score: the evaluation dimensions are mainly system, performance, capacity, configuration, and hardware, and the score of each dimension is obtained by deducting points.

[0043] It can be seen that the related technology has the following disadvantages:

[0044] (1) It can only provide a simple indicator and cannot understand the reliability of the host over a period of time.

[0045] (2) If only the deduction method is used, when there are many deduction items but they are not serious, the host reliability score will be very low, resulting in the score being unable to accurately reflect the health of the host.

[0046] (3) The related technology only has fault alarms within the inspection cycle, ignoring the effective duration that some faults affect the health of the host; the related technology requires manual clicks to complete fault recovery, and the score cannot automatically adapt to the health status of the host.

[0047] In view of the shortcomings of the above-mentioned related technologies, an embodiment of the present invention provides a host reliability scoring method, which can make the scoring accurately reflect the health status of the host. In order to illustrate the technical solution of the present invention, a specific embodiment is used for description below.

[0048] Figure 1 is a schematic diagram of the implementation flow of a host reliability scoring method provided by an embodiment of the present invention, with reference to Figure 1 , host reliability scoring methods include:

[0049] S101, obtaining an alarm data set of a host; each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a reliability score range.

[0050] The host may be a server, or a terminal such as a desktop computer, a notebook computer, or a mobile phone. The execution subject of the embodiment of the present application may be the host itself, or other electronic devices.

[0051] The alarm data set of the host includes the alarm data of the host. For example, the alarm data set may include the alarm data of the host within one day of history, or the alarm data within one hour of history. A valid time may also be set for the alarm data, and only the alarm data within the valid time participates in the host reliability score.

[0052] In some embodiments, the reliability score of the host can be calculated periodically, for example, once every hour, and the alarm data set of the host also needs to be updated accordingly, for example, the alarm data in the last hour is added to the alarm data set, so that the reliability score of the host can reflect the health of the host in real time.

[0053] In this embodiment, an alarm level and a deduction score are set in advance for each type of fault alarm data, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the relationship between fault type, alarm level and deduction score provided by an embodiment of the present invention. For example, the algorithm module performs fault detection on the disk array (Redundant Arrays of Independent Disks, RAID), and the generated alarm data shows that the fault type is RAID card reset, and the corresponding sub-fault type is 0x0501 (error code). Then the scoring level (or alarm level) of the alarm data is L1, and the deduction score is -10. In actual applications, according to the alarm data, Figure 2 Find the corresponding warning level and deduction points.

[0054] In this embodiment, each alarm level corresponds to a reliability score range. For example, Table 1 can divide the alarms involved in the scoring into four levels, L1 to L4 (L1>L2>L3>L4), from high to low according to the severity of the fault alarm. The upper and lower limits of the scores corresponding to each level are shown in Table 1.

[0055] Among them, the upper limit of the score corresponding to the scoring level (or warning level) L1 is 30, and the lower limit of the score is 0; the upper limit of the score corresponding to the scoring level (or warning level) L2 is 70, and the lower limit of the score is 31; the upper limit of the score corresponding to the scoring level (or warning level) L3 is 90, and the lower limit of the score is 71; the upper limit of the score corresponding to the scoring level (or warning level) L4 is 100, and the lower limit of the score is 91.

[0056] Rating scale Lower limit of score Rating Cap L1 0 30 L2 31 70 L3 71 90 L4 91 100

[0057] Table 1

[0058] S102, determining the grading items and deduction items of the reliability score of the host in the alarm data set; the grading items represent the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set except the grading items are all deduction items.

[0059] Among them, the rating items are used to determine the rating range of the host's reliability score. As shown in Table 1, the rating range corresponding to the rating level L1 is 1-30.

[0060] The embodiment of the present application determines the alarm data with the highest alarm level in the alarm data set as the rating item. For example, in Table 1, L1 is the highest alarm level and L4 is the lowest alarm level. If the alarm data set includes alarm data with an alarm level of L1, the reliability score of the host is in the range of 1-30.

[0061] In the embodiment of the present application, all alarm data except the rating items are determined as deduction items, and the deduction items are used to reduce the reliability score of the host.

[0062] S103: Determine a score range of the reliability score of the host based on the alarm level corresponding to the grading item.

[0063] For example, referring to Table 1, if the alarm level corresponding to the rating item is L1, the reliability score of the host will range from 1 to 30.

[0064] S104: Determine the reliability score of the host based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item.

[0065] First, determine the scoring range of the host's reliability score, and within the scoring range, determine the host's final score based on the deduction items.

[0066] For example, assuming that the score range is 1-30, the reliability score of the host is obtained by subtracting the deduction scores of all deduction items from the maximum value of the score range.

[0067] The embodiment of the present application obtains the alarm data set of the host, and each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a scoring range of the reliability score. The grading items and deduction items of the reliability score of the host in the alarm data set are determined, and the grading items represent the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set except the grading items are all deduction items. Based on the alarm level corresponding to the grading items, the scoring range of the reliability score of the host is determined, and based on the scoring range of the reliability score of the host and the deduction scores corresponding to each deduction item, the reliability score of the host is determined. The embodiment of the present application adopts a scheme of grading items plus deduction items, determines the scoring range according to the highest level of alarm, and then deducts points within the range, so that the fluctuation of the score is small, the result is more accurate, and it can better reflect the health status of the host.

[0068] In one embodiment, the determining of the grading items and deduction items of the reliability score of the host in the alarm data set includes:

[0069] If there are multiple alarm data with the highest alarm level in the alarm data set, the alarm data with the smallest deduction score among the multiple alarm data with the highest alarm level is determined as the grading item;

[0070] The alarm data in the alarm data set other than the rating items are determined as deduction items.

[0071] When there are too many alarm data, there may be multiple alarm data with the highest alarm level, for example, there are multiple L1 level (Table 1) alarm data, and the one with the smallest deduction score is determined as the grading item.

[0072] After the initial determination of the grading items and deduction items, it is necessary to determine whether there are alarms of the same level as the grading items in the deduction items. If not, the grading items and deduction items remain unchanged; if so, it is necessary to determine which of the deduction items and the grading items of the same level will have fewer points deducted when used as deduction items. The alarm with fewer deduction points should be set as the grading item, and the rest will be set as deduction items. This is mainly to highlight the more serious alarms of the same level in the scoring, because the upper and lower bounds determined for the same level alarms as grading items are the same, and the more serious alarms are used as deduction items, the more points are deducted, and the lower the score.

[0073] In the embodiment of the present application, the scoring level is first determined, and then points are deducted based on the grading to determine the final score. Therefore, the effective alarms for reliability scoring are divided into two roles, one is the alarm for determining the scoring level, called the grading item; the other is the alarm for deducting points after the scoring level is determined, called the deduction item. It should be noted that an alarm can only be one of the grading item or the deduction item, and there is only one grading item, which is the most serious alarm among the alarms participating in the scoring.

[0074] Figure 3 A flowchart for determining grading items and deduction items provided by an embodiment of the present invention includes the following steps:

[0075] S301, first determine the grading items.

[0076] S302, LEVEL_NAME_MAP is the mapping relationship between the deduction level of each type of alarm and its alarm code, and traverses from high to low according to the score level to determine whether the traversal is completed. If yes, execute S310, otherwise execute S303.

[0077] S303, for each scoring level and its alert code (obj_alert_code) in LEVEL_NAME_MAP, traverse all alerts involved in the scoring to determine whether the traversal is complete. If yes, return to S302, otherwise execute S304.

[0078] S304, determine whether the scoring and grading items are determined in the previous step, if yes, the alarm should be treated as a deduction item, otherwise it is necessary to determine whether the alarm is a grading item. If yes, execute S308, otherwise execute S305.

[0079] S305, determine whether the alarm code of the current alarm is equal to obj_alert_code, if yes, it means that this alarm is a rated item, otherwise it is not. If yes, execute S306.

[0080] S306, the identification rating item has been found.

[0081] S307, record the alarm code of the graded item alarm as the score, and return to S302.

[0082] S308, determine whether obj_alert_code is equal to the alarm code of the current alarm, if yes, it means it is a point deduction item. If yes, execute S309.

[0083] S309, record the warning code of the newly added deduction item and return to S303.

[0084] S310, determine whether there are warning items and graded items in the same grade in the recorded deduction items? If yes, execute S311, otherwise end.

[0085] S311, comparing the deduction values ​​of the grading item and the deduction items of the same grade when used as deduction items, selecting the one with the least deduction as the grading item, and the rest as deduction items.

[0086] In the mapping table of the scoring level, alarm name and error code, the embodiment of the present application traverses the alarms and error codes in each level from L1 to L4 in turn, and determines whether there is a corresponding alarm name and error code in the alarm. If there is, the alarm is initially positioned as a rating item. After the rating item is determined, all alarms except the rating item are determined as deduction items. After the rating item and the deduction item are initially determined, it is necessary to determine whether there is an alarm of the same level as the rating item in the deduction item. If not, the rating item and the deduction item remain unchanged; if so, it is necessary to determine which of the deduction items and the rating item of the same level has fewer points deducted when used as a deduction item. The alarm with fewer deductions should be set as a rating item, and the rest are set as deduction items. This is mainly to highlight the more serious alarms of the same level in the scoring, because the upper and lower bounds determined when the alarms of the same level are used as rating items are the same, and the more serious alarms are used as deduction items, the more points are deducted, and the lower the score.

[0087] In one embodiment, the step of obtaining a host alarm data set includes:

[0088] If the host includes alarm data of multiple different disks, the alarm data of the multiple disks are aggregated into a multi-disk alarm data;

[0089] The multi-disk alarm data is added to the alarm data set.

[0090] Among them, the single-disk alarm data participating in alarm aggregation no longer participates in the calculation of reliability score, and the multi-disk alarm data generated by aggregation participates in the calculation of host reliability score.

[0091] Regarding disk alarms, the risks to a host caused by a single disk failure and multiple disk failures are different. Therefore, in this embodiment, when there are multiple alarms of different disks on the same host, the single disk alarms will be aggregated and upgraded to multiple disk alarms, and the single disk alarms participating in the alarm aggregation will no longer participate in the calculation of the reliability score. The multiple disk alarms generated by the aggregation will continue to participate in the subsequent calculation of the host reliability score. Compared with single disk alarms, multiple disk alarms have a greater impact on the reliability of the host. Therefore, the higher the risk level of multiple disk alarms during scoring and grading, the lower the interval of the determined reliability score. For details, see Figure 2 .like Figure 2 As shown in the figure, among the sub-fault types, there are alarms that are divided into 3 disks or more and less than 3 disks, which are alarms that need to participate in multi-disk alarm aggregation, and the alarms of 3 disks or more are more serious than those of less than 3 disks in terms of scoring level and deduction branch.

[0092] In one embodiment, when there are alarms from three or more different disks on the same host, the single-disk alarm aggregation will be upgraded to a multi-disk alarm, and the single-disk alarm participating in the alarm aggregation will no longer participate in the calculation of the reliability score, while the multi-disk alarm generated by the aggregation will continue to participate in the subsequent calculation of the host reliability score.

[0093] The alarm aggregation process is as follows Figure 4 As shown in the figure, the alarm aggregation process includes:

[0094] Determine whether the single-disk alarm in the hardware fault alarm database meets the requirements for aggregation into multiple-disk alarms;

[0095] If the conditions are met, multiple disk alarms are generated and the single disk alarms that contribute to the generation of multiple disk alarms are removed.

[0096] If not satisfied, no aggregation is performed;

[0097] Get the most serious alarm for the same disk or memory bar and remove other alarms;

[0098] Get effective alerts for reliability scoring.

[0099] Among them, obtaining the most serious alarm for the same disk or memory bar and eliminating other alarms can prevent the same hardware failure from affecting the host reliability score twice or more.

[0100] In one embodiment, the step of obtaining a host alarm data set includes:

[0101] For alarm data requiring downtime for fault repair, determine whether the alarm time is after the startup time of the host;

[0102] If the alarm time is before the start time of the host, the alarm data is not added to the alarm data set;

[0103] If the alarm time is after the startup time of the host, the alarm data is added to the alarm data set.

[0104] In this embodiment, for alarms that require downtime for fault repair, it is necessary to determine whether the alarm time is after the host startup time. If so, the reliability score calculation continues; if not, it is considered that the fault has been repaired and the subsequent reliability score calculation process does not enter.

[0105] In one embodiment, the alarm data set includes alarm data within a valid time, and the alarm data set includes alarm data of a first alarm type and alarm data of a second alarm type, the valid time of the alarm data of the first alarm type is within a fault detection period, and the valid time of the alarm data of the second alarm type is greater than the fault detection period.

[0106] For example, the validity period of the alarm data of the first alarm type is one hour, and the validity period of the alarm data of the second alarm type is one day.

[0107] The embodiment of the present application divides alarms into a first alarm type and a second alarm type. The first alarm type is a stateless alarm, and the second alarm type is a stateful alarm.

[0108] Stateless alarm: means that the impact of the alarm on the host is only within its detection cycle. If an alarm is generated within the detection cycle, it is considered to have an impact on the health of the host. If no alarm is generated, it is considered to have no impact on the health of the host.

[0109] Stateful alarms: refers to the time when the alarm affects the host not only within the current detection cycle. Because stateful alarms are generally detected based on incremental logs, the generation of an alarm indicates that the corresponding hardware has a certain degree of failure. If there is no alarm in the subsequent detection cycle, it does not mean that the failure has been restored, and it will still affect the health of the host. Therefore, the impact of stateful alarms on the host exceeds the detection cycle.

[0110] Stateless alarms are closely related to the current hardware detection data. For example, when a disk fails, it will be reflected in the smart indicator data of the disk fault detection data. At this time, the disk alarm will be generated during the detection. When the smart data of the disk is normal, the disk alarm will not be generated at this time, and the disk must be in a healthy state. Therefore, for stateless alarms, if no alarm is generated during the detection cycle, it is considered that the hardware is not faulty and will not affect the health of the host. The impact of stateful alarms on the health of the host cannot be reflected by the detection data obtained during the current detection cycle. For example, the detection principle of memory alarms is to obtain the incremental kernel logs generated in the past hour to judge whether there are hidden dangers in the memory. If an alarm is generated before the current detection cycle, it means that there is a problem with the memory, which will affect the reliability of the host. However, if the incremental kernel logs of the current cycle do not meet the alarm standard and no alarm is generated, it cannot be considered that the memory is no longer problematic. It still has reliability risks and is still not a healthy memory stick, which will still affect the health of the host. Therefore, the time span of the impact of this stateful alarm on the host exceeds one detection cycle, but it is not infinitely long. It is assumed here that if the same alarm does not occur within a day, the hidden danger of such alarm is temporarily eliminated.

[0111] Therefore, based on the different time spans of the impact of stateless alarms and stateful alarms on host health, the effective time of stateless alarms and stateful alarms participating in host reliability scoring is also set differently. For example, the effective time of a stateless alarm is its detection cycle (one hour), and the effective time of a stateful alarm is one day.

[0112] In one embodiment, for the same alarm of the same hardware of the host, only the alarm data with the latest timestamp is retained.

[0113] In the embodiment of the present application, only the alarm with the latest timestamp of the same type is retained within the valid time range, so as to avoid the same hardware failure affecting the host reliability score twice or more.

[0114] like Figure 5 As shown, Figure 5 A flowchart of alarm screening within a valid time range provided by an embodiment of the present invention includes:

[0115] Among the pulled original alarms, only the alarm with the latest timestamp of each type of alarm is retained.

[0116] For stateful alarms, determine whether the alarm time is greater than or equal to now-1 days. If so, it is an alarm within the valid time.

[0117] For stateless alarms, determine whether the alarm time is greater than or equal to now-detection period. If so, it is an alarm within the valid time.

[0118] For alarms that require downtime for fault modification, determine whether the alarm time is greater than the host startup time. If so, further calculate the host reliability score; if not, it is considered that the fault has been repaired and does not enter the subsequent reliability score calculation process.

[0119] The embodiment of the present application distinguishes between stateful and stateless alarms, and uses the effective time of different alarms affecting the host to determine whether the fault has been restored, thereby realizing automatic handling of the score decreasing when a fault occurs and the score increasing when a fault is restored, so that the score can adaptively reflect the health status of the host.

[0120] In one embodiment, determining the reliability score of the host based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item includes:

[0121] Subtract the sum of the deduction scores of all deduction items from the upper limit of the scoring range to obtain a calculation result;

[0122] The maximum value between the calculation result and the lower limit of the score range is taken as the reliability score of the host.

[0123] After determining the grading items and deduction items, the reliability score of the host can be calculated. The reliability score of the embodiment of the present application is the upper limit of the score range minus the sum of the deductions of all deduction items.

[0124] In one embodiment, if the rating item is for the lowest warning level and there is no deduction item, the deduction score of the rating item is subtracted from the upper limit of the scoring range.

[0125] For example, in Table 1, if the scoring level is not L4, the reliability score is the upper limit of the score up_score minus the sum of the deductions for all deduction items. When the scoring level is L4, it is also necessary to deduct the points that should be deducted when the grading items are used as deduction items. This is mainly because the upper limit of the L4 score is 100. If there are no other deduction items, the score of an L4-level alarm host is the same as when the host is completely healthy, both are 100 points, which is not in line with common sense. Therefore, when the scoring level is L4, it is also necessary to deduct the points that should be deducted when the grading items are used as deduction items. Finally, take the maximum value between the above calculated score and the lower limit of the scoring range to ensure that the score is not lower than the lower limit of the score for that level.

[0126] like Figure 6 As shown, Figure 6 A schematic diagram of host reliability score calculation provided by an embodiment of the present invention includes:

[0127] First, determine the upper and lower bounds of the score, up_score and down_score, based on the rating items.

[0128] Determine whether the rating level is L4.

[0129] If the scoring level is L4, then score = up_score - the deduction points for all deduction items - the deduction points for the grading items.

[0130] If the rating level is not L4, score = up_score - the deduction points for all deduction items.

[0131] Finally, score=max(down_score, score).

[0132] In one embodiment, the pseudo code for calculating the reliability score is as follows:

[0133] Step 1: Get the master of the grading item and all the reducers of the deduction items

[0134] / / Get the score and grading, the upper and lower limits, and the deduction points when the grading items are used as deduction items

[0135] step2:level=master["level"]

[0136] up_score = master["up_score"]

[0137] low_score=master["low_score"]

[0138] master_score=master["reduce_score"]

[0139] / / Initialize the reliability score with the upper limit of the score

[0140] step3:score=up_score

[0141] / / Subtract all the deduction points

[0142] step4:for reducer in reducers{

[0143] score=score-reducer["reduce_score"]

[0144] }

[0145] / / When the rating level is L4, the points to be deducted when the grading item is a deduction item

[0146] step5:iflevel=="L4"{

[0147] score = score - master_score

[0148] }

[0149] / / Take the maximum value of the current calculated score and the lower limit of the score as the final score

[0150] step6:score=max(score,low_score)

[0151] The data format of the master is:

[0152] {

[0153] "alert_name":"RAID card reset alarm",

[0154] "err_code":"",

[0155] "level":"L3",

[0156] "up_score":90,

[0157] "low_score":71,

[0158] "reduce_score":10

[0159] }

[0160] The data format of reducers is: [

[0162] {

[0163] "alert_name":"SSD power-on time exceeded alarm",

[0164] "err_code":"",

[0165] "reduce_score":5

[0166] },

[0167] {

[0168] "alert_name":"Disk temperature exceeds limit alarm",

[0169] "err_code":"",

[0170] "reduce_score":2

[0171] }

[0172] ].

[0173] The embodiment of the present application adopts a combined method of scoring and grading + deduction, determines the range of scores according to the most serious alarm, and deducts points within the score range, so that the score fluctuation is smaller and the result is relatively accurate.

[0174] In one embodiment, the reliability score of the host may be calculated periodically, and a trend graph of the reliability score may be provided to understand the robustness of the host system over a period of time.

[0175] In one embodiment, Figure 7 This is an overall flow chart of a host reliability comprehensive score provided by an embodiment of the present invention, which selects hardware fault alarms related to RAID modules, disk modules and memory modules from the indicators and logs of algorithm data, wherein the disk module includes disk health analysis (Disk Health Analyzer, DHA) and DISK_PRED (disk partition management). The memory module includes DRAM_PRED (memory diagnosis) and fault switching and master-slave replication software (Master High Availability, MHA).

[0176] The hardware fault alarm is graded. According to the severity of the fault alarm, the alarms involved in the scoring can be divided into four levels from L1 to L4 (L1>L2>L3>L4) from high to low. The grading items and deduction items are determined according to the alarm level. The role of the grading item is to determine the upper and lower limits of the score. The upper limit is the original score raw_socre of the score, and the lower limit is the score low_socre that cannot be lower than after the final deduction. The role of the deduction item is to deduct points according to the reducer (deduction score), for example, reducer1: reduce_socre1; reduce2: reduce_socre2. Reliability score reliablity_socre, socre = max(low_socre, raw_socre-reduce_socre1-reduce_socre2-...).

[0177] The embodiment of the present application first retrieves the data required by the reliability algorithm from the database at regular intervals, executes the reliability detection and prediction algorithm to generate the corresponding alarm. Then, the alarms within the past day are retrieved, and the alarms that still have an impact on the health of the host are filtered out according to the effective time of each type of alarm. Based on the different degrees of impact of these valid alarms on the health of the host, these alarms are graded and the size of the points deducted when they are used as deduction items is determined. The most serious alarm among the valid alarms is selected as the rating item, that is, the upper limit of the score is determined, and the remaining valid alarms are used as deduction items. These deduction items are subtracted from the upper limit of the rating, and the maximum value of the obtained value and the lower limit of the rating is the final host reliability score.

[0178] The embodiment of the present application adopts a scoring and grading + deduction scheme, in which the scoring range is determined according to the most serious alarm, and then points are deducted within the range, so that the fluctuation of the score is small, the result is more accurate, and the health status of the host is better reflected.

[0179] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0180] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0181] It should be noted that the technical solutions described in the embodiments of the present invention can be arbitrarily combined without conflict.

[0182] In addition, in the embodiments of the present invention, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0183] An embodiment of the present invention provides a host reliability scoring device, the device comprising:

[0184] An acquisition module is used to acquire an alarm data set of a host; each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a reliability score range;

[0185] A first determination module is used to determine the grading items and deduction items of the reliability score of the host in the alarm data set; the grading items represent the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set other than the grading items are all deduction items;

[0186] A second determination module, configured to determine a score range of the reliability score of the host based on the alarm level corresponding to the grading item;

[0187] The third determination module is used to determine the reliability score of the host based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item.

[0188] In one embodiment, the first determining module is specifically configured to:

[0189] If there are multiple alarm data with the highest alarm level in the alarm data set, the alarm data with the smallest deduction score among the multiple alarm data with the highest alarm level is determined as the grading item;

[0190] The alarm data in the alarm data set other than the rating items are determined as deduction items.

[0191] In one embodiment, the acquisition module is specifically used for:

[0192] If the host includes alarm data of multiple different disks, the alarm data of the multiple disks are aggregated into a multi-disk alarm data;

[0193] The multi-disk alarm data is added to the alarm data set.

[0194] In one embodiment, the acquisition module is specifically used for:

[0195] For alarm data requiring downtime for fault repair, determine whether the alarm time is after the startup time of the host;

[0196] If the alarm time is before the start time of the host, the alarm data is not added to the alarm data set;

[0197] If the alarm time is after the startup time of the host, the alarm data is added to the alarm data set.

[0198] In one embodiment, the third determining module is specifically configured to:

[0199] Subtract the sum of the deduction scores of all deduction items from the upper limit of the scoring range to obtain a calculation result;

[0200] The maximum value between the calculation result and the lower limit of the score range is taken as the reliability score of the host.

[0201] In one embodiment, the alarm data set includes alarm data within a valid time, and the alarm data set includes alarm data of a first alarm type and alarm data of a second alarm type, the valid time of the alarm data of the first alarm type is within a fault detection period, and the valid time of the alarm data of the second alarm type is greater than the fault detection period.

[0202] In one embodiment, for the same alarm of the same hardware of the host, only the alarm data with the latest timestamp is retained.

[0203] In actual application, the acquisition module, the first determination module, the second determination module and the third determination module can be implemented by a processor in an electronic device, such as a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA).

[0204] It should be noted that: the host reliability scoring device provided in the above embodiment only uses the division of the above modules as an example when performing host reliability scoring. In actual applications, the above processing can be assigned to different modules as needed, that is, the internal structure of the device is divided into different modules to complete all or part of the processing described above. In addition, the host reliability scoring device provided in the above embodiment and the host reliability scoring method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0205] The host reliability scoring device can be in the form of an image file. After the image file is executed, it can be run in the form of a container or a virtual machine to implement the host reliability scoring method described in this application. Of course, it is not limited to the image file form. As long as some software forms that can implement the host reliability scoring method described in this application are within the protection scope of this application.

[0206] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device. Figure 8 Schematic diagram of the hardware structure of the electronic device of the present application embodiment. Figure 8 As shown, the electronic equipment includes:

[0207] Communication interface, which can exchange information with other devices such as network equipment;

[0208] The processor is connected to the communication interface to realize information exchange with other devices, and is used to execute the method provided by one or more technical solutions of the electronic device side when running the computer program. The computer program is stored in the memory.

[0209] The memory in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0210] Of course, in actual applications, the various components in the electronic device are coupled together through the bus system. It is understandable that the bus system is used to achieve connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 In the specification, various buses are labeled as bus systems.

[0211] The electronic devices mentioned above can be in the form of clusters, such as cloud computing platforms. The so-called cloud computing platform is a business form that uses computing virtualization, network virtualization, and storage virtualization technologies to organize multiple independent server physical hardware resources into pooled resources. It is a software-defined resource structure based on the development of virtualization technology, which can provide resource capabilities in the form of virtual machines and containers. By eliminating the fixed relationship between hardware and operating systems, relying on network connectivity to unify resource scheduling, and then providing the required virtual resources and services, it is a new type of IT and software delivery model with the characteristics of flexibility, elasticity, distribution, multi-tenancy, and on-demand.

[0212] The current cloud computing platform supports several service models:

[0213] SaaS (Software as a Service): Cloud computing platform users do not need to purchase software, but instead rent software deployed on the cloud computing platform. Users do not need to maintain the software, and the software service provider will fully manage and maintain the software;

[0214] PaaS (Platform as a Service): Cloud computing platform users (usually software developers in this case) can build new applications or extend existing applications on the architecture provided by the cloud computing platform without having to purchase development, quality control or production servers;

[0215] IaaS (Infrastructure as a Service): Cloud computing platforms provide data centers, infrastructure hardware and software resources through the Internet. Cloud computing platforms under the IaaS model can provide servers, operating systems, disk storage, databases and / or information resources.

[0216] It can be understood that the memory can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0217] The method disclosed in the above embodiment of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the program in the memory and completes the steps of the above method in combination with its hardware.

[0218] Optionally, when the processor executes the program, the corresponding processes implemented by the electronic device in each method of the embodiments of the present application are implemented, which will not be described in detail here for the sake of brevity.

[0219] In an exemplary embodiment, the embodiment of the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory storing a computer program, and the above-mentioned computer program can be executed by a processor to complete the steps described in the aforementioned host reliability scoring method.

[0220] An embodiment of the present application further provides a computer storage medium, including a second memory storing a computer program, and the computer program can be executed by a processor to complete the steps of the aforementioned host reliability scoring method.

[0221] The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0222] In an exemplary embodiment, the present application also provides a computer program product, including a computer program, which can be executed by a processor of an electronic device to complete the steps described in the host reliability scoring method of the embodiment of the present application.

[0223] In the several embodiments provided in the present application, it should be understood that the disclosed devices, equipment and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0224] The units described above as separate components may or may not be physically separated, and the components displayed 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 units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0225] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0226] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0227] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0228] It should be noted that the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0229] In addition, in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0230] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A host reliability scoring method, characterized in that: include: Get the host's alarm data set; Each alarm data in the alarm data set corresponds to a deduction score and an alarm level, and each alarm level corresponds to a reliability score range; Determine the grading items and deduction items of the reliability score of the host in the alarm data set; the grading item represents the alarm data with the highest alarm level in the alarm data set, and the alarm data in the alarm data set except the grading item are all deduction items; Determining a score range of the reliability score of the host based on the alarm level corresponding to the rating item; The reliability score of the host is determined based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item.

2. The method according to claim 1, characterized in that The step of determining the grading items and deduction items of the reliability score of the host in the alarm data set includes: If there are multiple alarm data with the highest alarm level in the alarm data set, the alarm data with the smallest deduction score among the multiple alarm data with the highest alarm level is determined as the grading item; The alarm data in the alarm data set other than the rating items are determined as deduction items.

3. The method according to claim 1, characterized in that The obtaining of the alarm data set of the host includes: If the host includes alarm data of multiple different disks, the alarm data of the multiple disks are aggregated into a multi-disk alarm data; The multi-disk alarm data is added to the alarm data set.

4. The method according to claim 1, characterized in that The obtaining of the alarm data set of the host includes: For alarm data requiring downtime for fault repair, determine whether the alarm time is after the startup time of the host; If the alarm time is before the start time of the host, the alarm data is not added to the alarm data set; If the alarm time is after the startup time of the host, the alarm data is added to the alarm data set.

5. The method according to claim 1, characterized in that The step of determining the reliability score of the host based on the score range of the reliability score of the host and the deduction score corresponding to each deduction item includes: Subtract the sum of the deduction scores of all deduction items from the upper limit of the scoring range to obtain a calculation result; The maximum value between the calculation result and the lower limit of the score range is taken as the reliability score of the host.

6. The method according to claim 1, characterized in that The alarm data set includes alarm data within a valid time, and the alarm data set includes alarm data of a first alarm type and alarm data of a second alarm type. The valid time of the alarm data of the first alarm type is within a fault detection period, and the valid time of the alarm data of the second alarm type is greater than the fault detection period.

7. The method according to claim 1, characterized in that For the same alarm of the same hardware of the host, only the alarm data with the latest timestamp is retained.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the host reliability scoring method according to any one of claims 1 to 7 are implemented.

9. An electronic device comprising a memory, a processor, a communication interface, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the host reliability scoring method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the host reliability scoring method according to any one of claims 1 to 7.