CN119537120A - Method, device, equipment and medium for determining calibration frequency based on equipment scoring - Google Patents

Method, device, equipment and medium for determining calibration frequency based on equipment scoring Download PDF

Info

Publication number
CN119537120A
CN119537120A CN202510092724.1A CN202510092724A CN119537120A CN 119537120 A CN119537120 A CN 119537120A CN 202510092724 A CN202510092724 A CN 202510092724A CN 119537120 A CN119537120 A CN 119537120A
Authority
CN
China
Prior art keywords
storage device
verification
determining
frequency
score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202510092724.1A
Other languages
Chinese (zh)
Other versions
CN119537120B (en
Inventor
张勤
余登峰
孟军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baike Data Technology Shenzhen Co ltd
Original Assignee
Baike Data Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baike Data Technology Shenzhen Co ltd filed Critical Baike Data Technology Shenzhen Co ltd
Priority to CN202510092724.1A priority Critical patent/CN119537120B/en
Publication of CN119537120A publication Critical patent/CN119537120A/en
Application granted granted Critical
Publication of CN119537120B publication Critical patent/CN119537120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a verification frequency determining method, a device, equipment and a medium based on equipment scores, wherein the method comprises the steps of determining the security scores of storage equipment based on the equipment types of the storage equipment in a Ceph cluster; and acquiring the verification frequency corresponding to the equipment performance grade, and taking the acquired verification frequency as the verification frequency of the storage equipment. According to the application, the equipment scores of the storage equipment are determined based on the equipment types, the equipment performance grade is determined based on the equipment scores, and finally the verification frequency of each storage equipment is determined based on the equipment performance grade, so that the verification frequency is matched with the running condition of the storage equipment, and the verification requirement of each storage equipment in the Ceph cluster can be met.

Description

Verification frequency determining method, device, equipment and medium based on equipment score
Technical Field
The application relates to the technical field of Ceph clusters, in particular to a verification frequency determining method, device, equipment and medium based on equipment scoring.
Background
Ceph is a distributed storage system, which has the characteristics of reliability, intelligence, distribution and the like, realizes the functions of high reliability, high expandability, high performance, high automation and the like, and finally stores user data. A variety of storage devices, e.g., mechanical hard disk, NAND flash, etc., are accessed in the Ceph cluster. However, the stability and reliability of the storage devices accessing the Ceph cluster are different, requiring verification of the data integrity of the storage devices accessing the Ceph cluster. At present, a global checking mode is generally adopted to check the data integrity of the storage devices, but the existing method is used for equally treating all the accessed storage devices, so that the checking frequencies of all the storage devices are the same, and the device performances presented by different storage devices in the using process are different, so that the checking frequency requirements of different storage devices are different, and further, the existing method cannot meet the requirements of Ceph clusters accessed to storage devices of different device types.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The application aims to solve the technical problem of providing a verification frequency determining method, a device, equipment and a medium based on equipment scoring aiming at the defects in the prior art.
In order to solve the technical problem, the first aspect of the present application provides a verification frequency determining method based on equipment scoring, which is applied to a Ceph cluster, and specifically includes:
Determining a security score for a storage device based on a device type of the storage device in the Ceph cluster;
Determining a device performance level of the storage device based on the security score;
and acquiring the verification frequency corresponding to the equipment performance grade, and taking the acquired verification frequency as the verification frequency of the storage equipment.
The method for determining the verification frequency based on the equipment score, wherein after taking the obtained verification frequency as the verification frequency of the storage equipment, the method further comprises the following steps:
When the write operation of the storage device is monitored, performing a verification operation on the storage device;
And starting the verification operation, and executing the verification operation on the storage equipment according to the verification frequency by taking the writing operation as a trigger condition.
The verification frequency determining method based on the equipment score, wherein the determining the equipment performance grade of the storage equipment based on the security score specifically comprises the following steps:
Detecting whether the safety score meets a preset requirement;
when the security score meets the preset requirement, determining the equipment performance grade of the storage equipment according to the corresponding relation between the security score and the equipment performance grade;
when the security score does not meet the preset requirement, performing a verification operation on the storage device;
if the verification operation is passed, setting the equipment performance level of the storage equipment to be the lowest equipment performance level;
If the verification is not passed, prompting that the storage device is abnormal.
The verification frequency determining method based on the equipment score, wherein the determining the security score of the storage equipment based on the equipment type of the storage equipment in the Ceph cluster specifically comprises the following steps:
Determining an initial security score for a storage device based on a device type of the storage device in the Ceph cluster;
Acquiring 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 run score.
The verification frequency determining method based on the equipment score, wherein the obtaining the IO response time of the storage equipment specifically comprises the following steps:
Recording IO response time in a preset duration of the storage equipment;
Calculating the average value of all the IO response time obtained by recording to obtain an IO response average value, and taking the IO response average value as the IO response time of the storage device.
The verification frequency determining method based on the device score, wherein before the security score of the storage device is determined based on the device type of the storage device in the Ceph cluster, the method further comprises:
periodically monitoring the cluster load of the Ceph cluster;
and if the monitored cluster load is greater than the priori cluster load, executing the operation of determining the security score of the storage device based on the device type of the storage device in the Ceph cluster.
The method for determining the verification frequency based on the equipment score, wherein the step of obtaining the verification frequency corresponding to the equipment performance grade specifically comprises the following steps:
Comparing the device performance level to a device performance level threshold;
And if the equipment performance level is higher than the equipment performance level threshold, taking the default checking frequency as the checking frequency of the storage equipment, wherein the default checking frequency is the interval time between two checking operations.
And if the equipment performance level is lower than or equal to the equipment performance level threshold, determining the verification frequency of the storage equipment based on a preset relation table, wherein the verification frequency in the preset relation table is the number of interval write operations between two verification operations.
The second aspect of the present application provides a device score-based verification frequency determining apparatus, where the device score-based verification frequency determining apparatus specifically includes:
A first determining 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 determining module configured to determine a device performance level of the storage device based on the security score;
the acquisition module is used for acquiring the verification frequency corresponding to the equipment performance grade and taking the acquired verification frequency as the verification frequency of the storage equipment.
A third aspect of the present application provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in a device score based verification frequency determination method as described in any one of the above.
A fourth aspect of the present application provides a terminal device comprising a processor and a memory;
The memory has stored thereon a computer readable program executable by the processor;
The processor, when executing the computer readable program, implements the steps in a device score based verification frequency determination method as described in any of the above.
Compared with the prior art, the application provides a verification frequency determining method, a device, equipment and a medium based on equipment scores, wherein the method comprises the steps of determining the security scores of storage equipment based on the equipment types of the storage equipment in a Ceph cluster; and acquiring the verification frequency corresponding to the equipment performance grade, and taking the acquired verification frequency as the verification frequency of the storage equipment. According to the application, the equipment scores of the storage equipment are determined based on the equipment types, the equipment performance grade is determined based on the equipment scores, and finally the verification frequency of each storage equipment is determined based on the equipment performance grade, so that the verification frequency is matched with the running condition of the storage equipment, and the verification requirement of each storage equipment in the Ceph cluster can be met.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a verification frequency determining method based on equipment scoring according to an embodiment of the present application.
Fig. 2 is a specific flowchart of step S30.
Fig. 3 is a schematic block diagram of a verification frequency determining apparatus based on equipment score according to an embodiment of the present application.
Fig. 4 is a schematic block diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a verification frequency determining method, device, equipment and medium based on equipment scoring, and aims to make the purposes, technical schemes and effects of the application clearer and more definite. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not be construed as limiting the implementation process of the embodiment of the present application.
The Ceph is a distributed storage system, has the characteristics of reliability, intelligence, distribution and the like, realizes the functions of high reliability, high expandability, high performance, high automation and the like, and finally stores user data. A variety of storage devices, e.g., mechanical hard disk, NAND flash, etc., are accessed in the Ceph cluster. However, the stability and reliability of the storage devices accessing the Ceph cluster are different, requiring verification of the data integrity of the storage devices accessing the Ceph cluster. At present, a global checking mode is generally adopted to check the data integrity of the storage devices, but the existing method is used for equally treating all the accessed storage devices, so that the checking frequencies of all the storage devices are the same, and the device performances presented by different storage devices in the using process are different, so that the checking frequency requirements of different storage devices are different, and further, the existing method cannot meet the requirements of Ceph clusters accessed to storage devices of different device types.
In order to solve the problems, in the embodiment of the application, a security score of a storage device is determined based on the device type of the storage device in a Ceph cluster, a device performance grade of the storage device is determined based on the security score, a verification frequency corresponding to the device performance grade is obtained, and the obtained verification frequency is used as the verification frequency of the storage device. According to the application, the equipment scores of the storage equipment are determined based on the equipment types, the equipment performance grade is determined based on the equipment scores, and finally the verification frequency of each storage equipment is determined based on the equipment performance grade, so that the verification frequency is matched with the running condition of the storage equipment, and the verification requirement of each storage equipment in the Ceph cluster can be met.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The embodiment provides a verification frequency determining method based on equipment scoring, as shown in fig. 1, the method includes:
s10, determining the security score of the storage device based on the device type of the storage device in the Ceph cluster.
Specifically, ceph is a distributed storage system, which can provide capacity expansion and support functions of higher IO performance when multiple workloads are supported on the premise of not influencing services. Ceph clusters have access to several storage devices, such as flash memory and high-speed hard disk. In determining the security score for a storage device based on the device type of the storage device in the Ceph cluster, the security score for each storage device may be determined for each storage device in the Ceph cluster, or the security score for a specified storage device in the Ceph cluster may be determined for the specified storage device.
The triggering operation for determining the security score may be formed based on a request from the user side or may be formed based on a cluster state of the Ceph cluster. In one implementation, the triggering operation for determining the security score is formed based on a cluster state of the Ceph cluster, and in particular, 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 monitoring the cluster load of the Ceph cluster;
and if the monitored cluster load is greater than the priori cluster load, executing the operation of determining the security score of the storage device based on the device type of the storage device in the Ceph cluster.
Specifically, the interval duration of periodically monitoring the cluster load of the Ceph cluster may be preset or determined based on a priori cluster load, where the priori cluster load may be preset or determined based on a historical cluster load. In the embodiment of the application, the interval time is determined based on the prior cluster load, and the interval time determining process can be that after the cluster load is monitored, if the cluster load is greater than the prior cluster load, the interval time is set as the default time, if the cluster load is less than or equal to the prior cluster load, the interval time corresponding to the cluster load monitored at the current moment is determined according to the corresponding relation between the preset cluster load and the interval time, and the cluster load of the Ceph cluster is monitored after the interval time, so that the interval time 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 obtained, the verification frequency of the storage device can be quickly and accurately updated, so that the verification frequency is matched with the device performance level of the storage device, and the data integrity of the storage device can be further verified more timely.
Further, the prior cluster load is determined based on the historical cluster load, specifically, the prior cluster load may be the cluster load monitored at the previous detection time of the current time, or may be the maximum value of the cluster loads monitored at the preset number of monitoring times before the current monitoring time, or may be the average value of the cluster loads monitored at the preset number of monitoring times before the current monitoring time, or the like.
The device type is used for reflecting the access type of the storage device, and the device type can comprise a local device and a network device, wherein the initial security score corresponding to the local device is higher than the initial security score corresponding to the network device. Of course, in practical applications, the local device and the network device may be regarded as two device type classes, where each device type class further includes a sub device type, for example, both device type classes include a block device, a flash memory, an encrypted hard disk, and other non-standard devices. When the initial security score is configured for the device type, the initial security score can be configured for two device type classes respectively, and then the initial security score is configured for each sub-device type, so that when the device type is acquired, the device type class corresponding to the storage device can be acquired first, and then the sub-device type corresponding to the storage device is acquired.
Illustratively, the determining the security score of the storage device based on the device type of the storage device in the Ceph cluster specifically includes:
Determining an initial security score for a storage device based on a device type of the storage device in the Ceph cluster;
Acquiring 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 run score.
Specifically, the initial security score is a device score corresponding to the device type, and the operation score is an operation performance score determined based on the IO response time of the storage device. The security score is an overall score of the storage device under the current running performance and is used for reflecting the overall device state of the storage device. The initial security score may be an initial security score configured by the device type, or may be determined based on the initial security score configured by the device type and a user-set score corresponding to the storage device, for example, a minimum value of the initial security score and the user-set score, or a mean value of the initial security score and the user-set score, or a weighted value of the initial security score and the user-set score. The initial security score may be determined based on an initial security score of a device type class to which the device type belongs, or may be determined based on an initial security score of a device type class to which the device type belongs and an initial security score of a sub-device type corresponding to the storage device in the device type class, for example, a product of two initial security scores, or the like.
Further, the IO response time is a response time for processing one IO operation, and the response performance of the storage device can be reflected by the IO response time. The IO response time at the current moment can be directly obtained, or the average response time of all IO operations in the preset duration can be obtained.
In one implementation manner, the obtaining the IO response time of the storage device specifically includes:
S21, acquiring IO response time in preset duration of the storage device;
s22, calculating the average value of all the IO response time obtained by recording to obtain an IO response average value, and taking the IO response average value as the IO response time of the storage device.
Specifically, the preset duration is preset, when the IO response time in the preset duration of the storage device is obtained, the current moment can be taken as the starting moment, the IO response time of each IO operation in the preset duration in the future can be recorded, and the current moment can be taken as the ending moment, and the IO response time of each IO operation in the preset duration in the history can be read. In the embodiment of the application, the historical IO operation times and the IO response time of each historical IO operation of the storage device are continuously recorded within the preset time, so that when the IO response time of the storage device within the preset time is obtained, the recorded historical IO operation times and the IO response time of each historical IO operation can be read, and then the IO response average value of the historical IO operation is calculated based on the historical IO operation times and the IO response time of each historical IO operation so as to obtain the IO response time of the storage device.
Further, after the IO response time of the storage device is obtained, determining an operation score of the storage device based on the IO response time of the storage device, wherein the operation score is used for reflecting the operation state of the storage device, the operation score is inversely proportional to the IO response time, namely, the shorter the IO response time is, the more stable the operation state of the storage device is indicated, the greater the operation score is, otherwise, the longer the IO response time is, the more unstable the operation state of the storage device is indicated, the smaller the operation score is, and even when the IO response time is greater than a preset time threshold value, the operation score can be set to be negative so that the verification of the storage device can be triggered rapidly. When determining the operation score based on the IO response time, a plurality of IO response time periods may be preset, and an operation score may be configured for each IO response time period, after the IO response time of the storage device is obtained, the IO response time period in which the IO response time is located may 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. Or, an inverse proportion relation between the IO response time and the operation score can 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 larger 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 smaller than or equal to the preset IO response time threshold, the positive operation score is determined based on the inverse proportion relation, and the positive operation score is used as the operation score corresponding to the IO response time.
S20, determining the equipment performance grade of the storage equipment based on the security score.
In particular, 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 may be determined based on a correspondence between the security score and the device performance level, for example, a correspondence between the security score and the device performance level is preset, and when the security score is acquired, the device performance level of the storage device is determined based on the correspondence.
However, in practical applications, there may be a storage device in which an abnormality has occurred, and the storage device in which an abnormality has occurred may be subjected to an abnormality notification or verification without determining its verification frequency. Based on this, in one implementation, the determining the device performance level of the storage device based on the security score specifically includes:
Detecting whether the safety score meets a preset requirement;
when the security score meets the preset requirement, determining the equipment performance grade of the storage equipment according to the corresponding relation between the security score and the equipment performance grade;
and when the security score does not meet the preset requirement, executing a verification operation on the storage device, setting the device performance level of the storage device to be the lowest device performance level if the verification operation is passed, and prompting the storage device to be abnormal if the verification is not passed.
Specifically, the preset requirement is preset, and the preset requirement may be that the security score is greater than or equal to a preset score threshold, where the preset score threshold may be an average value of security scores of preset times of the security score, and so on. Or, the preset requirement can be that the security score is larger than the difference value of the previous security score, or that the security score is smaller than the previous security score and the difference value of the previous security score and the security score is smaller than a preset difference threshold, so that whether the storage device operates normally or not can be determined on the one hand, whether the storage device operates stably or not can be determined on the other hand by adopting the difference value of the previous security score and the security score as the preset requirement, and when the storage device operates in large fluctuation, the storage device is directly checked, and the abnormality of the storage device can be discovered more timely.
Further, when the security score meets the preset requirement, the description may determine the device performance level based on the security score, whereas when the security score does not meet the preset requirement, the description may not determine the device performance 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 a verification result obtained by the verification operation. Specifically, if the verification operation is passed, it indicates that the data integrity of the storage device meets the requirement, but the security score does not meet the preset requirement, so as to set the lowest device performance level for the storage device, if the verification operation is not passed, it indicates that the data integrity of the storage device does not meet the requirement, it prompts that the storage device is abnormal, wherein before prompting that the storage device is abnormal, the repair of the storage device can be attempted, and if the repair is successful, the lowest device performance level is set for the storage device.
The corresponding relation between the security score and the device performance level may be preset, where the corresponding relation may be that the security score is greater than a first security score threshold, and the corresponding device performance level is first-level, that is, stability of the storage device is very high, and if the security score is located between the first security score threshold and a second security score threshold, the corresponding device performance level is second-level, that is, stability of the storage device is normal (that is, meets a common level or a preset standard level), and if the security score is less than the second security score threshold, the corresponding device performance level is third-level (that is, lowest level), that is, stability of the storage device is low. Based on the level mapping information, the embodiment matches the security allocation with the corresponding relationship between the security score and the device performance level to determine the device performance level corresponding to the storage device.
S30, acquiring the check frequency corresponding to the equipment performance grade, and taking the acquired check frequency as the check frequency of the storage equipment.
Specifically, the verification frequency is a frequency of performing data integrity verification on the storage device, where the verification frequency is a number of write operations performed at two verification intervals, for example, the verification frequency is 10, and then the number of interval write operations between a previous verification and a current verification is 10, that is, after the previous verification, the storage device performs 10 write operations, and then performs verification when performing 11 th write operations.
The verification frequency corresponding to the equipment performance grade can be determined according to a preset relation table of the preset equipment performance grade and the verification frequency, and after the equipment performance grade is obtained, the verification frequency corresponding to the equipment performance grade is searched in the preset relation table. The higher the device performance level is, the lower the verification frequency is, whereas the lower the device performance level is, the higher the verification frequency is, for example, for a storage device with a particularly low device performance level, the verification operation may be performed once after each write operation is performed, so as to discover the device abnormality of the storage device in time, and repair or report the abnormality may be attempted in time.
In addition, in practical application, in order to verify that the frequency does not affect the performance of the Ceph cluster, a default verification frequency may be preset, and when the device performance level of the storage devices in the Ceph cluster is higher than the device performance level threshold, the default verification frequency is configured to the storage devices with the device performance level higher than the device performance level threshold, so that the verification frequencies of the storage devices are the same, and synchronous verification may be performed. The frequency of the write operations performed by each storage device in the Ceph cluster is different, so when the default verification frequency is configured to the storage device with the device performance level higher than the device performance level threshold, the default verification frequency may be set to be an interval time, that is, the default verification frequency is an interval time between two verification operations (for example, 10 days, 20 days, etc.), so that the storage device with the device performance level higher than the device performance level threshold performs the verification operation according to the interval time, and the verification operation of each storage device is kept synchronous.
Based on this, as shown in fig. 2, the obtaining the verification frequency corresponding to the device performance level specifically includes:
s31, comparing the equipment performance level with an equipment performance level threshold;
And S32, if the equipment performance level is higher than the equipment performance level threshold, taking the default checking frequency as the checking frequency of the storage equipment, wherein the default checking frequency is the interval time between two checking operations.
And S33, if the equipment performance level is lower than or equal to the equipment performance level threshold, determining the verification frequency of the storage equipment based on a preset relation table, wherein the verification frequency in the preset relation table is the interval write operation times between two verification operations.
According to the embodiment of the application, the storage devices with the device performance level higher than the device performance level threshold can all adopt default verification frequency, so that the storage devices running stably in the Ceph cluster can be synchronously verified, and the storage devices with the device performance level lower than or equal to the device performance level threshold can be verified according to the verification frequency, so that the abnormal storage devices in the Ceph cluster can be timely found under the condition of reducing the verification frequency as much as possible.
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 taking the acquired check frequency as the check frequency of the storage device, the method further includes:
When the write operation of the storage device is monitored, performing a verification operation on the storage device;
And starting the verification operation, and executing the verification operation on the storage equipment according to the verification frequency by taking the writing operation as a trigger condition.
Specifically, the write operation is the first write operation executed after the check frequency is configured for the storage device, that is, after the check frequency is configured for the storage device according to the device performance level, the write operation of the storage device is monitored, when the write operation is monitored, the check operation is executed for the storage device by taking the check operation as a trigger condition, the check operation is executed for the storage device according to the check frequency by taking the write operation as a trigger condition, that is, the number of write operations executed after the write operation corresponding to the check operation is recorded, and when the number of write operations meets the check frequency requirement, the next check operation is executed. That is, the verify operation is triggered based on the write operation, i.e., when the write operation is monitored, the verify operation is triggered to perform the verify operation on the storage device. For example, the verification frequency is 20, after the first verification operation is performed, the write operation performed by the storage device is monitored, when the number of times of performing the write operation reaches 20, the second verification operation is performed when the write operation is monitored, and so on, until the verification frequency is configured for the storage device again based on the device performance level.
In summary, the embodiment provides a verification frequency determining method based on equipment scores, which comprises the steps of determining security scores of storage equipment based on equipment types of the storage equipment in a Ceph cluster, determining equipment performance grades of the storage equipment based on the security scores, obtaining verification frequencies corresponding to the equipment performance grades, and taking the obtained verification frequencies as the verification frequencies of the storage equipment. According to the application, the equipment scores of the storage equipment are determined based on the equipment types, the equipment performance grade is determined based on the equipment scores, and finally the verification frequency of each storage equipment is determined based on the equipment performance grade, so that the verification frequency is matched with the running condition of the storage equipment, and the verification requirement of each storage equipment in the Ceph cluster can be met.
Based on the above verification frequency determining method based on the device score, this embodiment provides a verification frequency determining apparatus based on the device score, as shown in fig. 3, where the verification frequency determining apparatus based on the device score specifically includes:
A first determining 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 determining module 200, configured to determine a device performance level of the storage device based on the security score;
and the obtaining module 300 is configured to obtain a verification frequency corresponding to the performance level of the device, and take the obtained verification frequency as the verification frequency of the storage device.
Based on the above-described verification frequency determination method based on device score, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the verification frequency determination method based on device score as described in the above-described embodiments.
Based on the above verification frequency determining method based on the device score, the present application further provides a terminal device, as shown in fig. 4, which includes at least one processor (processor) 20, a display screen 21, a memory (memory) 22, and may further include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, application programs required for at least one function, and a storage data area that may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same, and although the present application has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present application.

Claims (10)

1.一种基于设备评分的校验频率确定方法,其特征在于,应用于Ceph集群,所述的基于设备评分的校验频率确定方法具体包括:1. A method for determining a check frequency based on a device score, characterized in that it is applied to a Ceph cluster, and the method for determining a check frequency based on a device score specifically includes: 基于Ceph集群中的存储设备的设备类型确定存储设备的安全评分;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.根据权利要求1所述的基于设备评分的校验频率确定方法,其特征在于,所述将获取的校验频率作为所述存储设备的校验频率之后,所述方法还包括:2. The method for determining the verification frequency based on device scoring according to claim 1, characterized in that after the obtained verification frequency is used as the verification frequency of the storage device, the method further comprises: 当监测所述存储设备的写入操作时,对所述存储设备执行校验操作;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.根据权利要求1所述的基于设备评分的校验频率确定方法,其特征在于,所述基于所述安全评分确定所述存储设备的设备性能等级具体包括:3. The method for determining the verification frequency based on device scoring according to claim 1, wherein determining the device performance level of the storage device based on the security score specifically comprises: 检测所述安全评分是否满足预设要求;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.根据权利要求1所述的基于设备评分的校验频率确定方法,其特征在于,所述基于Ceph集群中的存储设备的设备类型确定存储设备的安全评分具体包括:4. The method for determining the verification frequency based on device scoring according to claim 1, wherein determining the security score of the storage device based on the device type of the storage device in the Ceph cluster specifically comprises: 基于Ceph集群中的存储设备的设备类型确定存储设备的初始安全评分;Determine an initial security score for the storage device based on the device type of the storage device in the Ceph cluster; 获取所述存储设备的IO响应时间,并基于IO响应时间确定存储设备的运行评分;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.根据权利要求4所述的基于设备评分的校验频率确定方法,其特征在于,所述获取所述存储设备的IO响应时间具体包括:5. The method for determining the verification frequency based on device scoring according to claim 4, wherein obtaining the IO response time of the storage device specifically comprises: 记录存储设备的预设时长内的IO响应时间;Record the IO response time of the storage device within a preset time period; 计算记录得到的所有IO响应时间的均值以得到IO响应均值,并将所述IO响应均值作为所述存储设备的IO响应时间。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.根据权利要求1所述的基于设备评分的校验频率确定方法,其特征在于,所述基于Ceph集群中的存储设备的设备类型确定存储设备的安全评分之前,所述方法还包括:6. The method for determining the verification frequency based on device 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 comprises: 周期性监测Ceph集群的集群负载;Periodically monitor the cluster load of the Ceph cluster; 若监测到的集群负载大于先验集群负载,则执行基于Ceph集群中的存储设备的设备类型确定存储设备的安全评分的操作。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.根据权利要求1所述的基于设备评分的校验频率确定方法,其特征在于,所述获取所述设备性能等级对应的校验频率具体包括:7. The method for determining the calibration frequency based on equipment scoring according to claim 1, wherein obtaining the calibration frequency corresponding to the equipment performance level specifically comprises: 将设备性能等级与设备性能等级阈值进行比较;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.一种基于设备评分的校验频率确定装置,其特征在于,应用于Ceph集群,所述基于设备评分的校验频率确定装置具体包括:8. A device for determining a check frequency based on a device score, characterized in that it is applied to a Ceph cluster, and the device for determining a check frequency based on a device score specifically comprises: 第一确定模块,用于基于Ceph集群中的存储设备的设备类型确定存储设备的安全评分;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.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1-7任意一项所述的基于设备评分的校验频率确定方法中的步骤。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.一种终端设备,其特征在于,包括:处理器和存储器;10. A terminal device, comprising: a processor and a memory; 所述存储器上存储有可被所述处理器执行的计算机可读程序;The memory stores a computer-readable program executable by the processor; 所述处理器执行所述计算机可读程序时实现如权利要求1-7任意一项所述的基于设备评分的校验频率确定方法中的步骤。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.
CN202510092724.1A 2025-01-21 2025-01-21 Verification frequency determining method, device, equipment and medium based on equipment score Active CN119537120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510092724.1A CN119537120B (en) 2025-01-21 2025-01-21 Verification frequency determining method, device, equipment and medium based on equipment score

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510092724.1A CN119537120B (en) 2025-01-21 2025-01-21 Verification frequency determining method, device, equipment and medium based on equipment score

Publications (2)

Publication Number Publication Date
CN119537120A true CN119537120A (en) 2025-02-28
CN119537120B CN119537120B (en) 2025-07-25

Family

ID=94713117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510092724.1A Active CN119537120B (en) 2025-01-21 2025-01-21 Verification frequency determining method, device, equipment and medium based on equipment score

Country Status (1)

Country Link
CN (1) CN119537120B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200380522A1 (en) * 2019-05-31 2020-12-03 Paypal, Inc. Systems and methods for remote detection of computer device attributes
CN116644289A (en) * 2023-05-17 2023-08-25 超聚变数字技术有限公司 A slow disk detection method and device
US20240103999A1 (en) * 2022-09-28 2024-03-28 Honda Motor Co., Ltd. Control device, control method, and storage medium
CN118036014A (en) * 2024-02-22 2024-05-14 中国联合网络通信集团有限公司 Security service data monitoring method, device and medium
CN118363530A (en) * 2024-04-15 2024-07-19 深圳市威科伟业电子科技有限公司 Data management method, storage device and storage medium of solid state disk
CN119025841A (en) * 2024-10-14 2024-11-26 广州羊城电气设备有限公司 A method and system for monitoring electrical equipment status

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200380522A1 (en) * 2019-05-31 2020-12-03 Paypal, Inc. Systems and methods for remote detection of computer device attributes
US20240103999A1 (en) * 2022-09-28 2024-03-28 Honda Motor Co., Ltd. Control device, control method, and storage medium
CN116644289A (en) * 2023-05-17 2023-08-25 超聚变数字技术有限公司 A slow disk detection method and device
CN118036014A (en) * 2024-02-22 2024-05-14 中国联合网络通信集团有限公司 Security service data monitoring method, device and medium
CN118363530A (en) * 2024-04-15 2024-07-19 深圳市威科伟业电子科技有限公司 Data management method, storage device and storage medium of solid state disk
CN119025841A (en) * 2024-10-14 2024-11-26 广州羊城电气设备有限公司 A method and system for monitoring electrical equipment status

Also Published As

Publication number Publication date
CN119537120B (en) 2025-07-25

Similar Documents

Publication Publication Date Title
CN115248757B (en) A method for assessing hard drive health and a storage device
CN107025153B (en) Disk failure prediction method and device
CN109586952B (en) Server capacity expansion method and device
CN110275793B (en) Detection method and equipment for MongoDB data fragment cluster
CN112905480B (en) Test script generation method, device, storage medium and electronic device
CN112231232B (en) Method, device and equipment for determining test data model and generating test data
CN111897697B (en) Server hardware fault repairing method and device
CN108334427B (en) Fault diagnosis method and device in storage system
CN110457907B (en) Firmware program detection method and device
CN117827981A (en) A link detection method and system for MySQL database cluster
CN113704026B (en) Distributed financial memory database security synchronization method, device and medium
CN119537120B (en) Verification frequency determining method, device, equipment and medium based on equipment score
US11880222B2 (en) Method, apparatus, and device for erasing solid state disk, and storage medium
CN110515757A (en) Information processing method, device, server, the medium of distributed memory system
CN113094221A (en) Fault injection method and device, computer equipment and readable storage medium
CN119517143A (en) A solid state hard disk performance stability testing method, system and medium
CN119512898B (en) Device performance evaluation method, device, server and medium based on device type
CN118331801A (en) Test control method, device and equipment
CN117290557A (en) A data loading method, related devices, equipment and readable storage media
CN115934395A (en) Fault injection method and device for solid state disk, computer equipment and storage medium
CN116401118A (en) Method and device for monitoring Samba of file sharing service
CN119484250B (en) Network fault repair method, device, equipment and storage medium
CN119945901B (en) Distributed cluster capacity expansion method, device, equipment and storage medium
CN119883759B (en) A method, apparatus, and storage device for determining the amount of data to be flushed.
CN112562774B (en) Storage device mounting method and device, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant