Verification frequency determination method and device based on device score, device and medium

By dynamically adjusting the verification frequency of storage devices in Ceph cluster based on device scoring, the problem that the prior art cannot meet the verification requirements of different device types is solved, and the effect of matching verification frequency with device performance is achieved.

CN119537120AActive Publication Date: 2025-02-28RD DATA TECH (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510092724.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-02-28
Estimated Expiration
2045-01-21

AI Technical Summary

Technical Problem

The prior art cannot dynamically adjust the verification frequency according to the performance requirements of different storage devices, resulting in the inability to meet the verification requirements of different device types in Ceph clusters.

Method used

Through a device scoring method, the security score and device performance level of the storage device are determined, and the corresponding verification frequency is obtained according to the device performance level to dynamically adjust the verification frequency of the storage device.

Benefits of technology

The verification frequency is matched with the operation of the storage device, so that the verification requirements of each storage device in the Ceph cluster can be met, and the efficiency and accuracy of data integrity verification are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537120A_ABST
    Figure CN119537120A_ABST
Patent Text Reader

Abstract

The invention discloses a verification frequency determination method and device based on a device score, equipment and a medium. The method comprises the following steps: determining a security score of a storage device based on a device type of the storage device in a Ceph cluster; determining a device performance level of the storage device based on the security score; and obtaining a verification frequency corresponding to the equipment performance grade, and taking the obtained verification frequency as the verification frequency of the storage equipment. According to the method, the device score of the storage device is determined based on the device type, the device performance grade is determined based on the device score, and finally the verification frequency of each storage device is determined based on the device performance grade, so that the verification frequency is matched with the operation condition of the storage device, and the verification requirement of each storage device in the Ceph cluster can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Ceph clusters, and in particular to a method, apparatus, device and medium for determining a verification frequency based on device scoring. Background Art

[0002] Ceph is a distributed storage system that has the characteristics of reliability, intelligence, and distribution. It realizes high reliability, high scalability, high performance, high automation, and ultimately stores user data. A variety of storage devices are connected to the Ceph cluster, such as mechanical hard disks, NAND flash memory, etc. However, the stability and reliability of the storage devices connected to the Ceph cluster are different, so it is necessary to verify the data integrity of the storage devices connected to the Ceph cluster. At present, the data integrity of the storage device is generally verified by a global verification method. However, the existing method treats all connected storage devices equally, so that the verification frequency of all storage devices is the same, and the device performance presented by different storage devices during use will be different, which will result in different verification frequency requirements for different storage devices. Therefore, the existing method cannot meet the needs of Ceph clusters connected to storage devices of different device types.

[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a method, device, equipment and medium for determining the calibration frequency based on device scoring in view of the deficiencies in the prior art.

[0005] In order to solve the above technical problems, the first aspect of the present application provides a method for determining the check frequency based on device scoring, which is applied to a Ceph cluster. The method for determining the check frequency based on device scoring specifically includes: Determine the security score of the storage device based on the device type of the storage device in the Ceph cluster; Determining a device performance level of the storage device based on the security score; A verification frequency corresponding to the device performance level is obtained, and the obtained verification frequency is used as the verification frequency of the storage device.

[0006] The method for determining the verification frequency based on device scoring, wherein after the obtained verification frequency is used as the verification frequency of the storage device, the method further includes: When monitoring a write operation of the storage device, performing a verification operation on the storage device; Starting with the verification operation and taking the write operation as a trigger condition, a verification operation is performed on the storage device according to the verification frequency.

[0007] The method for determining the verification frequency based on the device score, wherein the determining the device performance level of the storage device based on the security score specifically includes: Detecting whether the security score meets preset requirements; When the security score meets the preset requirements, determining the device performance level of the storage device according to the corresponding relationship between the security score and the device performance level; When the security score does not meet the preset requirement, performing a verification operation on the storage device; If the verification operation passes, setting the device performance level of the storage device to the minimum device performance level; If the verification fails, it indicates that the storage device is abnormal.

[0008] The method for determining the verification frequency based on device scoring, wherein determining the security score of the storage device based on the device type of the storage device in the Ceph cluster specifically includes: Determine an initial security score for the storage device based on the device type of the storage device in the Ceph cluster; Obtaining an IO response time of the storage device, and determining an operation score of the storage device based on the IO response time; A security score for the storage device is determined based on the initial security score and the operational score.

[0009] In the method for determining the verification frequency based on device scoring, the step of obtaining the IO response time of the storage device specifically includes: Record the IO response time of the storage device within a preset time period; The average of all recorded IO response times is calculated to obtain an IO response average, and the IO response average is used as the IO response time of the storage device.

[0010] The method for determining the verification frequency based on device scoring, wherein before determining the security score of the storage device based on the device type of the storage device in the Ceph cluster, the method further includes: Periodically monitor the cluster load of the Ceph cluster; If the monitored cluster load is greater than the a priori cluster load, an operation of determining a security score of the storage device based on the device type of the storage device in the Ceph cluster is performed.

[0011] The method for determining the calibration frequency based on the equipment score, wherein the step of obtaining the calibration frequency corresponding to the equipment performance level specifically includes: comparing the device performance level to a device performance level threshold; If the device performance level is higher than the device performance level threshold, the default verification frequency is used as the verification frequency of the storage device, where the default verification frequency is the interval time between two verification operations.

[0012] If the device performance level is lower than or equal to the device performance level threshold, the verification frequency of the storage device is determined based on a preset relationship table, wherein the verification frequency in the preset relationship table is the number of interval write operations between two verification operations.

[0013] A second aspect of the present application provides a device for determining a calibration frequency based on a device score, wherein the device for determining a calibration frequency based on a device score specifically includes: A first determination module, configured to determine a security score of a storage device based on a device type of the storage device in the Ceph cluster; A second determination module, configured to determine a device performance level of the storage device based on the security score; The acquisition module is used to acquire the verification frequency corresponding to the performance level of the device, and use the acquired verification frequency as the verification frequency of the storage device.

[0014] A third aspect of the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in any of the above-mentioned methods for determining the verification frequency based on device scoring.

[0015] A fourth aspect of the present application provides a terminal device, comprising: a processor and a memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the processor implements the steps in any of the above-mentioned methods for determining the verification frequency based on the device score.

[0016] Beneficial effects: Compared with the prior art, the present application provides a method, apparatus, device and medium for determining the verification frequency based on device score, the method comprising determining the security score of the storage device based on the device type of the storage device in the Ceph cluster; determining the device performance level of the storage device based on the security score; obtaining the verification frequency corresponding to the device performance level, and using the obtained verification frequency as the verification frequency of the storage device. The present application determines the device score of the storage device based on the device type, determines the device performance level based on the device score, and finally determines the verification frequency of each storage device based on the device performance level, so that the verification frequency matches the operation status of the storage device, thereby meeting the verification requirements of each storage device in the Ceph cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A flowchart of a method for determining a calibration frequency based on device scoring provided in an embodiment of the present application.

[0019] Figure 2 FIG. 5 is a schematic diagram of a specific flow chart of step S30 .

[0020] Figure 3 A functional block diagram of a device for determining a calibration frequency based on device scoring provided in an embodiment of the present application.

[0021] Figure 4 A functional block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application provide a method, device, equipment and medium for determining the calibration frequency based on device scoring. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0023] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0024] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0025] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0026] After research, it was found that Ceph is a distributed storage system with reliable, intelligent, and distributed characteristics. It realizes high reliability, high scalability, high performance, high automation, and ultimately stores user data. A variety of storage devices are connected to the Ceph cluster, such as mechanical hard disks, NAND flash memory, etc. However, the stability and reliability of the storage devices connected to the Ceph cluster are different, so it is necessary to verify the data integrity of the storage devices connected to the Ceph cluster. At present, the data integrity of the storage device is generally verified by a global verification method. However, the existing method treats all connected storage devices equally, so that the verification frequency of all storage devices is the same, and the device performance presented by different storage devices during use will be different, which will make the verification frequency requirements of different storage devices different. As a result, the existing method cannot meet the needs of Ceph clusters connected to storage devices of different device types.

[0027] In order to solve the above problems, in an embodiment of the present application, the security score of the storage device is determined based on the device type of the storage device in the Ceph cluster; the device performance level of the storage device is determined based on the security score; the verification frequency corresponding to the device performance level is obtained, and the obtained verification frequency is used as the verification frequency of the storage device. The present application determines the device score of the storage device based on the device type, determines the device performance level based on the device score, and finally determines the verification frequency of each storage device based on the device performance level, so that the verification frequency matches the operation status of the storage device, thereby meeting the verification requirements of each storage device in the Ceph cluster.

[0028] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.

[0029] This embodiment provides a method for determining the calibration frequency based on device scoring, such as Figure 1 As shown, the method includes: S10. Determine a security score of the storage device based on the device type of the storage device in the Ceph cluster.

[0030] Specifically, Ceph is a distributed storage system that can provide capacity expansion without affecting services and support multiple workloads with high IO performance. The Ceph cluster is connected to several storage devices, such as flash memory and high-speed hard disks. When determining the security score of the storage device based on the device type of the storage device in the Ceph cluster, it can be for each storage device in the Ceph cluster, the security score of each storage device is determined, and it can be for a specified storage device in the Ceph cluster, the security score of the specified storage device is determined.

[0031] The trigger operation for determining the security score may be formed based on a user request or based on the cluster state of the Ceph cluster. In one implementation, the trigger operation for determining the security score is formed based on the cluster state of the Ceph cluster. Specifically, before determining the security score of the storage device based on the device type of the storage device in the Ceph cluster, the method further includes: Periodically monitor the cluster load of the Ceph cluster; If the monitored cluster load is greater than the a priori cluster load, an operation of determining a security score of the storage device based on the device type of the storage device in the Ceph cluster is performed.

[0032] Specifically, the interval duration of periodically monitoring the cluster load of the Ceph cluster can be pre-set or determined based on the a priori cluster load, wherein the a priori cluster load can also be pre-set or determined based on the historical cluster load. In an embodiment of the present application, the interval duration is determined based on the a priori cluster load, and the interval duration determination process can be: after monitoring the cluster load, if the cluster load is greater than the a priori cluster load, the interval duration is set to the default duration, if the cluster load is less than or equal to the a priori cluster load, the interval duration corresponding to the cluster load monitored at the current moment is determined according to the correspondence between the preset cluster load and the interval duration, and the cluster load of the Ceph cluster is monitored after the interval duration, so that the interval duration is adjusted based on the cluster load, the execution time of the operation of determining the security score of the storage device based on the device type of the storage device in the Ceph cluster can be accurately known, and the verification frequency of the storage device can be quickly and accurately updated so that the verification frequency matches the device performance level of the storage device, and the data integrity of the storage device can be verified more timely.

[0033] Furthermore, the a priori cluster load is determined based on the historical cluster load. Specifically, the a priori cluster load can be the cluster load monitored at the previous detection moment before the current moment, or it can be the maximum value of the cluster loads monitored at a preset number of monitoring moments before the current monitoring moment, or it can be the average value of the cluster loads monitored at a preset number of monitoring moments before the current monitoring moment, etc.

[0034] The device type is used to reflect the access type of the storage device. The device type can include local devices and network devices. The initial security score corresponding to the local device is higher than the initial security score corresponding to the network device. Of course, in actual applications, local devices and network devices can be used as two device type classes, and each device type class also includes sub-device types. For example, both device type classes include block devices, flash memory, encrypted hard disks, and other non-standard devices. When configuring the initial security score for the device type, you can first configure the initial security score for the two device type classes separately, and then configure the initial security score for each sub-device type. In this way, when obtaining the device type, you can first obtain the device type class corresponding to the storage device, and then obtain the sub-device type corresponding to the storage device.

[0035] Exemplarily, determining the security score of the storage device based on the device type of the storage device in the Ceph cluster specifically includes: Determine an initial security score for the storage device based on the device type of the storage device in the Ceph cluster; Obtaining an IO response time of the storage device, and determining an operation score of the storage device based on the IO response time; A security score for the storage device is determined based on the initial security score and the operational score.

[0036] Specifically, the initial security score is the device score corresponding to the device type, and the operation score is the operation performance score determined based on the IO response time of the storage device. The security score is the overall score of the storage device under the current operation performance, which is used to reflect the overall device status of the storage device. Among them, the initial security score can be the initial security score configured for the device type, or it can be determined based on the initial security score configured for the device type and the user-set score corresponding to the storage device. For example, it can be the minimum value between the initial security score and the user-set score, or the average of the initial security score and the user-set score, or the weighted value of the initial security score and the user-set score. The initial security score can be determined based on the initial security score of the device type class to which the device type belongs, or it can be determined based on the initial security score of the device type class to which the device type belongs and the initial security score of the sub-device type corresponding to the storage device in the device type class, for example, the product of two initial security scores, etc.

[0037] Furthermore, the IO response time is the response time of processing an IO operation, and the IO response time can reflect the response performance of the storage device. The IO response time at the current moment can be directly obtained, or the average response time of all IO operations of a preset duration can be obtained.

[0038] In one implementation, obtaining the IO response time of the storage device specifically includes: S21, obtaining the IO response time of the storage device within a preset time length; S22: Calculate the average of all recorded IO response times to obtain an IO response average, and use the IO response average as the IO response time of the storage device.

[0039] Specifically, the preset duration is pre-set, and when obtaining the IO response time within the preset duration of the storage device, the current moment can be used as the starting moment to record the IO response time of each IO operation within the future preset duration, or the current moment can be used as the end moment to read the IO response time of each IO operation within the historical preset duration. In an embodiment of the present application, the number of historical IO operations of the storage device and the IO response time of each historical IO operation within the preset duration are continuously recorded. To this end, when obtaining the IO response time within the preset duration of the storage device, the recorded number of historical IO operations and the IO response time of each historical IO operation can be read, and then the IO response mean of the historical IO operations is calculated based on the number of historical IO operations and the IO response time of each historical IO operation to obtain the IO response time of the storage device.

[0040] Further, after obtaining the IO response time of the storage device, the operation score of the storage device is determined based on the IO response time of the storage device, and the operation score is used to reflect the operation status of the storage device, wherein the operation score is inversely proportional to the IO response time, that is, the shorter the IO response time, the more stable the operation status of the storage device, and the larger the operation score, and vice versa, the longer the IO response time, the more unstable the operation status of the storage device, and the smaller the operation score, and even when the IO response time is greater than the preset time threshold, the operation score can be set to negative, so that the verification of the storage device can be quickly triggered. Among them, when determining the operation score based on the IO response time, several IO response time periods can be pre-set, and an operation score can be configured for each IO response time period. After obtaining the IO response time of the storage device, the IO response time period in which the IO response time is located can be determined, and then the operation score corresponding to the IO response time period is used as the operation score corresponding to the IO response time. Alternatively, an inverse proportional relationship between the IO response time and the operation score may be set. After the IO response time is obtained, the IO response time is compared with a preset IO response time threshold. If the IO response time is greater than the preset IO response time threshold, the negative operation score is directly used as the operation score corresponding to the IO response time. If the IO response time is less than or equal to the preset IO response time threshold, a positive operation score is determined based on the inverse proportional relationship, and the positive operation score is used as the operation score corresponding to the IO response time.

[0041] S20. Determine a device performance level of the storage device based on the security score.

[0042] Specifically, the device performance level is used to reflect the device stability of the storage device, which is used to determine the verification frequency of the storage device. The device performance level can be determined based on the corresponding relationship between the security score and the device performance level. For example, the corresponding relationship between the security score and the device performance level is pre-set, and when the security score is obtained, the device performance level of the storage device is determined based on the corresponding relationship.

[0043] However, in actual applications, there may be a storage device that has an abnormality, and for the storage device that has an abnormality, there is no need to determine its verification frequency, but an abnormality prompt or verification can be performed. Based on this, in one implementation, determining the device performance level of the storage device based on the security score specifically includes: Detecting whether the security score meets preset requirements; When the security score meets the preset requirements, determining the device performance level of the storage device according to the corresponding relationship between the security score and the device performance level; When the security score does not meet the preset requirements, a verification operation is performed on the storage device. If the verification operation passes, the device performance level of the storage device is set to the lowest device performance level. If the verification fails, a prompt is given that the storage device is abnormal.

[0044] Specifically, the preset requirement is pre-set, and the preset requirement may be that the security score is greater than or equal to a preset score threshold, wherein the preset score threshold may be an average value of the security scores of the preset number of security scores, etc. Alternatively, the preset requirement may be that the security score is greater than the difference between the previous security score, or that the security score is less than the previous security score and the difference between the previous security score and the security score is less than the preset difference threshold. In this way, by using the difference between the previous security score and the security score as the preset requirement, it is possible to determine whether the storage device is operating normally on the one hand, and whether the storage device is operating smoothly on the other hand. When the operation of the storage device fluctuates greatly, the storage device is directly verified, so that the abnormality of the storage device can be discovered more timely.

[0045] Furthermore, when the security score meets the preset requirements, it means that the device performance level can be determined based on the security score. Conversely, when the security score does not meet the preset requirements, it means that the device performance cannot be determined based on the security score, and it is necessary to directly perform a verification operation on the storage device, and then determine whether to determine the device performance level of the storage device based on the verification result obtained by the verification operation. Specifically, if the verification operation passes, it means that the data integrity of the storage device meets the requirements, but because the security score does not meet the preset requirements, the minimum device performance level is set for the storage device; if the verification operation fails, it means that the data integrity of the storage device does not meet the requirements, and the storage device is prompted to be abnormal. Before prompting the storage device abnormality, you can also try to repair the storage device first. If the repair is successful, the minimum device performance level is set for the storage device.

[0046] The correspondence between the security score and the device performance level can be preset, wherein the correspondence can be that if the security score is greater than the first security score threshold, the corresponding device performance level is level one, i.e., the stability of the storage device is very high; if the security score is between the first security score threshold and the second security score threshold, the corresponding device performance level is level two, i.e., the stability of the storage device is normal (i.e., it meets the general level or the preset standard level); if the security score is less than the second security score threshold, the corresponding device performance level is level three (i.e., the lowest level), i.e., the stability of the storage device is low. Based on the above-mentioned level mapping information, this embodiment matches the security allocation with the correspondence between the security score and the device performance level to determine the device performance level corresponding to the storage device.

[0047] S30: Obtain a verification frequency corresponding to the device performance level, and use the obtained verification frequency as the verification frequency of the storage device.

[0048] Specifically, the verification frequency is the frequency of performing data integrity verification on the storage device, wherein the verification frequency is the number of write operations between two verifications. For example, if the verification frequency is 10, then the number of write operations between the previous verification and the current verification is 10, that is, after the previous verification, the storage device performs 10 write operations and then performs a verification when performing the 11th write operation.

[0049] The check frequency corresponding to the device performance level can be determined according to a preset relationship table between the device performance level and the check frequency. After obtaining the device performance level, the check frequency corresponding to the device performance level is searched in the preset relationship table. The higher the device performance level, the lower the check frequency. Conversely, the lower the device performance level, the higher the check frequency. For example, for a storage device with a particularly low device performance level, a check operation can be performed after each write operation, so as to promptly detect device anomalies of the storage device, and promptly attempt to repair or report the anomalies.

[0050] In addition, in actual applications, in order to prevent the verification frequency from affecting the performance of the Ceph cluster, a default verification frequency can be pre-set. When the device performance level of the storage device in the Ceph cluster is higher than the device performance level threshold, the default verification frequency is configured for the storage device whose device performance level is higher than the device performance level threshold, so that the verification frequencies of these storage devices are the same and synchronous verification can be performed. However, the frequencies of writing operations performed on each storage device in the Ceph cluster are different. Therefore, when the default verification frequency is configured for the storage device whose device performance level is higher than the device performance level threshold, the default verification frequency can be set to the interval time, that is, the default verification frequency is the interval time between two verification operations (for example, 10 days, 20 days, etc.), so that the storage device whose device performance level is higher than the device performance level threshold performs the verification operation according to the interval time, and the verification operations of each storage device are kept synchronized.

[0051] Based on this, Figure 2 As shown, the obtaining of the verification frequency corresponding to the device performance level specifically includes: S31. Compare the device performance level with the device performance level threshold; S32. If the device performance level is higher than the device performance level threshold, a default verification frequency is used as the verification frequency of the storage device, wherein the default verification frequency is the interval time between two verification operations.

[0052] S33. If the device performance level is lower than or equal to the device performance level threshold, determine the verification frequency of the storage device based on a preset relationship table, wherein the verification frequency in the preset relationship table is the number of interval write operations between two verification operations.

[0053] In the embodiment of the present application, storage devices whose device performance level is higher than the device performance level threshold can all adopt the default verification frequency, so that the storage devices running stably in the Ceph cluster are synchronized for verification. Storage devices whose device performance level is lower than or equal to the device performance level threshold are verified according to the verification frequency. In this way, abnormal storage devices in the Ceph cluster can be discovered in time while minimizing the verification frequency.

[0054] In one implementation, after the verification frequency of the storage device is obtained, the storage device is verified according to the verification frequency. That is, after the obtained verification frequency is used as the verification frequency of the storage device, the method further includes: When monitoring a write operation of the storage device, performing a verification operation on the storage device; Starting with the verification operation and taking the write operation as a trigger condition, a verification operation is performed on the storage device according to the verification frequency.

[0055] Specifically, the write operation is the first write operation performed after configuring the verification frequency for the storage device, that is, after configuring the verification frequency for the storage device according to the device performance level, the write operation of the storage device is monitored, and when the write operation is detected, the verification operation is performed on the storage device, and the verification operation is started, the write operation is used as a trigger condition, and the verification operation is performed on the storage device according to the verification frequency, that is, the verification operation is used as the first verification operation, and the number of write operations performed after the write operation corresponding to the verification operation is recorded. When the number of write operations meets the verification frequency requirement, the next verification operation is performed. In other words, the verification operation is triggered based on the write operation, that is, when the write operation is detected, the verification operation is triggered to perform the verification operation on the storage device. For example, the verification frequency is 20, and after the first verification operation is performed, the write operation performed by the storage device is monitored. When the number of write operations reaches 20, the second verification operation is performed when the write operation is detected again, and so on, until the verification frequency is configured for the storage device based on the device performance level again.

[0056] In summary, this embodiment provides a method for determining the verification frequency based on device scoring, the method comprising determining the security score of the storage device based on the device type of the storage device in the Ceph cluster; determining the device performance level of the storage device based on the security score; obtaining the verification frequency corresponding to the device performance level, and using the obtained verification frequency as the verification frequency of the storage device. This application determines the device score of the storage device based on the device type, determines the device performance level based on the device score, and finally determines the verification frequency of each storage device based on the device performance level, so that the verification frequency matches the operation status of the storage device, thereby meeting the verification requirements of each storage device in the Ceph cluster.

[0057] Based on the above-mentioned method for determining the calibration frequency based on device scoring, this embodiment provides a device for determining the calibration frequency based on device scoring, such as Figure 3 As shown, the device for determining the calibration frequency based on the equipment score specifically includes: A first determination module 100, configured to determine a security score of a storage device based on a device type of the storage device in the Ceph cluster; A second determination module 200, configured to determine a device performance level of the storage device based on the security score; The acquisition module 300 is used to acquire the verification frequency corresponding to the device performance level, and use the acquired verification frequency as the verification frequency of the storage device.

[0058] Based on the above-mentioned method for determining the verification frequency based on device scoring, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the method for determining the verification frequency based on device scoring as described in the above-mentioned embodiment.

[0059] Based on the above-mentioned method for determining the verification frequency based on device scoring, the present application also provides a terminal device, such as Figure 4 As shown, it includes at least one processor 20; a display screen 21; and a memory 22, and may also include a communications interface 23 and a bus 24. The processor 20, the display screen 21, the memory 22, and the communications interface 23 may communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communications interface 23 may transmit information. The processor 20 may call the logic instructions in the memory 22 to execute the method in the above embodiment.

[0060] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0061] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0062] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.

[0063] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.

[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for determining calibration frequency based on equipment scoring, characterized in that: Applied to Ceph cluster, the method for determining the verification frequency based on device scoring specifically includes: Determine the security score of the storage device based on the device type of the storage device in the Ceph cluster; Determining a device performance level of the storage device based on the security score; A verification frequency corresponding to the device performance level is obtained, and the obtained verification frequency is used as the verification frequency of the storage device.

2. The method for determining the calibration frequency based on equipment scoring according to claim 1, characterized in that: After using the obtained verification frequency as the verification frequency of the storage device, the method further includes: When monitoring a write operation of the storage device, performing a verification operation on the storage device; Starting with the verification operation and taking the write operation as a trigger condition, a verification operation is performed on the storage device according to the verification frequency.

3. The method for determining the calibration frequency based on equipment scoring according to claim 1, characterized in that: Determining the device performance level of the storage device based on the security score specifically includes: Detecting whether the security score meets preset requirements; When the security score meets the preset requirements, determining the device performance level of the storage device according to the corresponding relationship between the security score and the device performance level; When the security score does not meet the preset requirement, performing a verification operation on the storage device; If the verification operation passes, setting the device performance level of the storage device to the minimum device performance level; If the verification fails, it indicates that the storage device is abnormal.

4. The method for determining the calibration frequency based on equipment scoring according to claim 1, characterized in that: Determining the security score of the storage device based on the device type of the storage device in the Ceph cluster specifically includes: Determine an initial security score for the storage device based on the device type of the storage device in the Ceph cluster; Obtaining an IO response time of the storage device, and determining an operation score of the storage device based on the IO response time; A security score for the storage device is determined based on the initial security score and the operational score.

5. The method for determining the calibration frequency based on equipment scoring according to claim 4, characterized in that: The obtaining of the IO response time of the storage device specifically includes: Record the IO response time of the storage device within a preset time period; The average of all recorded IO response times is calculated to obtain an IO response average, and the IO response average is used as the IO response time of the storage device.

6. The method for determining the calibration frequency based on equipment scoring according to claim 1, characterized in that: Before determining the security score of the storage device based on the device type of the storage device in the Ceph cluster, the method further includes: Periodically monitor the cluster load of the Ceph cluster; If the monitored cluster load is greater than the a priori cluster load, an operation of determining a security score of the storage device based on the device type of the storage device in the Ceph cluster is performed.

7. The method for determining the calibration frequency based on equipment scoring according to claim 1, characterized in that: The step of obtaining the verification frequency corresponding to the device performance level specifically includes: comparing the device performance level to a device performance level threshold; If the device performance level is higher than the device performance level threshold, the default verification frequency is used as the verification frequency of the storage device, wherein the default verification frequency is the interval between two verification operations; If the device performance level is lower than or equal to the device performance level threshold, the verification frequency of the storage device is determined based on a preset relationship table, wherein the verification frequency in the preset relationship table is the number of interval write operations between two verification operations.

8. A device for determining calibration frequency based on equipment scoring, characterized in that: Applied to a Ceph cluster, the device scoring-based verification frequency determination device specifically includes: A first determination module, configured to determine a security score of a storage device based on a device type of the storage device in the Ceph cluster; A second determination module, configured to determine a device performance level of the storage device based on the security score; The acquisition module is used to acquire the verification frequency corresponding to the performance level of the device, and use the acquired verification frequency as the verification frequency of the storage device.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for determining the verification frequency based on device scoring as described in any one of claims 1-7.

10. A terminal device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the method for determining the verification frequency based on device scoring as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Slow disk detection method and equipment

    CN116644289A

  • Safety service data monitoring method, equipment and medium

    CN118036014A

  • Data management method of solid state disk, storage device and storage medium

    CN118363530A

  • Electrical equipment state monitoring method and system

    CN119025841A

  • Systems and methods for remote detection of computer device attributes

    US20200380522A1