Device performance evaluation method, device, server and medium based on device type

Through the equipment performance evaluation method based on the device type, the problem of wasted resource of data integrity verification in the prior art is solved, and the effect of differentiated verification is achieved based on the device type and performance.

CN119512898BActive Publication Date: 2025-04-25RD DATA TECH (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510066479.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-25
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

When performing data integrity verification on storage devices connected to Ceph clusters, the prior art cannot perform differentiated processing according to the characteristics of different storage devices, resulting in the data integrity of some devices not being timely verified, and some devices are too frequently verified, resulting in waste of resources.

Method used

A device performance evaluation method based on device type is provided. By reading the device type of storage devices in a Ceph cluster, determining its security factor, and adjusting the security factor according to the IO response time, the device performance is finally determined so as to perform data integrity verification based on device performance.

Benefits of technology

Differentiated data integrity verification is achieved based on the type and performance of the storage device, avoiding resource waste and ensuring timely verification of data integrity of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512898B_ABST
    Figure CN119512898B_ABST
Patent Text Reader

Abstract

The present application discloses a device performance evaluation method, apparatus, server and medium based on device type, the method comprising reading the device type of a storage device in a Ceph cluster, determining the safety factor of the storage device based on the device type; obtaining the IO response time of the storage device, and determining the adjustment factor of the storage device based on the IO response time; determining the target safety factor of the storage device based on the safety factor and the adjustment factor, and determining the device performance of the storage device based on the target safety factor. The present application obtains the device type and IO response time of the storage device, and then determines the device performance of the storage device according to the device type and IO response time, so as to perform data integrity verification on the storage device according to the device performance, so that the data integrity of the storage device can be verified in time without wasting verification resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Ceph cluster technology, and in particular to a device performance evaluation method, device, server and medium based on device type. Background Art

[0002] Ceph is a distributed storage system that is reliable, intelligent, and distributed. It achieves high reliability, high scalability, high performance, and 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 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 storage devices is generally verified by global verification. However, the existing method treats all connected storage devices equally, and the data integrity requirements of different storage devices are different. This will result in the data integrity of some storage devices not being verified in time, and the data integrity verification of some storage devices is too frequent, resulting in a waste of verification resources.

[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 device performance evaluation method, device, server and medium based on device type 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 device performance evaluation method based on device type, which is applied to a Ceph cluster. The device performance evaluation method based on device type specifically includes:

[0006] Read the device type of the storage device in the Ceph cluster and determine the safety factor of the storage device based on the device type;

[0007] Obtaining an IO response time of the storage device, and determining an adjustment factor of the storage device based on the IO response time;

[0008] A target safety factor of the storage device is determined based on the safety factor and the adjustment factor, and the target safety factor determines the device performance of the storage device.

[0009] The device performance evaluation method based on device type, wherein the step of determining the safety factor of a storage device based on device type specifically includes:

[0010] Obtaining a default safety factor corresponding to the device type, and detecting a set safety factor of the storage device;

[0011] When a set safety factor is detected, the set safety factor is used as a safety factor of the storage device;

[0012] When the set safety factor is not detected, the default safety factor is used as the safety factor of the storage device.

[0013] The device performance evaluation method based on device type, wherein the device type includes local devices and network devices, and the default safety factor corresponding to the local device is higher than the default safety factor corresponding to the network device.

[0014] In the device performance evaluation method based on device type, the step of obtaining the IO response time of the storage device specifically includes:

[0015] Get the IO response time of the storage device within the preset time period;

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

[0017] The device performance evaluation method based on device type, wherein the device type of the storage device read in the Ceph cluster specifically includes:

[0018] Periodically monitor the cluster load of the Ceph cluster;

[0019] If the monitored cluster load is greater than the a priori cluster load, the device type of the storage device in the Ceph cluster is read.

[0020] In the device performance evaluation method based on device type, the target safety factor determines the device performance of the storage device and specifically includes:

[0021] comparing the target safety factor with a preset safety factor threshold;

[0022] If the target safety factor is less than or equal to a preset safety factor threshold, determining that the device performance of the storage device is unstable, and verifying the storage device;

[0023] If the target safety factor is greater than the preset safety factor threshold, the device performance of the storage device is determined to be stable, and the storage device is kept operating normally.

[0024] The device performance evaluation method based on device type, wherein the method further comprises:

[0025] When a new storage device is connected to the Ceph cluster, a safety factor setting operation for the new storage device is received;

[0026] If a safety factor setting operation is received, setting a safety factor for the new storage device configuration;

[0027] If the safety factor setting operation is not received, the safety factor is not set for the new storage device configuration.

[0028] A second aspect of the present application provides a device performance evaluation device based on device type, wherein the device performance evaluation device based on device type specifically includes:

[0029] A reading module is used to read the device type of the storage device in the Ceph cluster and determine the safety factor of the storage device based on the device type;

[0030] An acquisition module, used to acquire an IO response time of the storage device and determine an adjustment factor of the storage device based on the IO response time;

[0031] A determination module is used to determine a target safety factor of the storage device based on the safety factor and the adjustment factor, and determine the device performance of the storage device according to the target safety factor.

[0032] A third aspect of the present application 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 any of the device performance evaluation methods based on device type as described above.

[0033] A fourth aspect of the present application provides a server, comprising: a processor and a memory;

[0034] The memory stores a computer-readable program executable by the processor;

[0035] When the processor executes the computer-readable program, the processor implements the steps in any of the above-mentioned device performance evaluation methods based on device type.

[0036] Beneficial effects: Compared with the prior art, the present application provides a device performance evaluation method, apparatus, server and medium based on device type, the method comprising reading the device type of the storage device in the Ceph cluster, determining the safety factor of the storage device based on the device type; obtaining the IO response time of the storage device, and determining the adjustment factor of the storage device based on the IO response time; determining the target safety factor of the storage device based on the safety factor and the adjustment factor, and determining the device performance of the storage device based on the target safety factor. The present application obtains the device type and IO response time of the storage device, and then determines the device performance of the storage device according to the device type and IO response time, so as to perform data integrity verification on the storage device according to the device performance, so that the data integrity of the storage device can be verified in time without wasting verification resources. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0038] Figure 1 A flowchart of a method for evaluating device performance based on device type provided in an embodiment of the present application.

[0039] Figure 2 The figure is a flowchart of the process of obtaining the IO response time.

[0040] Figure 3 A functional block diagram of a device performance evaluation apparatus based on device type provided in an embodiment of the present application.

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

[0042] The embodiments of the present application provide a device performance evaluation method, apparatus, server, and medium based on device type. 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.

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

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

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

[0046] 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, and different storage devices need to be verified in different situations. This will result in the data integrity of some storage devices not being verified in time, and the data integrity of some storage devices being verified too frequently, resulting in a waste of verification resources.

[0047] In order to solve the above problems, in an embodiment of the present application, the device type of the storage device in the Ceph cluster is read, and the safety factor of the storage device is determined based on the device type; the IO response time of the storage device is obtained, and the adjustment factor of the storage device is determined based on the IO response time; the target safety factor of the storage device is determined based on the safety factor and the adjustment factor, and the device performance of the storage device is determined by the target safety factor. The present application obtains the device type and IO response time of the storage device, and then determines the device performance of the storage device according to the device type and IO response time, so as to verify the storage device according to the device performance, so that the data integrity of the storage device can be verified in time without wasting verification resources.

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

[0049] The device performance evaluation method based on device type of this embodiment can be applied to a server, and the device performance evaluation method based on device type can be performed by a single server or a distributed cluster composed of multiple servers, and this application does not impose any specific restrictions on this. Figure 1 As shown, in actual application, the device performance evaluation method based on device type provided in this embodiment specifically includes:

[0050] S10. Read the device type of the storage device in the Ceph cluster, and determine the safety factor of the storage device based on the device type.

[0051] 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. Therefore, when reading the device type of the storage device in the Ceph cluster, you can read the device type of each storage device in the Ceph cluster, or you can read the device type of some storage devices in the Ceph cluster.

[0052] Reading the device type of the storage device in the Ceph cluster can be triggered based on a user request or based on the cluster state of the Ceph cluster. Based on this, in one implementation, the device type of the storage device in the Ceph cluster specifically includes:

[0053] Receive a device performance evaluation request initiated by a client;

[0054] When a device performance evaluation request is received, target device information contained in the device performance evaluation request is obtained, and a storage device whose device performance is to be evaluated is determined based on the target device information, and a device type operation of the storage device whose device performance is to be evaluated is read.

[0055] Specifically, the target device information includes the name and path information of the storage device whose device performance is to be evaluated, and the storage device whose device performance is to be evaluated can be determined by the target device information. In addition, when the device performance evaluation request does not carry the target device information, all storage devices in the Ceph cluster are used as target storage devices.

[0056] In another implementation, the device type for reading the storage device in the Ceph cluster specifically includes:

[0057] Periodically monitor the cluster load of the Ceph cluster;

[0058] If the monitored cluster load is greater than the a priori cluster load, the device type of the storage device in the Ceph cluster is read.

[0059] Specifically, the periodic interval duration may be pre-set or determined based on the monitored cluster load. The a priori cluster load may 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 monitored cluster load, and the interval duration determination process may be: after the cluster load is monitored, if the cluster load is greater than the a priori cluster load, the interval duration is set to a 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 monitored cluster load, the read time of the device type of the storage device in the Ceph cluster that needs to be read can be accurately known, thereby improving the timeliness of the data integrity check of the storage device. 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.

[0060] Furthermore, the device type is used to reflect the access type of the storage device, and the device type can include local devices and network devices. 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 default security factor for the device type, you can first configure the default security factor for the two device type classes respectively, and then configure the default security factor 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.

[0061] After obtaining the device type of the storage device, the safety factor of the storage device will be determined based on the device type. The default safety factor of the device type class can be directly used as the safety factor of the storage device, or the product of the default safety factor of the device type class and the default safety factor of the sub-device type can be used as the safety factor of the storage device. It is also possible to first determine whether the storage device is configured with a set safety factor. If so, the safety factor of the storage device can be determined based on the set safety factor and the default safety factor corresponding to the device type.

[0062] Exemplarily, determining the safety factor of the storage device based on the device type specifically includes:

[0063] Obtaining a default safety factor corresponding to the device type, and detecting a set safety factor of the storage device;

[0064] When a set safety factor is detected, the set safety factor is used as a safety factor of the storage device;

[0065] When the set safety factor is not detected, the default safety factor is used as the safety factor of the storage device.

[0066] Specifically, the security factor can be set by the user for the storage device, or it can be set by the user based on the importance of the storage device. For example, if the importance of the stored data in the storage device is high, then the importance of the storage device is high, and a low security factor is set for the storage device. Conversely, if the importance of the stored data in the storage device is low, then the importance of the storage device is low, and a high security factor is set for the storage device. Storage devices that store highly important data will be easily judged to need to be verified, so as to better ensure the integrity and stability of storage devices that store highly important data.

[0067] Exemplarily, the device performance evaluation method based on device type further includes:

[0068] When a new storage device is connected to the Ceph cluster, a safety factor setting operation for the new storage device is received;

[0069] If a safety factor setting operation is received, setting a safety factor for the new storage device configuration;

[0070] If the safety factor setting operation is not received, the safety factor is not set for the new storage device configuration.

[0071] Specifically, when a new storage device is connected to a Ceph cluster, a safety factor setting operation for the new storage device can be received. If the safety factor setting operation is received within a preset time, the safety factor carried by the safety factor setting operation is configured as the set safety factor of the new storage. Conversely, if the safety factor setting operation is not received within the preset time, the safety factor is not configured for the new storage device. Of course, after the safety factor is not configured for the new storage device based on user operations, when the storage device stores data, the importance of the storage data of the storage device can be obtained, and then the safety factor can be configured for the storage device based on the importance of the storage data.

[0072] Furthermore, when the set safety factor is detected, the set safety factor can be directly used as the safety factor of the storage device, and when the set safety factor is not detected, the default safety factor can be used as the safety factor of the storage device. Of course, when the set safety factor is detected, the smaller of the set safety factor and the default safety factor can be set as the safety factor of the storage device, or the average of the set safety factor and the default safety factor can be used as the safety factor of the storage device, or the safety factor and the default safety factor can be weighted to obtain the safety factor of the storage device, etc.

[0073] S20, obtaining the IO response time of the storage device, and determining an adjustment factor of the storage device based on the IO response time;

[0074] Specifically, 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.

[0075] In one implementation, if Figure 2 As shown, obtaining the IO response time of the storage device specifically includes:

[0076] S21, obtaining the IO response time of the storage device within a preset time period;

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

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

[0079] Further, after obtaining the IO response time of the storage device, an adjustment factor of the storage device is determined based on the IO response time of the storage device, and the adjustment factor is used to adjust the safety factor of the storage device, wherein the adjustment factor is inversely proportional to the IO response time, that is, the shorter the IO response time, the more stable the storage device, and the larger the adjustment factor is; conversely, the longer the IO response time, the more unstable the storage device, and the smaller the adjustment factor is; even when the IO response time is greater than a preset time threshold, the adjustment factor can be set to negative, so as to quickly trigger the verification of the storage device based on the device performance. When determining the adjustment factor based on the IO response time, several IO response time periods can be pre-set, and an adjustment factor 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 adjustment factor corresponding to the IO response time period is used as the adjustment factor corresponding to the IO response time. Alternatively, an inverse proportional relationship between the IO response time and the adjustment factor 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 adjustment factor is directly used as the adjustment factor 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 adjustment factor is determined based on the inverse proportional relationship, and the positive adjustment factor is used as the adjustment factor corresponding to the IO response time.

[0080] S30. Determine a target safety factor of the storage device based on the safety factor and the adjustment factor, and determine device performance of the storage device using the target safety factor.

[0081] Specifically, the target safety factor is used as a basis for determining the device performance of the storage device, and the device performance of the storage device is used as a basis for verifying the storage device, wherein the device performance is used to reflect the stability of the storage device, and stability includes device stability (i.e., normal device) and device instability (i.e., abnormal device). Among them, the target safety factor can be the sum of the safety factor and the adjustment factor, and can be obtained by weighting the safety factor and the adjustment factor. In an embodiment of the present application, the target safety factor is the sum of the safety factor and the adjustment factor, that is, the target safety factor can be obtained by calculating the sum of the safety factor and the adjustment factor.

[0082] In one implementation, the target safety factor determines the device performance of the storage device specifically including:

[0083] comparing the target safety factor with a preset safety factor threshold;

[0084] If the target safety factor is less than or equal to a preset safety factor threshold, determining that the device performance of the storage device is unstable, and verifying the storage device;

[0085] If the target safety factor is greater than the preset safety factor threshold, the device performance of the storage device is determined to be stable, and the storage device is kept operating normally.

[0086] Specifically, the preset safety factor threshold is pre-set and is used to match the target safety factor to determine the device performance of the storage device, wherein the device performance includes device instability and device stability, and the device performance is used as a basis for verifying the storage device. To this end, after obtaining the target safety factor, the target safety factor can be compared with the preset safety factor threshold. If the target safety factor is less than or equal to the preset safety factor threshold, it can be determined that the device performance of the storage device is unstable, and if the device is unstable, it can be determined that the storage device needs to be verified, that is, the storage device is started to be verified, and when an abnormality occurs in the verification, the abnormality can be first tried to be repaired. If the abnormality cannot be repaired, an abnormal prompt is generated. If the abnormality is repaired, the storage device is kept in normal operation. Conversely, if the target safety factor is greater than the preset safety factor threshold, it can be determined that the device performance of the storage device is stable, and if the device is stable, no verification is required, so that the storage device can be kept in normal operation.

[0087] Of course, the preset safety factor threshold can be determined based on the target safety factor that has been verified and passed in the history of the storage device. For example, the target safety factor that has been verified and passed a preset number of times before the current moment can be obtained, and then the minimum target safety factor among the target safety factors that have been verified and passed the preset number of times can be used as the preset safety factor threshold, or the average of the target safety factors that have been verified and passed the preset number of times can be used as the preset safety factor threshold, etc.

[0088] Furthermore, when the target safety factor is less than or equal to the preset safety factor threshold, the target safety factor can be compared with the specified safety factor threshold. If the target safety factor is less than the specified safety factor threshold, an abnormal prompt is directly generated. If the target safety factor is greater than or equal to the specified safety factor threshold, the device performance of the storage device is determined to be unstable, and the storage device is verified, so that the user can be informed of the unstable state of the storage device in a more timely manner. Among them, the set safety factor threshold is less than the preset safety factor threshold.

[0089] In summary, this embodiment provides a device performance evaluation method based on device type, the method comprising reading the device type of the storage device in the Ceph cluster, determining the safety factor of the storage device based on the device type; obtaining the IO response time of the storage device, and determining the adjustment factor of the storage device based on the IO response time; determining the target safety factor of the storage device based on the safety factor and the adjustment factor, and determining the device performance of the storage device based on the target safety factor. This application obtains the device type and IO response time of the storage device, and then determines the device performance of the storage device according to the device type and IO response time, so as to perform data integrity verification on the storage device according to the device performance, so that the data integrity of the storage device can be verified in time without wasting verification resources.

[0090] Based on the above-mentioned device performance evaluation method based on device type, this embodiment provides a device performance evaluation device based on device type, such as Figure 3 As shown, the device performance evaluation method based on device type specifically includes:

[0091] The reading module 100 is used to read the device type of the storage device in the Ceph cluster and determine the safety factor of the storage device based on the device type;

[0092] An acquisition module 200, configured to acquire an IO response time of the storage device and determine an adjustment factor of the storage device based on the IO response time;

[0093] The determination module 300 is used to determine a target safety factor of the storage device based on the safety factor and the adjustment factor, and determine the device performance of the storage device based on the target safety factor.

[0094] Based on the above-mentioned device performance evaluation method based on device type, 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 device performance evaluation method based on device type as described in the above-mentioned embodiment.

[0095] Based on the above device performance evaluation method based on device type, the present application also provides a server, 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.

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

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

[0098] 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 server, 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.

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

[0100] 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 device performance evaluation method based on device type, characterized in that: Applied to Ceph cluster, the device performance evaluation method based on device type specifically includes: Read the device type of the storage device in the Ceph cluster and determine the safety factor of the storage device based on the device type; Obtaining an IO response time of the storage device, and determining an adjustment factor of the storage device based on the IO response time; Determine the target safety factor of the storage device based on the safety factor and the adjustment factor, and compare the target safety factor with a preset safety factor threshold; if the target safety factor is less than or equal to the preset safety factor threshold, determine that the device performance of the storage device is unstable, and verify the storage device; if the target safety factor is greater than the preset safety factor threshold, determine that the device performance of the storage device is stable, and maintain normal operation of the storage device; the target safety factor is used as a basis for determining the device performance of the storage device, and the device performance of the storage device is used as a basis for verifying the storage device; The device type for reading the storage device in the Ceph cluster specifically includes: Periodically monitor the cluster load of the Ceph cluster, wherein the a priori cluster load is determined based on the historical cluster load; If the monitored cluster load is greater than the a priori cluster load, the device type of the storage device in the Ceph cluster is read; the periodic interval duration is set to the default duration; If the cluster load is less than or equal to the prior 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 periodic interval duration is set to the interval duration to monitor the cluster load of the Ceph cluster after the interval duration.

2. The device performance evaluation method based on device type according to claim 1, characterized in that: Determining the safety factor of the storage device based on the device type specifically includes: Obtaining a default safety factor corresponding to the device type, and detecting a set safety factor of the storage device; When a set safety factor is detected, the set safety factor is used as a safety factor of the storage device; When the set safety factor is not detected, the default safety factor is used as the safety factor of the storage device.

3. The device performance evaluation method based on device type according to claim 2, characterized in that: The device types include local devices and network devices, and the default safety factor corresponding to the local device is higher than the default safety factor corresponding to the network device.

4. The device performance evaluation method based on device type according to claim 1, characterized in that: The obtaining of the IO response time of the storage device specifically includes: Get the IO response time of the storage device within the 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.

5. The device performance evaluation method based on device type according to claim 1, characterized in that: The method further comprises: When a new storage device is connected to the Ceph cluster, receiving a safety factor setting operation for the new storage device; If a safety factor setting operation is received, setting a safety factor for the new storage device configuration; If the safety factor setting operation is not received, the safety factor is not set for the new storage device configuration.

6. A device performance evaluation device based on device type, characterized in that: The device performance evaluation device based on device type specifically includes: A reading module is used to read the device type of the storage device in the Ceph cluster and determine the safety factor of the storage device based on the device type; An acquisition module, used to acquire an IO response time of the storage device and determine an adjustment factor of the storage device based on the IO response time; A determination module, configured to determine a target safety factor of the storage device based on the safety factor and the adjustment factor, and compare the target safety factor with a preset safety factor threshold; if the target safety factor is less than or equal to the preset safety factor threshold, the device performance of the storage device is determined to be unstable, and the storage device is verified; if the target safety factor is greater than the preset safety factor threshold, the device performance of the storage device is determined to be stable, and the storage device is kept running normally; the target safety factor is used as a basis for determining the device performance of the storage device, and the device performance of the storage device is used as a basis for verifying the storage device; The device type for reading the storage device in the Ceph cluster specifically includes: Periodically monitor the cluster load of the Ceph cluster, wherein the a priori cluster load is determined based on the historical cluster load; If the monitored cluster load is greater than the a priori cluster load, the device type of the storage device in the Ceph cluster is read; the periodic interval duration is set to the default duration; If the cluster load is less than or equal to the prior 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 periodic interval duration is set to the interval duration to monitor the cluster load of the Ceph cluster after the interval duration.

7. 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 device performance evaluation method based on device type as described in any one of claims 1-5.

8. A server, 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 processor implements the steps in the device performance evaluation method based on device type as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • SDN-based Ceph heterogeneous distributed storage system and read-write optimization method thereof

    CN115454342A