Disk attenuation detection method, device, equipment, medium and product

By periodically sampling and comparing disk performance data, disk degradation is automatically detected, solving the problem of low efficiency in manual monitoring and achieving efficient and accurate disk health status monitoring.

CN121483348APending Publication Date: 2026-02-06JINZHUAN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511623229.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

In existing technologies, monitoring disk health status relies on manual labor, which is inefficient and inaccurate, resulting in the inability to detect disk anomalies in a timely manner and affecting database operations.

Method used

By periodically sampling and comparing disk performance data from adjacent periods, disk degradation is automatically detected. This is achieved through a data acquisition module, a data comparison module, and a degradation detection module.

Benefits of technology

It improves the efficiency and accuracy of disk detection, ensures the continuity and accuracy of disk decay detection, promptly detects disk anomalies, and avoids business disruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121483348A_ABST
    Figure CN121483348A_ABST
Patent Text Reader

Abstract

The invention discloses a disk attenuation detection method and device, equipment, a medium and a product. The method comprises the following steps: acquiring at least one kind of current disk performance data of a target disk acquired by a preset number of current sampling points in a current sampling period; comparing each current disk performance data with each historical disk performance data corresponding to a previous sampling point in a previous sampling period; and detecting the attenuation condition of the target disk according to a comparison result. In the technical scheme of the embodiment of the invention, the disk performance data of the target disk is periodically sampled, and the disk performance data sampled in adjacent periods are compared, so that the continuity of detecting the performance degradation of the disk can be ensured. Moreover, through periodic and coherent sampling and detection, the attenuation condition of the target disk can be stably monitored, the accuracy of disk attenuation detection is ensured, meanwhile, the detection mode is changed into automatic processing, and the efficiency of disk detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of disk detection, and particularly relates to a disk attenuation detection method, device, equipment, medium and product. BACKGROUND

[0002] In the process of database service operation, a large number of disk writing operations are involved, so the health status of the disk of the server is crucial. Abnormal disk status can cause the disk writing speed to decrease, affect data storage, and even affect the service in serious cases.

[0003] At present, the monitoring of the disk mainly relies on manpower to check the disk status. When the disk has some abnormalities, it is difficult for people to observe. When the disk is actually observed to be in an unhealthy state, the database service may have been affected. This way of monitoring the health status of the disk by people highly depends on human experience, and the efficiency and accuracy are low. SUMMARY

[0004] The present application provides a disk attenuation detection method, device, equipment, medium and product to improve the efficiency and accuracy of detecting the performance of the disk.

[0005] According to an aspect of the present application, a disk attenuation detection method is provided, comprising:

[0006] obtaining at least one current disk performance data of a target disk collected by a preset number of current sampling points in a current sampling period;

[0007] comparing each current disk performance data with each historical disk performance data corresponding to a previous sampling point in a previous sampling period;

[0008] detecting the attenuation of the target disk according to the comparison result.

[0009] According to another aspect of the present application, a disk attenuation detection device is provided, characterized in that it comprises:

[0010] a data acquisition module configured to obtain at least one current disk performance data of a target disk collected by a preset number of current sampling points in a current sampling period;

[0011] a data comparison module configured to compare each current disk performance data with each historical disk performance data corresponding to a previous sampling point in a previous sampling period;

[0012] an attenuation detection module configured to detect the attenuation of the target disk according to the comparison result.

[0013] According to another aspect of the present application, an electronic device is provided, comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the disk decay detection method according to any embodiment of this application.

[0017] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the disk decay detection method according to any embodiment of this application.

[0018] According to another aspect of this application, a computer program product is provided, the computer program product including a computer program that, when executed by a processor, implements the disk decay detection method according to any embodiment of this application.

[0019] In the technical solution of this application embodiment, the disk performance data of the target disk is periodically sampled, and the disk performance data sampled in adjacent periods are compared. It is understood that the current sampling period and the previous sampling period are consecutive, and each current sampling period is compared with the previous sampling period, ensuring the continuity of disk performance degradation detection. Furthermore, through periodic and continuous sampling and detection, the degradation of the target disk can be stably monitored, ensuring the accuracy of disk degradation detection. At the same time, automating the detection process improves the efficiency of disk detection.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart of a disk decay detection method according to Embodiment 1 of this application;

[0023] Figure 2This is a flowchart of a disk decay detection method according to Embodiment 2 of this application;

[0024] Figure 3 This is a schematic diagram of a disk decay detection device according to Embodiment 3 of this application;

[0025] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the disk decay detection method of the embodiments of this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This application provides a flowchart of a disk degradation detection method according to Embodiment 1. This embodiment is applicable to detecting the degradation of disk performance. The method can be executed by a disk degradation detection device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0030] S110. Obtain at least one current disk performance data of the target disk collected from a preset number of current sampling points in the current sampling period.

[0031] The target disk can be any disk requiring performance degradation detection, such as a mechanical hard drive or a solid-state drive, or a disk corresponding to a centralized or distributed database. This embodiment is applicable to different types of disks. The current sampling period can be the period in which performance degradation detection of the target disk is prepared. Disk performance data can be the performance data obtained by detecting the performance parameters of the target disk at each sampling point in each period. The current disk performance data corresponds to the various performance data of the disk sampled in the current sampling period. Disk performance data can include reads per second, writes per second, data read per second, data write per second, average response time for read requests, and average response time for write requests, etc., which are not limited in this embodiment.

[0032] The current sampling point can be any sampling point in the current sampling period used to collect disk performance data. It can be divided according to a time scale, for example, sampling once every minute is recorded as one sampling point. There can be 60 sampling points in one hour, and if a sampling period is 5 hours, there can be 300 sampling points in one sampling period. Correspondingly, the current sampling points for the preset data can be a division based on a quantity scale, such as taking 60 sampling points per hour, etc. The final sampling method can be the same.

[0033] Specifically, taking a 5-hour sampling period as an example, the current sampling period is pre-defined to be divided into 300 sampling points, meaning one sampling point is recorded per minute. Each sampling point collects performance data of the target disk, including read counts per second, write counts per second, data volume read per second, data volume write per second, average response time for read requests, and average response time for write requests. The disk performance data can be collected through preset network points or actual testing equipment. This application embodiment does not limit the method of acquiring disk performance data.

[0034] S120. Compare the current disk performance data with the historical disk performance data corresponding to the sampling points in the previous sampling period.

[0035] The current disk performance data sampled at each sampling point in the current sampling period is compared with the historical disk performance data sampled at the sampling points in the previous sampling period to obtain the comparison results. It should be noted that there are various ways to compare these two data. For example, a one-to-one comparison mode can be used with sampling points of the same sequence number in different periods, or the average value can be calculated and then the average value of disk performance data collected in different periods can be compared. This application embodiment does not limit the method.

[0036] S130. Based on the comparison results, detect the degradation of the target disk.

[0037] Understandably, based on the comparison results in the aforementioned steps, if the current disk performance data collected in the current sampling period is generally worse than the historical disk performance data collected in the previous sampling period (though the performance difference may be within a certain range), this indicates to some extent that the disk is deteriorating.

[0038] In the technical solution of this application embodiment, the disk performance data of the target disk is periodically sampled, and the disk performance data sampled in adjacent periods are compared. It is understood that the current sampling period and the previous sampling period are consecutive, and each current sampling period is compared with the previous sampling period, ensuring the continuity of disk performance degradation detection. Furthermore, through periodic and continuous sampling and detection, the degradation of the target disk can be stably monitored, ensuring the accuracy of disk degradation detection. At the same time, automating the detection process improves the efficiency of disk detection.

[0039] In one alternative implementation, the average performance data of each historical disk performance data in the same sampling period is taken to obtain the average performance value.

[0040] The process of detecting the degradation of the target disk based on the comparison results described in S130 may include: for any current sampling point, comparing the current disk performance data with all historical disk performance data and the average performance in the previous sampling period to obtain a first comparison result; and determining the degradation of the target disk based on the first comparison result.

[0041] The average performance value can be the average of the performance data of various disk types across all sampling points within a sampling period. The first comparison result is used to characterize the comparison results performed in this embodiment.

[0042] Specifically, the first step is to calculate the average values ​​of various disk performance data collected across all completed sampling periods. For example, this includes calculating the average number of reads per second, the average number of writes per second, the average data volume read per second, the average data volume written per second, the average response time for read requests, and the average response time for write requests for each sampling period. These average values ​​are used as the basis for comparison. The disk performance data collected at all current sampling points in the current sampling period is compared with the average performance data from the previous sampling period. The comparison results can be used to characterize disk degradation. For example, if the disk performance data at all current sampling points is worse than the average performance data from the previous sampling period, it indicates disk degradation. Specific difference thresholds can be set; exceeding these thresholds indicates severe degradation, requiring timely intervention.

[0043] In the above embodiments, by taking the average value of historical disk performance data as a comparison basis, a reasonable and feasible way to detect whether disk performance has deteriorated is provided, which helps to solve the problem of automated degradation detection and helps to improve the efficiency of detecting disk performance degradation.

[0044] In a further optional embodiment, the method may further include: obtaining the average performance of a preset number of consecutive historical sampling periods before the current sampling period to form a performance average reference set; for any current sampling point, comparing the current disk performance data with the performance average reference set to obtain a second comparison result; and determining the degradation status of the target disk based on the second comparison result.

[0045] The performance average reference set can be a set composed of the performance averages of multiple consecutive historical sampling periods preceding the current sampling period. The second comparison result is used to characterize the comparison result in this embodiment.

[0046] For any sampling point in the current sampling period, the current disk performance data at that sampling point can be compared with the average values ​​in the performance average reference set. It's understood that the performance average reference set contains the average values ​​of disk performance data from multiple historical sampling periods. Comparing this set with these average values ​​reflects whether the target disk's performance in the current sampling period is worse than its performance in multiple historical periods, thus defining the target disk's performance degradation. For example, the 50 performance average values ​​from the previous 50 consecutive sampling periods can be compiled into a set for comparison of each current disk performance data point in the current sampling period. If it is found that the current disk performance at multiple consecutive sampling points is worse than all performance average values ​​in the performance average reference set, then it can be determined that the target disk has experienced performance degradation.

[0047] In a specific example, firstly, data from the first period (e.g., 5 hours) is collected as baseline data (to see if the data collected in subsequent periods is worse than the data from the previous period). Every minute, six values ​​are collected: r / s (reads per second), w / s (writes per second), rkb / s (reads per second), wkb / s (writes per second), r_await (average response time for read requests), and w_await (average response time for write requests). This is repeated 300 times. After 300 samplings, the average of these 300 sampling points is calculated for comparison in the next period. Thus, the first period has a total of 301 sampling points.

[0048] At the start of the second cycle, the sampling points collected every minute within each cycle are compared cyclically with 300 sampling points of the first cycle and the average performance of all consecutive N cycles before the current cycle. If a certain sampling point in the current cycle meets the conditions:

[0049] r / s < r / s_n (r / s_n can be the number of reads per second of all sampling points in the previous cycle being compared, or the average number of reads per second);

[0050] and w / s < w / s_n (w / s_n can be the number of writes per second of all sampling points in the previous cycle being compared, or the average number of writes per second);

[0051] and rkb / s < rkb / s_n (rkb / s_n can be the amount of data read per second of all sampling points in the previous cycle being compared, or the average amount of data read per second);

[0052] and wkb / s < wkb / s_n (wkb / s_n can be the amount of data written per second of all sampling points in the previous cycle being compared, or the average amount of data written per second);

[0053] and r_await > r_await_n × X (r_await_n can be the average response time of read requests of all sampling points in the previous cycle being compared, or the average of the average response times of read requests);

[0054] and w_await > w_await_n × X (w_await_n can be the average response time of read requests of all sampling points in the previous cycle being compared, or the average of the average response times of read requests. The coefficient X can be pre-set by those skilled in the relevant field according to specific circumstances, for example, it can be 2).

[0055] If the above conditions are met, it indicates that this sampling point within this sampling cycle is abnormal. If there are 3 consecutive abnormal sampling points, it is considered that the disk performance checked in this cycle is abnormal, and an alarm is given for the abnormal situation; if there are no 3 consecutive abnormal sampling points, it is considered that the disk in this cycle is normal.

[0056] This periodic testing continues until the 51st cycle. The first sampling point of the current cycle is compared cyclically with the 350 sampling points retained from the 50th cycle (including the 300 sampling points normally collected in the 50th cycle and the average of the 300 sampling points from each of the previous 50 cycles). After comparing each sampling point in the 50th cycle with the sampling points retained from the previous cycle, the 51st cycle normally collects 300 sampling points, calculates the average of these 300 sampling points, discards the average of the 300 sampling points from the first cycle, and maintains the average of a total of 50 cycles of 300 sampling points. In other words, regardless of the current sampling cycle, the performance average of the previous 50 consecutive sampling cycles is always used as the basis for comparison.

[0057] Example 2

[0058] Figure 2 This is a flowchart of a disk decay detection method provided in Embodiment 2 of this application. This embodiment provides another detection method for disk decay based on the aforementioned embodiments. It should be noted that the previous sampling point includes the same-sequence sampling point; the sampling sequence number of the current sampling point in the current sampling period is the same as the sampling sequence number of the same-sequence sampling point in the previous sampling period; and the number of sampling points is the same in different sampling periods, and the time interval between synchronous sampling points is the same. That is, if the current sampling point is the 10th point in the current sampling period, then the same-sequence sampling point was also the 10th point in the previous sampling period.

[0059] like Figure 2 As shown, the details are as follows:

[0060] S210. Obtain at least one current disk performance data of the target disk collected from a preset number of current sampling points in the current sampling period.

[0061] S220. Compare the current disk performance data with the historical disk performance data corresponding to the sampling points in the previous sampling period.

[0062] S230. Based on the comparison results, determine whether there are any discrepancies between the current disk performance data corresponding to consecutive current sampling points and the historical disk performance data corresponding to the same sampling points that meet the preset attenuation detection conditions.

[0063] It is understood that the current sampling point and the sequential sampling point have the same order in their respective sampling periods. Each sampling point in the current sampling period is compared with the sequential sampling point in the previous sampling period to determine the difference in disk performance data between each sampling point in the two sampling periods. The attenuation detection condition can be a rule for judging the difference in disk performance data between the current sampling point and the previous sampling point. The disk performance data of each sampling point in the two sampling periods is compared one-to-one to identify whether there are multiple consecutive sampling points that meet the attenuation detection condition. Of course, this attenuation detection condition can be set by those skilled in the art according to specific circumstances, and this application embodiment does not limit it.

[0064] S240. Based on the judgment result, determine the degradation status of the target disk.

[0065] In one optional implementation, determining the degradation status of the target disk based on the judgment result in S240 may include: determining that the target disk degradation is abnormal in response to the existence of a preset number of consecutive current sampling points that meet the degradation detection condition; wherein, the degradation detection condition is that the current disk performance data corresponding to the current sampling point is worse than the historical disk performance data corresponding to the same sequence sampling point.

[0066] Understandably, an allowable attenuation range can be set for the attenuation detection conditions. Taking reads per second (LPS) as an example, if the LPS collected in the current sampling point is less than that in the previous sampling point, the pre-set allowable attenuation range for LPS is 1. That is, if the LPS in the current sampling point is less than 1 LPS compared to the previous sampling point, it can be determined that the target disk is within the allowable attenuation level. If the LPS in the current sampling point is more than 1 LPS compared to the previous sampling point, it can be determined that the attenuation level of the target disk is unreasonable and there may be a high attenuation risk. If there are three consecutive sampling points with high attenuation risk, an alarm is triggered. Understandably, slow attenuation of the disk is possible during use. Therefore, the solution in this application embodiment not only needs to identify attenuation but also abnormal attenuation.

[0067] In a further optional implementation, disk performance data includes reads per second, writes per second, data read per second, data write per second, average response time for read requests, and average response time for write requests.

[0068] Correspondingly, the current disk performance data corresponding to each sampling point is worse than the historical disk performance data corresponding to the same sampling points, which may include:

[0069] The number of reads per second for the current sampling point is less than the number of reads per second for the sampling points in the same order;

[0070] The number of writes per second corresponding to the current sampling point is less than the number of writes per second corresponding to the sampling point in the same order;

[0071] The amount of data read per second for the current sampling point is less than the amount of data read per second for the same-sequence sampling point;

[0072] The amount of data written per second for the current sampling point is less than the amount of data written per second for the same sampling point;

[0073] The average response time of the read request corresponding to the current sampling point is greater than a preset multiple of the average response time of the read request corresponding to the same sampling point;

[0074] The average response time of write requests corresponding to the current sampling point is greater than a preset multiple of the average response time of write requests corresponding to the same sampling point.

[0075] In the technical solution of this application embodiment, by comparing the disk performance data of sampling points with the same sampling sequence number in different sampling periods, it is possible to identify whether the disk is decaying normally, and to promptly detect any potential dangerous decay, thus providing a guarantee for timely repair for users.

[0076] Example 3

[0077] Figure 3 This is a schematic diagram of a disk decay detection device provided in Embodiment 3 of this application. Figure 3 As shown, the device 300 includes:

[0078] Data acquisition module 310 is used to acquire at least one current disk performance data of the target disk collected from a preset number of current sampling points in the current sampling period;

[0079] The data comparison module 320 is used to compare the current disk performance data with the historical disk performance data corresponding to the sampling points of the previous sampling period.

[0080] The attenuation detection module 330 is used to detect the attenuation of the target disk based on the comparison results.

[0081] In the technical solution of this application embodiment, the disk performance data of the target disk is periodically sampled, and the disk performance data sampled in adjacent periods are compared. It is understood that the current sampling period and the previous sampling period are consecutive, and each current sampling period is compared with the previous sampling period, ensuring the continuity of disk performance degradation detection. Furthermore, through periodic and continuous sampling and detection, the degradation of the target disk can be stably monitored, ensuring the accuracy of disk degradation detection. At the same time, automating the detection process improves the efficiency of disk detection.

[0082] In one optional implementation, the previous sampling point includes the same-sequence sampling point; the sampling sequence number of the current sampling point in the current sampling period is the same as the sampling sequence number of the same-sequence sampling point in the previous sampling period; and the number of sampling points is the same in different sampling periods, and the time interval between synchronous sampling points is the same.

[0083] The attenuation detection module 330 may include:

[0084] Based on the comparison results, determine whether there are differences between the current disk performance data corresponding to consecutive current sampling points and the historical disk performance data corresponding to the same sampling points that meet the preset attenuation detection conditions.

[0085] The attenuation judgment unit is used to determine the attenuation status of the target disk based on the judgment result.

[0086] In one optional implementation, the attenuation determination unit may specifically include:

[0087] In response to the existence of a preset number of consecutive current sampling points that meet the attenuation detection condition, the target disk is determined to be attenuated abnormally; wherein, the attenuation detection condition is that the current disk performance data corresponding to the current sampling point is worse than the historical disk performance data corresponding to the same sampling point.

[0088] In one alternative implementation, disk performance data includes reads per second, writes per second, data read per second, data written per second, average response time for read requests, and average response time for write requests.

[0089] Accordingly, the attenuation determination unit may include:

[0090] The read count per second judgment subunit is used when the read count per second corresponding to the current sampling point is less than the read count per second corresponding to the sampling point in the same order.

[0091] The write count per second judgment subunit is used when the write count per second corresponding to the current sampling point is less than the write count per second corresponding to the sampling point in the same order.

[0092] The data read per second judgment subunit is used when the data read per second corresponding to the current sampling point is less than the data read per second corresponding to the sampling point in the same order.

[0093] The data write per second judgment subunit is used when the data write per second corresponding to the current sampling point is less than the data write per second corresponding to the sampling point in the same order.

[0094] The read response judgment subunit is used to determine if the average response time of the read request corresponding to the current sampling point is greater than a preset multiple of the average response time of the read request corresponding to the same sampling point.

[0095] The write response judgment subunit is used to determine if the average response time of the write request corresponding to the current sampling point is greater than a preset multiple of the average response time of the write request corresponding to the same sampling point.

[0096] In one alternative implementation, the average performance data of each historical disk performance data in the same sampling period is taken to obtain the average performance value.

[0097] The attenuation detection module 330 may include:

[0098] The first comparison unit is used to compare the current disk performance data with all historical disk performance data and the performance average in the previous sampling period for any current sampling point, and obtain the first comparison result.

[0099] The first attenuation determination unit is used to determine the attenuation of the target disk based on the first comparison result.

[0100] In another embodiment, the attenuation detection module 330 may further include:

[0101] Multiple average value acquisition units are used to acquire the performance average value of a preset number of consecutive historical sampling periods before the current sampling period, forming a performance average value reference set;

[0102] The second comparison unit is used to compare the current disk performance data with the performance average reference set for any current sampling point to obtain the second comparison result;

[0103] The second attenuation determination unit is used to determine the attenuation of the target disk based on the second comparison result.

[0104] The disk decay detection device provided in this application embodiment can execute the disk decay detection method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing each disk decay detection method.

[0105] Example 4

[0106] Figure 4 A schematic diagram of an electronic device 10, which can be used to implement embodiments of this application, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0107] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0108] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0109] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as disk decay detection methods.

[0110] In some embodiments, the disk decay detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the disk decay detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the disk decay detection method by any other suitable means (e.g., by means of firmware).

[0111] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] Computer programs used to implement the methods of this application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0113] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0115] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0116] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0117] This application also discloses a computer program product, which includes a computer program that, when executed by a processor, implements the disk decay detection method provided in any embodiment of this application. This program product shares the same inventive concept as the disk decay detection methods disclosed in the embodiments of this application, and therefore will not be described in detail here.

[0118] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this application can be achieved, and this is not limited herein.

[0119] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for detecting disk decay, characterized in that, include: Acquire at least one current disk performance data of the target disk collected from a preset number of current sampling points in the current sampling period; Compare the current disk performance data with the historical disk performance data corresponding to the sampling points in the previous sampling period; Based on the comparison results, the degradation of the target disk is detected.

2. The method according to claim 1, characterized in that, The previous sampling point includes the same-sequence sampling point; the sampling sequence number of the current sampling point in the current sampling period is the same as the sampling sequence number of the same-sequence sampling point in the previous sampling period; and the number of sampling points is the same in different sampling periods, and the time interval between synchronous sampling points is the same. The step of detecting the degradation of the target disk based on the comparison results includes: Based on the comparison results, determine whether there are any differences between the current disk performance data corresponding to consecutive current sampling points and the historical disk performance data corresponding to the same sampling points that meet the preset attenuation detection conditions. Based on the judgment result, the degradation status of the target disk is determined.

3. The method according to claim 2, characterized in that, Determining the attenuation status of the target disk based on the judgment result includes: In response to the existence of a preset number of consecutive current sampling points that meet the attenuation detection condition, the target disk is determined to have abnormal attenuation. The attenuation detection condition is that the current disk performance data corresponding to the current sampling point is worse than the historical disk performance data corresponding to the same sampling point.

4. The method according to claim 3, characterized in that, Disk performance data includes reads per second, writes per second, data read per second, data write per second, average response time for read requests, and average response time for write requests. Correspondingly, the current disk performance data corresponding to each current sampling point is worse than the historical disk performance data corresponding to each sampling point in the same order, including: The number of reads per second corresponding to the current sampling point is less than the number of reads per second corresponding to the same-sequence sampling point; The number of writes per second corresponding to the current sampling point is less than the number of writes per second corresponding to the same-sequence sampling point; The amount of data read per second corresponding to the current sampling point is less than the amount of data read per second corresponding to the same-sequence sampling point; The amount of data written per second corresponding to the current sampling point is less than the amount of data written per second corresponding to the same-sequence sampling point; The average response time of the read request corresponding to the current sampling point is greater than a preset multiple of the average response time of the read request corresponding to the same sampling point; The average response time of the write request corresponding to the current sampling point is greater than a preset multiple of the average response time of the write request corresponding to the same sampling point.

5. The method according to any one of claims 1-4, characterized in that, The average performance data is obtained by averaging the historical disk performance data in the same sampling period. The step of detecting the degradation of the target disk based on the comparison result includes: For any current sampling point, the current disk performance data is compared with all historical disk performance data in the previous sampling period and the performance average to obtain a first comparison result; Based on the first comparison result, the degradation status of the target disk is determined.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the average performance value of a preset number of consecutive historical sampling periods before the current sampling period, and form a performance average value reference set; For any current sampling point, the current disk performance data is compared with the performance average reference set to obtain a second comparison result; Based on the second comparison result, the degradation status of the target disk is determined.

7. A disk decay detection device, characterized in that, include: The data acquisition module is used to acquire at least one type of current disk performance data of the target disk collected from a preset number of current sampling points in the current sampling period; The data comparison module is used to compare the current disk performance data with the historical disk performance data corresponding to the sampling points in the previous sampling period. The attenuation detection module is used to detect the attenuation of the target disk based on the comparison results.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the disk decay detection method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the disk decay detection method according to any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the disk decay detection method according to any one of claims 1-6.