Outflow performance evaluation method, device, equipment and computer program product

By obtaining the outflow capacity and threshold of the hard disk and connection card, combined with the IO pressure model, the problem of inaccurate outflow performance evaluation of servers in the CDN system is solved, and efficient and accurate outflow performance evaluation is achieved, reducing equipment costs and manpower and material resource consumption.

CN114297045BActive Publication Date: 2025-09-19CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111627486.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-09-19
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In the existing technology, the outbound flow performance evaluation of the server in the CDN system is inaccurate, resulting in increased equipment costs and low user access efficiency. The existing evaluation method is cumbersome, time-consuming and labor-intensive, and cannot simulate actual application scenarios.

Method used

By obtaining the server's hard drive type, connection card, and network card outflow capacity and threshold, combined with the outflow performance ratio of solid-state drives and mechanical hard drives, the server's target outflow capacity is determined. An IO pressure model is used for testing to simplify the evaluation process.

Benefits of technology

It improves the accuracy and efficiency of server outflow performance evaluation, reduces manpower and material resource consumption, and adapts to the evaluation needs in different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114297045B_ABST
    Figure CN114297045B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for evaluating outflow performance, comprising the following steps: obtaining the hard disk outflow capabilities corresponding to multiple hard disk types of a server, and obtaining the connection card outflow thresholds corresponding to each connection card of the server; determining a first outflow capability based on the hard disk outflow capabilities and the connection card outflow thresholds; obtaining the outflow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk, and determining a second outflow capability based on the first outflow capability and the outflow performance ratio; determining the target outflow capability of the server based on the network card outflow threshold of the server and the second outflow capability. The present invention also discloses an outflow performance evaluation device, apparatus, and computer program product. The present invention improves the accuracy of the server outflow performance evaluation by comprehensively considering the outflow performance of the hard disk, connection card, and network card to evaluate the outflow performance of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and computer program product for evaluating outflow performance. Background Art

[0002] Service operators provide users with services such as web browsing and video playback through the CDN (Content Delivery Network) system. These services can be implemented by relying on multiple cache servers in the CDN system. The cache server can cache the data resources provided by the service source station locally. When users need to obtain these data resources, they do not need to visit the service source station, but can directly obtain the corresponding data resources through the cache server.

[0003] In the process of CDN providing services to users, cache servers rely on a large number of disks to cache data resources. Disk outflow performance can become the key to restricting user access speed. However, excessive disk outflow performance will lead to increased equipment costs of cache servers. Therefore, in order to reduce costs and improve user access efficiency, the disk outflow performance of cache servers can be evaluated and adjusted based on the evaluation results.

[0004] Currently, the outbound performance of storage servers is primarily evaluated through simulated stress testing. Specifically, the server being evaluated is stress-tested using other servers to simulate user requests. The server's outbound performance is evaluated by observing CPU, memory, and hard disk utilization. However, this approach requires multiple servers to set up a collaborative verification environment. The evaluation process is cumbersome and consumes significant time, manpower, and material resources. Furthermore, the stress testing process fails to include application scenarios, resulting in a significant discrepancy between the evaluated outbound performance and the server's actual outbound performance, leading to inaccurate server outbound performance evaluation.

[0005] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention

[0006] The main purpose of the present invention is to provide a method, device, equipment and computer program product for evaluating outbound flow performance, aiming to solve the technical problem of inaccurate outbound flow performance evaluation of servers in CDN systems.

[0007] To achieve the above object, the present invention provides a method for evaluating outflow performance, comprising the following steps:

[0008] Obtaining hard disk outbound flow capabilities corresponding to multiple hard disk types of the server, and obtaining connection card outbound flow thresholds corresponding to each connection card of the server;

[0009] Determining a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold;

[0010] Obtaining an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disks, and determining a second outflow capacity based on the first outflow capacity and the outflow performance ratio;

[0011] The target outbound flow capacity of the server is determined based on the outbound flow threshold of the network card of the server and the second outbound flow capacity.

[0012] Furthermore, the step of obtaining the outflow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk includes:

[0013] Obtaining a network traffic ratio between network traffic of hotspot service content and network traffic of non-hotspot service content in a network corresponding to the server;

[0014] The outflow performance ratio is determined based on the network traffic ratio.

[0015] Furthermore, the step of determining the second outflow capacity based on the first outflow capacity and the outflow performance ratio includes:

[0016] Obtaining a first hard disk outbound flow capacity of the solid-state hard disk and a second hard disk outbound flow capacity of the mechanical hard disk in the first outbound flow capacity;

[0017] Determining a third hard disk outflow capacity of the solid-state hard disk and a fourth hard disk outflow capacity of the mechanical hard disk based on the outflow performance ratio, the first hard disk outflow capacity, and the second hard disk outflow capacity, wherein the ratio of the third hard disk outflow capacity to the fourth hard disk outflow capacity is less than or equal to the outflow performance ratio, the third hard disk outflow capacity is less than or equal to the first hard disk outflow capacity, and the fourth hard disk outflow capacity is less than or equal to the second hard disk outflow capacity;

[0018] The second outflow capacity is determined based on the third hard disk outflow capacity and the fourth hard disk outflow capacity.

[0019] Furthermore, the step of determining the target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity includes:

[0020] Determining whether the second outbound flow capability is greater than or equal to the network card outbound flow threshold;

[0021] If the second outbound flow capacity is greater than or equal to the network card outbound flow threshold, then using the network card outbound flow threshold as the target outbound flow capacity;

[0022] If the second outbound flow capacity is less than the network card outbound flow threshold, the second outbound flow capacity is used as the target outbound flow capacity.

[0023] Furthermore, the step of determining the first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold includes:

[0024] Traverse each hard disk type corresponding to the hard disk in turn, and obtain the current connection card outflow threshold of the connection card corresponding to the current hard disk type;

[0025] If the hard disk outbound flow capacity of the current hard disk type is greater than or equal to the current connection card outbound flow threshold, the current connection card outbound flow threshold is used as the first outbound flow capacity corresponding to the current hard disk type;

[0026] If the hard disk outbound flow capability of the current hard disk type is less than the current connection card outbound flow threshold, the current hard disk outbound flow capability is used as the first outbound flow capability corresponding to the current hard disk type.

[0027] Furthermore, the step of obtaining the hard disk outflow capabilities corresponding to the multiple hard disk types of the server includes:

[0028] The sum of the outflow capacities of the multiple hard disks included in each hard disk type is calculated respectively, and the sum of the outflow capacities is used as the hard disk outflow capacity of the hard disk of the corresponding type.

[0029] Furthermore, before the step of obtaining the hard disk outflow capabilities corresponding to the multiple types of hard disks of the server, the method further includes:

[0030] The server is tested using an IO pressure model to obtain the outflow capacity of each hard disk in the server, the connection card outflow threshold of each type of hard disk connection card, and the network card outflow threshold.

[0031] In addition, to achieve the above-mentioned purpose, the present invention further provides an outflow performance evaluation device, the outflow performance evaluation device comprising:

[0032] A first acquisition module is configured to acquire hard disk outbound flow capabilities corresponding to multiple hard disk types of a server, and acquire a connection card outbound flow threshold corresponding to each connection card of the server;

[0033] A first determining module, configured to determine a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold;

[0034] a second acquisition module, configured to acquire an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disk, and determine a second outflow capacity based on the first outflow capacity and the outflow performance ratio;

[0035] The second determining module is configured to determine a target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides an outflow performance evaluation device, which includes: a memory, a processor, and an outflow performance evaluation program stored on the memory and runnable on the processor. When the outflow performance evaluation program is executed by the processor, the steps of the aforementioned outflow performance evaluation method are implemented.

[0037] In addition, to achieve the above-mentioned object, the present invention also provides a computer program product, including a computer program, which implements the steps of the above-mentioned outflow performance evaluation method when executed by a processor.

[0038] The present invention obtains the hard disk outflow capacity corresponding to multiple types of hard disks of the server, and obtains the connection card outflow threshold corresponding to each connection card; then determines the first outflow capacity based on the hard disk outflow capacity and the connection card outflow threshold; then obtains the outflow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk, and determines the second outflow capacity based on the first outflow capacity and the outflow performance ratio; then determines the target outflow capacity of the server based on the network card outflow threshold of the server and the second outflow capacity, and evaluates the outflow performance of the server by comprehensively considering the outflow performance of the hard disk, the connection card and the network card, thereby enriching the dimension of the server outflow performance evaluation and improving the accuracy of the server outflow performance evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 Schematic diagram of the structure of the outflow performance evaluation device in the hardware operating environment involved in the embodiment of the present invention;

[0040] Figure 2 Schematic diagram of the flow chart of the first embodiment of the outflow performance evaluation method of the present invention;

[0041] Figure 3 Schematic diagram of the functional modules of an outflow performance evaluation device according to an embodiment of the present invention.

[0042] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0044] like Figure 1 As shown, Figure 1 It is a structural diagram of an outflow performance evaluation device in a hardware operating environment involved in an embodiment of the present invention.

[0045] The outgoing stream performance evaluation device of the embodiment of the present invention can be a PC, or it can be a mobile terminal device with display function such as a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, or a portable computer.

[0046] like Figure 1 As shown, the outflow performance evaluation device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0047] Optionally, the outflow performance evaluation device may further include a camera, RF (Radio Frequency) circuit, sensor, audio circuit, WiFi module, etc. Sensors include light sensors, motion sensors, and other sensors. Of course, the outflow performance evaluation device may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be detailed here.

[0048] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the outflow performance evaluation device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an outflow performance evaluation program.

[0050] exist Figure 1In the outgoing flow performance evaluation device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the outgoing flow performance evaluation program stored in the memory 1005.

[0051] In this embodiment, the outflow performance evaluation device includes: a memory 1005, a processor 1001, and an outflow performance evaluation program stored on the memory 1005 and executable on the processor 1001, wherein the processor 1001 calls the outflow performance evaluation program stored in the memory 1005 and executes the steps of the outflow performance evaluation method in each of the following embodiments.

[0052] The present invention also provides a method for evaluating outflow performance, referring to Figure 2 , Figure 2 Schematic diagram of the flow chart of the first embodiment of the outflow performance evaluation method of the present invention.

[0053] In this embodiment, the outflow performance evaluation method includes the following steps:

[0054] Step S101, obtaining hard disk outbound flow capabilities corresponding to multiple hard disk types of a server, and obtaining connection card outbound flow thresholds corresponding to each connection card of the server;

[0055] It should be noted that this server is a storage server within a CDN. Fio stress testing software can be deployed on a single server in advance, an IO stress model configured, and then the server tested. Test data, including the outbound traffic capacity of each hard drive, the outbound traffic threshold of each hard drive connection card, and the outbound traffic threshold of each network card, is obtained and stored. This allows for test data to be collected only once, eliminating the need to obtain server test data before each outbound traffic performance evaluation.

[0056] In this embodiment, for each server requiring outbound traffic performance evaluation, the hard drive outbound traffic capacities corresponding to multiple hard drive types in the server are obtained, as well as the connection card outbound traffic thresholds corresponding to each connection card. For each hard drive type, the hard drive outbound traffic capacities of each hard drive connected to the connection card of that hard drive type are obtained from pre-stored test data, and the hard drive outbound traffic capacities of each hard drive are used as the hard drive outbound traffic capacity corresponding to that hard drive type. Furthermore, the connection card outbound traffic thresholds corresponding to each connection card in the server are obtained from the pre-stored test data.

[0057] Furthermore, in one embodiment, step S102 includes:

[0058] The sum of the outflow capacities of the multiple hard disks included in each hard disk type is calculated respectively, and the sum of the outflow capacities is used as the hard disk outflow capacity of the hard disk of the corresponding type.

[0059] For each hard disk type, the hard disk outflow capacity of each hard disk connected to the connection card of the hard disk type is obtained from the pre-stored test data, and the hard disk outflow capacity of each hard disk is used as the hard disk outflow capacity corresponding to the hard disk type.

[0060] Step S102, determining a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold;

[0061] It should be noted that hard disk types include SSD (Solid State Drives) and HDD (Hard Disk Drive, mechanical hard disk or hard disk drive). Among them, according to different interface types, SSD includes SATA SSD and NVMe SSD, and HDD includes SATA HDD and SAS-nl HDD. In other words, hard disk types include SATA SSD, NVMe SSD, SATA HDD and SAS-nl HDD. At the same time, the type of connection card corresponds to the hard disk type one by one.

[0062] In this embodiment, when the hard disk outflow capacity and the connection card outflow threshold are obtained, the first outflow capacity of each hard disk type is determined based on the hard disk outflow capacity and the connection card outflow threshold. Specifically, for each hard disk type, if the hard disk outflow capacity corresponding to the hard disk type is greater than or equal to the connection card outflow threshold corresponding to the connection card of the hard disk type, the connection card outflow threshold corresponding to the connection card of the hard disk type is used as the first outflow capacity corresponding to the hard disk type; if the hard disk outflow capacity corresponding to the hard disk type is less than the connection card outflow threshold corresponding to the connection card of the hard disk type, the hard disk outflow capacity corresponding to the hard disk type is used as the first outflow capacity corresponding to the hard disk type.

[0063] Step S103, obtaining an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disk, and determining a second outflow capacity based on the first outflow capacity and the outflow performance ratio;

[0064] In this embodiment, when the first outbound flow capability is obtained, the outbound flow performance ratio between the solid-state drive and the mechanical hard disk in the hard disk is obtained. Specifically, the outbound flow performance ratio is equal to the network traffic ratio between the network traffic of the hot business content and the network traffic of the non-hot business content.

[0065] Then, based on the first outflow capacity and the outflow performance ratio, the second outflow capacity is determined so that the hard disk outflow capacity of the solid-state hard disk in the second outflow capacity is smaller than the hard disk outflow capacity of the solid-state hard disk in the first outflow capacity, the hard disk outflow capacity of the mechanical hard disk in the second outflow capacity is smaller than the hard disk outflow capacity of the mechanical hard disk in the first outflow capacity, and the ratio of the hard disk outflow capacity of the solid-state hard disk in the second outflow capacity to the hard disk outflow capacity of the mechanical hard disk in the second outflow capacity is the outflow performance ratio.

[0066] Step S104: determining the target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity.

[0067] In this embodiment, when the second outflow capacity is obtained, the network card outflow threshold of the server is obtained, and based on the network card outflow threshold of the server and the second outflow capacity, the target outflow capacity of the server is determined. Specifically, the target outflow capacity is the minimum value between the network card outflow threshold and the second outflow capacity.

[0068] Furthermore, in one embodiment, before step S101, the method further includes:

[0069] Step a: performing a detection operation on the server through an IO pressure model to obtain the outflow capacity of each hard disk in the server, the connection card outflow threshold of each connection card, and the network card outflow threshold.

[0070] In this embodiment, Fio stress testing software is pre-deployed on a single server, an IO stress model is configured, and then the server is tested to obtain and store test data, including the outbound traffic capacity of each hard disk, the outbound traffic threshold of each hard disk connection card, and the outbound traffic threshold of each network card. This allows test data to be collected only once, eliminating the need to obtain server test data before each outbound traffic performance evaluation.

[0071] It should be noted that this application is used to evaluate the outflow performance of storage servers at the edge nodes of CDN. The evaluation process does not require too much manual operation, which greatly simplifies the evaluation process and reduces the time, manpower and material resources consumed by the evaluation.

[0072] The outflow performance evaluation method proposed in this embodiment obtains the hard disk outflow capabilities corresponding to multiple types of hard disks of the server, and obtains the connection card outflow thresholds corresponding to each connection card; then determines the first outflow capability based on the hard disk outflow capability and the connection card outflow threshold; then obtains the outflow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk, and determines the second outflow capability based on the first outflow capability and the outflow performance ratio; then determines the target outflow capability of the server based on the network card outflow threshold of the server and the second outflow capability. By comprehensively considering the outflow performance of the hard disk, the connection card and the network card to evaluate the outflow performance of the server, the dimension of the server outflow performance evaluation is enriched, and the accuracy of the server outflow performance evaluation is improved.

[0073] Based on the first embodiment, a second embodiment of the outflow performance evaluation method of the present invention is proposed. In this embodiment, step S103 includes:

[0074] Step S201, obtaining a network traffic ratio between network traffic of hotspot service content and network traffic of non-hotspot service content in a network corresponding to the server;

[0075] Step S202: determining the outbound flow performance ratio based on the network flow ratio.

[0076] It's important to note that in a live network application environment, the ratio of network traffic for hotspot content to network traffic for non-hotspot content reflects the distribution of live network services. For servers carrying services, SSDs and HDDs form a secondary cache, with SSDs handling the outbound traffic for hotspot content, and HDDs handling the outbound traffic for non-hotspot content. Therefore, the outbound traffic performance ratio between solid-state drives and mechanical hard drives within a hard drive is the ratio of network traffic for hotspot content to network traffic for non-hotspot content, influenced by distribution.

[0077] In this embodiment, the network traffic ratio between the network traffic of the hot service content and the network traffic of the non-hot service content in the network corresponding to the current server is first obtained, and the network traffic ratio is used as the outbound flow performance ratio.

[0078] The outflow performance evaluation method proposed in this embodiment obtains the network traffic ratio between the network traffic of hot business content and the network traffic of non-hot business content in the network corresponding to the server; then determines the outflow performance ratio based on the network traffic ratio. By combining the hot content traffic distribution characteristics of the existing network business, it can realize the evaluation of the outflow performance of any configured server in different business scenarios, thereby improving the universality of the outflow performance evaluation.

[0079] Based on the first embodiment, a third embodiment of the outflow performance evaluation method of the present invention is proposed. In this embodiment, step S103 includes:

[0080] Step S301, obtaining a first hard disk outbound flow capacity of the solid state drive and a second hard disk outbound flow capacity of the mechanical hard disk in the first outbound flow capacity;

[0081] Step S302: Determine a third hard disk outflow capacity of the solid-state drive and a fourth hard disk outflow capacity of the mechanical hard disk based on the outflow performance ratio, the first hard disk outflow capacity, and the second hard disk outflow capacity, wherein the ratio of the third hard disk outflow capacity to the fourth hard disk outflow capacity is less than or equal to the outflow performance ratio, the third hard disk outflow capacity is less than or equal to the first hard disk outflow capacity, and the fourth hard disk outflow capacity is less than or equal to the second hard disk outflow capacity.

[0082] Step S303: Determine the second outbound flow capacity based on the outbound flow capacity of the third hard disk and the outbound flow capacity of the fourth hard disk.

[0083] In this embodiment, the first hard disk outflow capacity of the solid-state hard disk and the second hard disk outflow capacity of the mechanical hard disk in the first outflow capacity are first obtained, wherein the first hard disk outflow capacity is the sum of the outflow capacity of all SATA SSD hard disks in the first outflow capacity and the outflow capacity of the NVMe SSD, and the second hard disk outflow capacity is the sum of the outflow capacity of all SATA HDD hard disks in the first outflow capacity and the outflow capacity of the SAS-nl HDD.

[0084] Then, based on the outbound traffic performance ratio, the outbound traffic capacity of the first hard disk, and the outbound traffic capacity of the second hard disk, the outbound traffic capacity of the third hard disk of the solid-state drive and the outbound traffic capacity of the fourth hard disk of the mechanical hard disk are determined, so that the ratio of the outbound traffic capacity of the third hard disk to the outbound traffic capacity of the fourth hard disk is less than or equal to the outbound traffic performance ratio, the outbound traffic capacity of the third hard disk is less than or equal to the outbound traffic capacity of the first hard disk, and the outbound traffic capacity of the fourth hard disk is less than or equal to the outbound traffic capacity of the second hard disk. For example, if the outbound traffic capacity of the first hard disk is 10 Gbps and the outbound traffic capacity of the second hard disk is 5 Gbps, and the outbound traffic performance ratio is 4:1, if the outbound traffic capacity of the third hard disk is 10 Gbps, and the outbound traffic capacity of the fourth hard disk is 2.5 Gbps, which is less than the outbound traffic capacity of the second hard disk, then the above condition is met; if the outbound traffic capacity of the fourth hard disk is 5 Gbps, and the outbound traffic capacity of the third hard disk is 20 Gbps, which is greater than the outbound traffic capacity of the first hard disk, then the above condition is not met. Therefore, the third hard disk outbound flow capacity is selected as 10 Gbps and the fourth hard disk outbound flow capacity is selected as 2.5 Gbps as the final result.

[0085] Then, based on the outflow capacity of the third hard disk and the outflow capacity of the fourth hard disk, the second outflow capacity is determined, and the second outflow capacity is the sum of the outflow capacity of the third hard disk and the outflow capacity of the fourth hard disk.

[0086] The outflow performance evaluation method proposed in this embodiment obtains the first hard disk outflow capacity of the solid-state hard disk and the second hard disk outflow capacity of the mechanical hard disk in the first outflow capacity; then determines the third hard disk outflow capacity of the solid-state hard disk and the fourth hard disk outflow capacity of the mechanical hard disk based on the outflow performance ratio, the first hard disk outflow capacity and the second hard disk outflow capacity, wherein the ratio of the third hard disk outflow capacity to the fourth hard disk outflow capacity is less than or equal to the outflow performance ratio, the third hard disk outflow capacity is less than or equal to the first hard disk outflow capacity, and the fourth hard disk outflow capacity is less than or equal to the second hard disk outflow capacity; then determines the second outflow capacity based on the third hard disk outflow capacity and the fourth hard disk outflow capacity, and can accurately obtain the second outflow capacity that meets the hard disk outflow restriction based on the first outflow capacity and the outflow performance ratio, thereby further improving the accuracy of the server outflow performance evaluation.

[0087] Based on the first embodiment, a fourth embodiment of the outflow performance evaluation method of the present invention is proposed. In this embodiment, step S104 includes:

[0088] Step S401, determining whether the second outbound flow capability is greater than or equal to the network card outbound flow threshold;

[0089] Step S402: If the second outbound flow capacity is greater than or equal to the network card outbound flow threshold, the network card outbound flow threshold is used as the target outbound flow capacity;

[0090] Step S403: If the second outbound flow capacity is less than the network card outbound flow threshold, the second outbound flow capacity is used as the target outbound flow capacity.

[0091] In this embodiment, after obtaining the second outflow capacity, the network card outflow threshold of the server is obtained, and it is determined whether the second outflow capacity is greater than or equal to the network card outflow threshold. If so, the network card outflow threshold is used as the target outflow capacity; otherwise, the second outflow capacity is used as the target outflow capacity, so that the target outflow capacity can meet the restrictions of the network card and hard disk.

[0092] The outflow performance evaluation method proposed in this embodiment determines whether the second outflow capacity is greater than or equal to the network card outflow threshold; then, if the second outflow capacity is greater than or equal to the network card outflow threshold, the network card outflow threshold is used as the target outflow capacity; and then, if the second outflow capacity is less than the network card outflow threshold, the second outflow capacity is used as the target outflow capacity. This ensures that the target outflow capacity can meet the outflow restrictions of the network card, hard disk, and connection card, further improving the accuracy of the server outflow performance evaluation.

[0093] Based on the first embodiment, a fifth embodiment of the outflow performance evaluation method of the present invention is proposed. In this embodiment, step S102 includes:

[0094] Step S501, traverse each hard disk type corresponding to the hard disk in sequence, and obtain the current connection card outflow threshold of the connection card corresponding to the current hard disk type;

[0095] Step S502: If the hard disk outbound flow capacity of the current hard disk type is greater than or equal to the current connection card outbound flow threshold, the current connection card outbound flow threshold is used as the first outbound flow capacity corresponding to the current hard disk type;

[0096] Step S503: If the hard disk outbound flow capability of the current hard disk type is less than the outbound flow threshold of the current connection card, the current hard disk outbound flow capability is used as the first outbound flow capability corresponding to the current hard disk type.

[0097] In this embodiment, hard disk types include SATA SSD, NVMe SSD, SATA HDD, and SAS-nl HDD. Each hard disk type corresponding to the hard disk is sequentially traversed to obtain the currently traversed hard disk type, i.e., the current connection card outflow threshold of the connection card corresponding to the current hard disk type is obtained. That is, the current connection card outflow threshold is obtained after the connection card outflow threshold is reached. It is then determined whether the hard disk outflow capacity of the current hard disk type is greater than or equal to the current connection card outflow threshold.

[0098] If the outbound flow capacity of the current hard disk type is greater than or equal to the outbound flow threshold of the current connection card, the outbound flow threshold of the current connection card is used as the first outbound flow capacity corresponding to the current hard disk type. If the outbound flow capacity of the current hard disk type is less than the outbound flow threshold of the current connection card, the outbound flow capacity of the current hard disk type is used as the first outbound flow capacity corresponding to the current hard disk type. This continues until the hard disk type traversal is completed.

[0099] It should be noted that for the NVMe SSD hard disk type, since there is no current connection card outflow threshold, the NVMe SSD hard disk outflow capacity is directly used as its first outflow capacity.

[0100] The outflow performance evaluation method proposed in this embodiment traverses each hard disk type corresponding to the hard disk in sequence, and obtains the current connection card outflow threshold of the connection card corresponding to the current hard disk type; then, if the hard disk outflow capacity of the current hard disk type is greater than or equal to the current connection card outflow threshold, the current connection card outflow threshold is used as the first outflow capacity corresponding to the current hard disk type; if the hard disk outflow capacity of the current hard disk type is less than the current connection card outflow threshold, the hard disk outflow capacity of the current hard disk type is used as the first outflow capacity corresponding to the current hard disk type. The first outflow capacity can be accurately determined according to the connection card outflow threshold, thereby further improving the accuracy of the server outflow performance evaluation.

[0101] The present invention also provides a flow performance evaluation device, referring to Figure 3 , the outflow performance evaluation device comprises:

[0102] A first acquisition module 10 is configured to acquire hard disk outbound flow capabilities corresponding to multiple hard disk types of a server, and acquire connection card outbound flow thresholds corresponding to each connection card of the server;

[0103] A first determining module 20 is configured to determine a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold;

[0104] A second acquisition module 30 is configured to acquire an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disk, and determine a second outflow capacity based on the first outflow capacity and the outflow performance ratio;

[0105] The second determining module 40 is configured to determine the target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity.

[0106] The methods executed by the above-mentioned program units can refer to the various embodiments of the outflow performance evaluation method of the present invention, and will not be described in detail here.

[0107] The present invention also provides a computer-readable storage medium.

[0108] The computer-readable storage medium of the present invention stores an outflow performance evaluation program, which implements the steps of the outflow performance evaluation method described above when executed by a processor.

[0109] The method implemented when the outflow performance evaluation program running on the processor is executed can refer to the various embodiments of the outflow performance evaluation method of the present invention, and will not be described in detail here.

[0110] In addition, an embodiment of the present invention further provides a computer program product, which includes an outflow performance evaluation program. When the outflow performance evaluation program is executed by a processor, the steps of the outflow performance evaluation method described above are implemented.

[0111] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0112] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0113] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0114] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for evaluating outflow performance, characterized in that: The outflow performance evaluation method comprises the following steps: Obtaining hard disk outbound flow capabilities corresponding to multiple hard disk types of the server, and obtaining connection card outbound flow thresholds corresponding to each connection card of the server; Determining a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold; Obtaining an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disks, and determining a second outflow capacity based on the first outflow capacity and the outflow performance ratio; Determining a target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity; The step of obtaining the outflow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk comprises: Obtaining a network traffic ratio between network traffic of hotspot service content and network traffic of non-hotspot service content in a network corresponding to the server; determining the outflow performance ratio based on the network traffic ratio; The step of determining the second outflow capacity based on the first outflow capacity and the outflow performance ratio includes: Obtaining a first hard disk outbound flow capacity of the solid-state hard disk and a second hard disk outbound flow capacity of the mechanical hard disk in the first outbound flow capacity; Determining a third hard disk outflow capacity of the solid-state hard disk and a fourth hard disk outflow capacity of the mechanical hard disk based on the outflow performance ratio, the first hard disk outflow capacity, and the second hard disk outflow capacity, wherein the ratio of the third hard disk outflow capacity to the fourth hard disk outflow capacity is less than or equal to the outflow performance ratio, the third hard disk outflow capacity is less than or equal to the first hard disk outflow capacity, and the fourth hard disk outflow capacity is less than or equal to the second hard disk outflow capacity; The second outbound flow capacity is determined based on the third hard disk outbound flow capacity and the fourth hard disk outbound flow capacity.

2. The outflow performance evaluation method according to claim 1, wherein: The step of determining the target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity includes: Determining whether the second outbound flow capability is greater than or equal to the network card outbound flow threshold; If the second outbound flow capacity is greater than or equal to the network card outbound flow threshold, then using the network card outbound flow threshold as the target outbound flow capacity; If the second outbound flow capacity is less than the network card outbound flow threshold, the second outbound flow capacity is used as the target outbound flow capacity.

3. The outflow performance evaluation method according to claim 1, wherein: The step of determining the first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold includes: Traverse each hard disk type corresponding to the hard disk in turn, and obtain the current connection card outflow threshold of the connection card corresponding to the current hard disk type; If the hard disk outbound flow capacity of the current hard disk type is greater than or equal to the current connection card outbound flow threshold, the current connection card outbound flow threshold is used as the first outbound flow capacity corresponding to the current hard disk type; If the hard disk outbound flow capability of the current hard disk type is less than the current connection card outbound flow threshold, the current hard disk outbound flow capability is used as the first outbound flow capability corresponding to the current hard disk type.

4. The outflow performance evaluation method according to claim 1, wherein: The step of obtaining the hard disk outflow capabilities corresponding to multiple hard disk types of the server includes: The sum of the outflow capacities of the multiple hard disks included in each hard disk type is calculated respectively, and the sum of the outflow capacities is used as the hard disk outflow capacity of the hard disk of the corresponding type.

5. The outflow performance evaluation method according to any one of claims 1 to 4, characterized in that: Before the step of obtaining the hard disk outflow capabilities corresponding to multiple types of hard disks of the server, the method further includes: The server is tested using an IO pressure model to obtain the outflow capacity of each hard disk in the server, the connection card outflow threshold of each type of hard disk connection card, and the network card outflow threshold.

6. A flow performance evaluation device, characterized in that: The outflow performance evaluation device comprises: A first acquisition module is configured to acquire hard disk outbound flow capabilities corresponding to multiple hard disk types of a server, and acquire a connection card outbound flow threshold corresponding to each connection card of the server; A first determining module, configured to determine a first outbound flow capacity based on the hard disk outbound flow capacity and the connection card outbound flow threshold; a second acquisition module, configured to acquire an outflow performance ratio between a solid-state hard disk and a mechanical hard disk in the hard disk, and determine a second outflow capacity based on the first outflow capacity and the outflow performance ratio; A second determining module is configured to determine a target outbound flow capacity of the server based on the outbound flow threshold of the network card of the server and the second outbound flow capacity; The obtaining of the outbound flow performance ratio between the solid-state hard disk and the mechanical hard disk in the hard disk includes: obtaining a network flow ratio between the network flow of hot business content and the network flow of non-hot business content in the network corresponding to the server; and determining the outbound flow performance ratio based on the network flow ratio; The determining of the second outflow capacity based on the first outflow capacity and the outflow performance ratio includes: obtaining the first hard disk outflow capacity of the solid-state hard disk and the second hard disk outflow capacity of the mechanical hard disk in the first outflow capacity; determining the third hard disk outflow capacity of the solid-state hard disk and the fourth hard disk outflow capacity of the mechanical hard disk based on the outflow performance ratio, the first hard disk outflow capacity and the second hard disk outflow capacity, wherein the ratio of the third hard disk outflow capacity to the fourth hard disk outflow capacity is less than or equal to the outflow performance ratio, the third hard disk outflow capacity is less than or equal to the first hard disk outflow capacity, and the fourth hard disk outflow capacity is less than or equal to the second hard disk outflow capacity; determining the second outflow capacity based on the third hard disk outflow capacity and the fourth hard disk outflow capacity.

7. A device for evaluating outflow performance, characterized in that: The outflow performance evaluation device includes: a memory, a processor, and an outflow performance evaluation program stored in the memory and executable on the processor. When the outflow performance evaluation program is executed by the processor, the steps of the outflow performance evaluation method according to any one of claims 1 to 5 are implemented.

8. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the outflow performance evaluation method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Weight-based internet cache resource service quality evaluation method and system

    CN109547230A

  • Performance evaluation method of hardware resources in specific environment

    CN110633194A