Data transmission method and system
By detecting the data processing efficiency of the controller and switching links, it solves the link congestion problem caused by inefficient controllers in network-attached storage systems, and improves system performance and load balancing.
Patent Information
- Application Number
- CN202310366680.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
In a network-attached storage system, when the data processing efficiency of a certain controller is lower than that of other controllers, it may lead to increased link congestion and data retransmission, affecting system performance.
By detecting the data processing efficiency of the controller, if the efficiency of a controller is lower than that of other controllers, the storage server sends information to the application server, instructing the link to be switched, and the data is migrated to the controller link with higher efficiency for transmission, reducing the data volume of the inefficient controller and sets the inefficient link to a low priority state.
It reduces the number of times the application server retransmits data read and write requests, reduces the probability of link congestion, and improves the performance and load balancing of the storage system.
Smart Images

Figure CN118740743A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud storage technology, and in particular to a data transmission method and system. Background Art
[0002] Network attached storage (NAS) is a data storage method connected to a computer network, and is often used in the field of file storage. The device used to provide data storage services can be called a storage server or NAS device.
[0003] The storage server may include multiple controllers, and the application server can access the controllers through the links between the controllers to read data from the storage server or store data in the storage server. However, when the ability of a controller in the storage server to process data is reduced due to phenomena such as hard disk aging, the efficiency of the controller in processing data will be lower than that of other controllers in the storage server. Then, when the controller receives a new data read and write request, it will discard the new data read and write request due to insufficient data processing capacity, and request the application server to resend the new data read and write request. This will cause the link between the controller and the application server to retransmit data read and write requests more times, which may cause link congestion. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method and system for reducing the probability of an application server retransmitting a data read and write request.
[0005] In a first aspect, a data transmission method is provided, which can be implemented by a storage system, the storage system comprising a storage server and an application server, the storage server comprising multiple controllers, the application server being connected to at least two of the multiple controllers, the method comprising: when a data processing efficiency of a first controller of the at least two controllers is lower than that of any other controller of the at least two controllers except the first controller, the storage server sending first information to the application server; wherein the first information is used to instruct the application server to switch a link, the first information comprising an identifier of a first link, the first link being a link between the first controller and the application server; the application server switches the data to be transmitted through the first link to a second link, the second link being a link between the second controller of the at least two controllers and the application server.
[0006] In the embodiment of the present application, if the data processing efficiency of a certain controller is lower than that of other controllers, the storage server can instruct the application server to migrate the data to be transmitted through a certain link (e.g., the first link) between the controller and the application server to the link of other controllers for transmission. In this way, the amount of data to be processed by the controller with lower data processing efficiency can be reduced, the number of times the application server retransmits data read and write requests can be reduced, the probability of congestion can be reduced, and the performance of the storage system can be improved.
[0007] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller in one cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the input / output operations per second (IOPS) of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; the first controller has a central processing unit (CPU) a first processing unit (CPU) core isolation event; a difference between a first duration taken by the first controller to process a first amount of data and a second duration taken by any one of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; a difference between the CPU occupancy of the first controller and the CPU occupancy of any one of the controllers is greater than a fourth threshold, and the CPU occupancy of the first controller is greater than the CPU occupancy of any one of the controllers; a difference in IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0008] In the above technical solution, if the data processing volume of the first controller in a cycle is less than that of any other controller in the multiple controllers, or if the time taken by the first controller to process a certain amount of data is longer than that of any controller, or the CPU occupancy rate of the first controller is greater than that of any controller, it indicates that the speed of the first controller to process data is slowed down and the data processing capacity is reduced. If a core isolation event occurs in the first controller, it indicates that at least one core used for processing data in the first controller fails and cannot continue to process data, so that the first controller has fewer cores for data processing and the data processing capacity is reduced. If the difference in IOPS of the first controller within two consecutive seconds is greater than the fifth threshold, it indicates that the fluctuation of the data processed by the first controller is large and the performance is unstable. If the data processing efficiency of the first controller is reduced, the first controller may discard the new data due to insufficient data processing capacity when receiving new data, and the first controller may also request the application server to resend the new data, for example, the second information sent by the first controller to the application server is used to request the application server to resend the new data. Then, if the number of times the first controller sends the second information to the application server within the preset time is greater than the sixth threshold, it indicates that the data discarded by the first controller is large, that is, the data processing capacity of the first controller is low.
[0009] In a possible implementation manner, the method further includes: the storage server setting the state of the first link to a low priority state.
[0010] The priority state can be used by the controller to select a link, for example, the controller preferentially selects a link with a high priority. Therefore, the storage server sets the first link to a low priority state, which can reduce the probability that the controller selects the first link to transmit data, thereby helping to improve data transmission efficiency.
[0011] In a possible implementation, the method further includes: the storage server sending third information to the application server, the third information being used to instruct the application server to update the state of the first link to the low priority state; and the application server setting the state of the first link to the low priority state.
[0012] In the above technical solution, the storage server sends the link status to the application server and instructs the application server to perform status synchronization, which helps to reduce the probability of the application server transmitting data through a low-priority link.
[0013] In a possible implementation manner, the method further includes: the application server determining that the link with the smallest link load is the second link; or, the first information is further used to indicate the second link.
[0014] In the above technical solution, the storage server performs load balancing on the links corresponding to all controllers to determine the second link, which can make the load balancing degree of the link and / or the load balancing degree of the controller higher. Among them, the load balancing degree of the link is used to indicate the difference between the amount of data transmitted through different links; the load balancing degree of the controller is used to indicate the difference in the amount of data processed by different controllers. Among them, if the difference is small, it indicates that the load balancing degree is high; if the difference is large, it indicates that the load balancing degree is low. The application server determines the second link by itself. Since the link corresponding to the application server can be less than the link corresponding to the storage server, the number of links that need to be balanced in the load balancing process can be reduced, which helps to improve the efficiency of determining the second link.
[0015] In a possible implementation, the first information is also used to indicate the second link, and the method further includes: the storage server obtains load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determines that the link with the smallest load among the at least one link is the second link; or, the storage server obtains load information of other controllers other than the first controller among the at least two controllers, determines that the controller with the smallest load is the second controller, and determines that the link with the smallest load among the links between the second controller and the application server is the second link.
[0016] In the above technical solution, the storage server selects the link with the smallest load from the links corresponding to all controllers, which can make the load balance between the links higher; the storage server first determines the controller with the smallest load, and selects the link with the smallest load from the controller with the smallest load, which can make the load balance between the controllers higher.
[0017] In a second aspect, a data transmission method is provided, which can be applied to a storage server in a storage system, the storage system comprising the storage server and an application server, the storage server comprising multiple controllers, the application server being connected to at least two of the multiple controllers, the method comprising: when a data processing efficiency of a first controller among the at least two controllers is lower than that of any other controller among the at least two controllers except the first controller, sending first information to the application server; wherein the first information is used to instruct the application server to switch a link, the first information comprises an identifier of a first link, and the first link is a link between the first controller and the application server.
[0018] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0019] In a possible implementation manner, the method further includes: setting the state of the first link to a low priority state.
[0020] In a possible implementation manner, the method further includes: sending third information to the application server, where the third information is used to instruct the application server to update the state of the first link to the low priority state.
[0021] In a possible implementation manner, the first information is further used to indicate a second link, where the second link is a link between a second controller of the at least two controllers and the application server.
[0022] Obtain load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determine that the link with the smallest load among the at least one link is the second link; or, obtain load information of other controllers other than the first controller among the at least two controllers, determine that the controller with the smallest load among them is the second controller, and determine that the link with the smallest load among the links between the second controller and the application service is the second link.
[0023] In a third aspect, a data transmission method is provided, which can be applied to an application server in a storage system, wherein the storage system comprises a storage server and the application server, the storage server comprises multiple controllers, and the application server is connected to at least two of the multiple controllers, the method comprising: receiving first information from the storage server; wherein the first information is sent by the storage server when the data processing efficiency of the first controller among the at least two controllers is lower than that of any other controller among the at least two controllers except the first controller, the first information is used to instruct the application server to switch links, the first information comprises an identifier of a first link, the first link is a link between the first controller and the application server; and the data to be transmitted through the first link is switched to the second link, the second link is a link between the second controller among the at least two controllers and the application server.
[0024] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0025] In a possible implementation, the method further includes: receiving third information from the storage server, the third information being used to indicate that the state of the first link is updated to a low priority state; and setting the state of the first link to the low priority state.
[0026] In a possible implementation manner, the first information is also used to indicate the second link.
[0027] In a possible implementation manner, the method further includes: determining that the link with the smallest link load is the second link.
[0028] In a fourth aspect, a data transmission device is provided, the data transmission device is used to implement the second aspect or any one of the methods in the second aspect, and the data transmission device includes corresponding functional modules, which are respectively used to implement the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0029] In a possible implementation, the data transmission device may be arranged in a storage server in a storage system, or the data transmission device is the storage server, the storage system includes the storage server and an application server, the storage server includes multiple controllers, the application server is connected to at least two of the multiple controllers, and the device includes: a processing module and a communication module, the processing module is used to control the communication module to send first information to the application server when the data processing efficiency of the first controller among the at least two controllers is lower than any other controller among the at least two controllers except the first controller; wherein the first information is used to instruct the application server to switch the link, the first information includes an identifier of the first link, and the first link is the link between the first controller and the application server.
[0030] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0031] In a possible implementation manner, the processing module is further configured to: set the state of the first link to a low priority state.
[0032] In a possible implementation manner, the communication module is further used to: send third information to the application server, where the third information is used to instruct the application server to update the state of the first link to the low priority state.
[0033] In a possible implementation manner, the first information is further used to indicate a second link, where the second link is a link between a second controller of the at least two controllers and the application server.
[0034] In a possible implementation, the processing module is further used to: obtain load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determine that the link with the smallest load among the at least one link is the second link; or, obtain load information of other controllers other than the first controller among the at least two controllers, determine that the controller with the smallest load is the second controller, and determine that the link with the smallest load among the links between the second controller and the application service is the second link.
[0035] In a fifth aspect, another data transmission device is provided, which is used to implement the third aspect or any one of the methods in the third aspect, and the data transmission device includes corresponding functional modules, which are respectively used to implement the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0036] In a possible implementation, the data transmission device may be arranged in an application server in a storage system, or the data transmission device is the application server, the storage system includes a storage server and the application server, the storage server includes multiple controllers, the application server is connected to at least two of the multiple controllers, the device includes a communication module and a processing module, the communication module is used to receive first information from the storage server; wherein, the first information is sent by the storage server when the data processing efficiency of the first controller among the at least two controllers is lower than that of any other controller among the at least two controllers except the first controller, the first information is used to instruct the application server to switch the link, the first information includes an identifier of the first link, the first link is the link between the first controller and the application server; the processing module is used to switch the data to be transmitted through the first link to a second link, the second link is the link between the second controller among the at least two controllers and the application server.
[0037] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0038] In a possible implementation, the communication module is further used to: receive third information from the storage server, the third information being used to indicate that the state of the first link is updated to a low priority state; and the processing module is further used to: set the state of the first link to the low priority state.
[0039] In a possible implementation manner, the first information is also used to indicate the second link.
[0040] In a possible implementation manner, the processing module is further configured to: determine that the link with the smallest link load is the second link.
[0041] In a sixth aspect, a storage system is provided, which includes a storage server and an application server, the storage server includes multiple controllers, and the application server is connected to at least two of the multiple controllers, wherein the storage server is used to send first information to the application server when the data processing efficiency of a first controller among the at least two controllers is lower than that of any controller among the at least two controllers except the first controller; wherein the first information is used to instruct the application server to switch a link, the first information includes an identifier of a first link, the first link is a link between the first controller and the application server; the application server is used to switch data to be transmitted through the first link to a second link, the second link is a link between the second controller among the at least two controllers and the application server.
[0042] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller in one cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the number of reads and writes per second (IOPS) of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend the data read and write request.
[0043] In a possible implementation manner, the storage server is further configured to: set the state of the first link to a low priority state.
[0044] In a possible implementation, the storage server is further used to: send third information to the application server, wherein the third information is used to instruct the application server to update the state of the first link to the low priority state; the application server is further used to: set the state of the first link to the low priority state.
[0045] In a possible implementation manner, the application server is used to determine that the link with the smallest link load is the second link; or the first information is also used to indicate the second link.
[0046] In a possible implementation, the first information is also used to indicate the second link, and the storage server is further used to: obtain load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determine that the link with the smallest load among the at least one link is the second link; or, obtain load information of other controllers other than the first controller among the at least two controllers, determine that the controller with the smallest load is the second controller, and determine that the link with the smallest load among the links between the second controller and the application service is the second link.
[0047] In a seventh aspect, a computing device cluster is provided, which includes at least one computing device, each computing device including a processor and a memory, wherein the processor is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method provided in the second or third aspect above.
[0048] In an eighth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, the computer executes the method provided in the second or third aspect above.
[0049] In a ninth aspect, a computer program product is provided, comprising a computer program, which, when executed on a computer, enables the computer to execute the method provided in the second or third aspect above.
[0050] In a tenth aspect, a chip system is provided, comprising a processor and an interface, wherein the processor is used to call and execute instructions from the interface so that the chip system implements the method provided in the second or third aspect above.
[0051] For the beneficial effects of the second to tenth aspects mentioned above, please refer to the beneficial effects of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1A schematic diagram of the structure of a storage system provided in an embodiment of the present application;
[0053] Figure 2A A schematic diagram of the structure of another storage system provided in an embodiment of the present application;
[0054] Figure 2B A schematic diagram of the structure of another storage system provided in an embodiment of the present application;
[0055] Figure 3 A flowchart of a data transmission method provided in an embodiment of the present application;
[0056] Figure 4 A structural block diagram of a data transmission device provided in an embodiment of the present application;
[0057] Figure 5 A structural block diagram of another data transmission device provided in an embodiment of the present application;
[0058] Figure 6 A computing device provided in an embodiment of the present application;
[0059] Figure 7 A computing device cluster provided in an embodiment of the present application;
[0060] Figure 8 Another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0062] In the embodiments of the present application, "multiple" refers to two or more than two. In view of this, in the embodiments of the present application, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no restriction on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A and B and C may be included. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previously associated objects are in an "or" relationship.
[0063] Unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of the multiple objects.
[0064] At present, the load balancing between the storage server and the application server in the storage system is mainly achieved by obtaining the load balancing degree between the links between each controller and the application server and / or the load balancing degree between different controllers in the storage server, and determining the load balancing degree of the overall link of the storage system through these two load balancing degrees, that is, determining the overall load balancing degree of all links in the storage system. Further, load balancing can be performed based on the overall load balancing degree to achieve load balancing between different controllers. Among them, the load balancing degree of the link is used to indicate the difference between the amount of data transmitted through different links; the load balancing degree of the controller is used to indicate the difference in the amount of data processed by different controllers. Among them, if the difference is small, it indicates that the load balancing degree is high; if the difference is large, it indicates that the load balancing degree is low. Optionally, a small difference can mean that the difference between the highest load and the lowest load is small, and a large difference means that the difference between the highest load and the lowest load is large. In this way, the amount of data to be processed by each controller after load balancing is basically the same. However, if the data processing capability of a controller is reduced due to the aging of the hard disk or other phenomena, it will cause the controller to spend longer time than other controllers to process the same amount of data, and it will not be able to process the new data received in time, so the new data will be discarded, which makes the probability of retransmission of data transmitted by the link between the controller and the application server higher, affecting the performance of the storage system. For example, the storage server includes two controllers, controller 1 and controller 2, wherein controller 1 is connected to the application server through one link, and controller 2 is connected to the application server through two links. If the data processing capability of controller 1 is reduced, after the storage system is load balanced according to the overall load balancing degree of the storage system, the amount of data to be transmitted through the three links is basically the same. However, since the data processing capability of controller 1 is lower than that of controller 2, the probability of retransmission of the link between controller 1 and the application server is higher, affecting the performance of the storage system.
[0065] In view of this, in the embodiment of the present application, the storage server can detect the data processing efficiency of each of the at least two controllers included. If the data processing efficiency of a controller is lower than that of any of the other controllers, it indicates that the data processing capacity of the controller has decreased. At this time, the storage server can instruct the application server to migrate the data to be transmitted through a link corresponding to the controller to the link of other controllers for transmission, thereby reducing the amount of data to be processed by the controller with lower data processing efficiency and improving the performance of the storage system.
[0066] Please refer to Figure 1 , is a schematic diagram of a storage system provided in an embodiment of the present application. The storage system includes a storage server 10 and one or more application servers 20. The storage server 10 can provide data storage services for one or more application servers 20, each application server 20 is installed with a client (not shown in the figure), and the application server 20 can access the storage server 10 through the client to write data to the storage server 10 or read data from the storage server 10.
[0067] Optionally, different application servers 20 can access the storage server 10 through different access protocols to write and / or read data. The storage server 10 can support multiple access protocols, such as the server message block (SMB) protocol or the network file system (NFS) protocol. For example, an application server 20 with a Windows operating system can access the storage server 10 through the SMB protocol to write and / or read data; an application server 20 with an operating system of Linux or Unix can access the storage server 10 through the NFS protocol to write and / or read data.
[0068] Please refer to Figure 2A , is another storage system provided in an embodiment of the present application, the storage system is, for example, Figure 1 A detailed structure of the storage system shown in FIG. The storage system includes a storage server 10 and an application server 20. The application server 20 includes at least one first port, and the storage server 10 includes at least two controllers, each controller including at least one second port. Figure 2A For example, the application server 20 includes two first ports, namely port-a and port-b, the storage server 10 includes two controllers, namely controller A and controller B, controller A includes two second ports, namely port1 and port2, and controller B includes two second ports, namely port3 and port4. Optionally, a first port and a second port can be connected to form a link, and there can be multiple links between the application server 20 and the storage server 10, and the multiple links are, for example, obtained by connecting at least one first port and at least two second ports. Among them, the at least two second ports belong to at least two controllers. It can be understood that the first port and the second port can be physical ports or logical ports, and the embodiment of the present application does not limit the port type.
[0069] Optionally, the multiple links may be obtained by connecting a first port of the application server to at least two second ports of the controller A and the controller B. For example, there are two links between the application server 20 and the storage server 10. The two links are obtained by connecting port-a to port1 and port3 respectively. Alternatively, the multiple links may also be obtained by connecting two first ports of the application server 20 to at least two second ports of the controller A and the controller B. For example, there are two links between the application server 20 and the storage server 10. The two links are obtained by connecting port-a to port1 and port-b to port-4.
[0070] Optionally, the application server 20 may access the controller A and / or the controller B through the multiple links for data transmission. For example, the application server 20 may send a data read and write request to the controller A and / or the controller B through the multiple links to request to read data or write data. When receiving the request, the controller A or the controller B may write or read data based on the request, and send feedback information to the application server 20. For example, if the application server 20 sends a data read request to the controller A through the multiple links, the controller A reads data based on the data read request, such as reading data from a distributed file system, and sends the read data to the application server 20. If the application server 20 sends a data write request to the controller A through the multiple links, the controller A may write the data sent by the application server 20 into the distributed file system, and send feedback information to the application server 20 that the data has been written.
[0071] Optionally, when the storage server 10 provides data storage services for multiple application servers 20, the multiple application servers 20 may also be connected to the storage server 10 via a switch. Figure 2B , the storage system further includes a switch 30, each first port of the application server 20 can establish a connection with the switch 30, and the switch 30 can establish a connection with each second port of each controller of the storage server 10. At this time, each link between the application server 20 and the storage server 10 includes a first sub-link obtained by connecting the first port of the application server 20 with the switch 30 and a second sub-link obtained by connecting the switch 30 with the second port of the controller. The application server 20 can send a data read and write request to the switch 30 through the first sub-link, and the request can carry the identifier of the second port. The switch 30 can send the request to the controller through the corresponding second sub-link based on the identifier carried in the request.
[0072] In the above technical solution, the application server 20 is connected to the controller of the storage server through multiple links, so that when a link fails, for example, the port of the application server 20 or the port of the controller has hardware aging, failure, power failure or human error, the business of the failed port can be quickly switched to other ports, and when the failed port resumes working, it can take over the business switched to other ports again. In this way, the storage resources of the storage server can be fully utilized, and the stable transmission of business data can be ensured.
[0073] Based on the above content, the method provided in the embodiment of the present application is introduced below in conjunction with the drawings in the specification.
[0074] Please refer to Figure 3 , is a flow chart of a data transmission method provided in an embodiment of the present application, which can be performed by Figure 1 , Figure 2A or Figure 2B The storage system implementation shown.
[0075] S301: When the data processing efficiency of a first controller among at least two controllers is lower than that of any controller other than the first controller among the at least two controllers, the storage server 10 sends first information to the application server 20. Accordingly, the application server 20 receives the first information from the storage server 10. The at least two controllers are part or all of the controllers included in the storage server 10.
[0076] During the use of the controller, the data processing capability of a controller may be reduced due to hardware aging and other issues. For example, the data processing efficiency of the controller may be lower than that of other controllers in the storage server 10. When the controller receives new data, it will discard the new data due to insufficient data processing capability and request the application server to resend the new data. This will cause a large number of data retransmissions on the link between the controller and the application server, which may cause link congestion and affect the performance of the storage system.
[0077] Therefore, optionally, the storage server 10 may detect each of the at least two controllers included in the storage server 10, such as timing, periodic or non-periodic detection, to determine the data processing efficiency of the at least two controllers. Thus, the storage server 10 can determine whether there is a controller whose data processing efficiency is lower than the processing efficiency of other controllers except the controller according to the detection result. Alternatively, the storage server 10 may not need to detect the controller, for example, each of the part or all of the controllers included in the storage server may send the data processing efficiency of each controller to the storage server, such as timing, periodic or non-periodic transmission, and the storage server 10 may obtain the data processing efficiency of this part or all of the controllers, thereby determining whether there is a controller whose data processing efficiency is lower than the processing efficiency of other controllers except the controller. Among them, if the data processing efficiency of the first controller is lower than any controller except the first controller among the at least two controllers, the storage server 10 may send the first information to reduce the amount of data to be processed by the controller with lower data processing efficiency, and reduce the probability of the application server 20 retransmitting data read and write requests. Alternatively, if there is no controller whose data processing efficiency is lower than the data processing efficiency of other controllers, the storage server 10 may not send the first information.
[0078] Among them, the data processing efficiency of the first controller is lower than that of any controller other than the first controller among the at least two controllers, which can be understood as the data processing efficiency of the first controller is lower than the data processing efficiency of all controllers other than the first controller among the at least two controllers. For example, there are 3 controllers, namely controller 1 to controller 3. The data processing efficiency of controller 1 is lower than the data processing efficiency of any controller other than controller 1, which can be understood as the data processing efficiency of controller 1 is lower than the data processing efficiency of controller 2 and also lower than the data processing efficiency of controller 3.
[0079] Optionally, the storage server 10 may determine whether the data processing efficiency of any controller is lower than the processing efficiency of other controllers except the controller within the first time period. If the data processing efficiency of the first controller is lower than any controller of the at least two controllers except the first controller within the first time period, the storage server 10 may send the first information, otherwise the storage server 10 may not send the first information. Through the first time period, the stability of the judgment result can be increased, the probability of business switching back and forth can be reduced, and the information interaction between the storage server 10 and the application server 20 can be reduced, thereby reducing the transmission overhead.
[0080] Among them, the data processing efficiency of the first controller is lower than that of any one of the at least two controllers except the first controller within the first time period. It can be understood that the data processing efficiency of the first controller can be determined once or multiple times within the first time period, and the data processing efficiency determined each time is lower than that of any one of the at least two controllers except the first controller; or, the average value of the data processing efficiency determined this time or multiple times is lower than that of any one of the at least two controllers except the first controller.
[0081] Optionally, the data processing efficiency of the first controller is lower than that of any other controller, including one or more of the following: the difference between the amount of data processed by any other controller and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any other controller is greater than the amount of data processed by the first controller; the difference between the IOPS of any other controller and the IOPS of the first controller is greater than a second threshold, and the IOPS of any other controller is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any other controller to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any other controller is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any other controller; the difference in IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; and / or, within a preset duration, the number of times the first controller sends the second information to the application server 20 is greater than a sixth threshold, and the second information is used to request the application server 20 to resend the data read and write request.
[0082] Exemplarily, the storage server 10 may periodically count the amount of data processed by each controller in one cycle, determine the data processing efficiency of each of the at least two controllers based on the data volume, and determine whether the first controller exists based on the data processing efficiency of each controller. Optionally, when determining the data processing efficiency of each of the at least two controllers based on the data volume, the data processing efficiency of the controller determined each time in the aforementioned one or more times can be reflected by the amount of data processed in one cycle. And, the average value of the data processing efficiency determined one or more times in the aforementioned can be reflected by the total amount of data processed in the first time period.
[0083] For example, the storage server 10 can count the amount of input / output (IO) data of each controller in one cycle, and calculate the difference in the amount of data processed by any two controllers in the cycle. If the storage server 10 calculates that the absolute value of the difference in the amount of data processed between the first controller and any other controller in the cycle is greater than a first threshold, it indicates that the data processing efficiency of the first controller is lower than that of the other controllers in the at least two controllers, that is, the first controller exists. Optionally, the amount of data processed by a controller in one cycle can also be referred to as the IO bandwidth of the controller.
[0084] The storage server 10 may also periodically count the IOPS of each controller, determine the data processing efficiency of each of the at least two controllers based on the IOPS of each controller, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0085] For example, the storage server 10 may periodically obtain the number of times each controller performs data writing and reading within 1 second, calculate the total number of times each controller performs data writing and reading tasks within 1 second, and calculate the absolute value of the difference between the total number of times any two controllers perform data writing and reading tasks within 1 second. If the storage server 10 calculates that the absolute value of the difference between the total number of times the first controller and any other controller perform data writing and reading tasks within 1 second is greater than the second threshold, it indicates that the data processing efficiency of the first controller is lower than that of the other controllers of the at least two controllers, that is, the first controller exists.
[0086] The storage server 10 may also detect the IOPS of each controller within two consecutive seconds, determine the data processing efficiency of each of the at least two controllers based on the IOPS, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0087] For example, the storage server 10 can calculate the difference in IOPS of each controller in two adjacent seconds. If the storage server 10 calculates that the absolute value of the difference in IOPS of the first controller in two adjacent seconds is greater than the fifth threshold, it indicates that the data processing efficiency of the first controller is lower than that of other controllers among the at least two controllers, that is, the first controller exists.
[0088] The storage server 10 may also detect whether a CPU core isolation event occurs in each controller, determine the data processing efficiency of each of the at least two controllers based on the detection result, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0089] For example, a controller may include multiple CPUs, each CPU includes multiple processing cores (referred to as cores in the embodiments of the present application). When a core in a CPU fails, in order to allow the CPU to continue to work, the failed core will be isolated and not work, so that other cores can continue to work, that is, the CPU can continue to provide services. Therefore, if a core isolation event occurs in a CPU of a controller, it indicates that the CPU of the controller has fewer cores available, and the data processing capacity of the CPU of the controller is reduced, that is, there is a first controller, where the first controller is the controller corresponding to the CPU where the core isolation event occurs.
[0090] The storage server 10 can also periodically count the time taken by each controller to process the same amount of data (for example, the first amount of data), determine the data processing efficiency of each controller of the at least two controllers based on the time taken by each controller to process the first amount of data, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0091] For example, the storage server 10 can obtain the time taken by each controller to process the data of the first data volume, and calculate the difference in time taken by any two controllers to process the data of the first data volume. If the storage server 10 calculates that the absolute value of the difference in time taken by the first controller and any one of the controllers to process the data of the first data volume is greater than the third threshold value, it indicates that the data processing efficiency of the first controller is lower than that of the other controllers among the at least two controllers, that is, the first controller exists. Taking the first data volume as 5G bytes and the third threshold as 200μs as an example, if the storage server 10 obtains that the time taken by the first controller to process 5GB of data is 1ms, and the time taken by any one of the controllers to process 5GB of data is 500μs, the difference in time taken by the first controller and any one of the controllers to process 5GB of data is 300μs, which is greater than 200μs, and the storage server 10 can determine that the first controller exists.
[0092] Optionally, when the time taken by the first controller to process the first data volume is longer than the time taken by any controller to process the first data volume, it indicates that the waiting time required for the data to be processed by the first controller is longer than the waiting time required for the data to be processed by any controller, and the waiting time can be referred to as IO latency.
[0093] The storage server 10 can obtain the time taken by each controller to process the first amount of data twice in succession, determine the data processing efficiency of each of the at least two controllers based on the time, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0094] For example, the storage server 10 can calculate the difference in the time taken by each controller to process the first data volume twice in a row. If the storage server 10 calculates that the time taken by the first controller to process the first data volume twice in a row is greater than a threshold, it indicates that the first controller processes data sometimes fast and sometimes slow, that is, the first controller is unstable. The storage server 10 can determine the existence of the first controller.
[0095] The storage server 10 may also periodically count the CPU occupancy of each controller, determine the data processing efficiency of each of the at least two controllers based on the CPU occupancy of each controller, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0096] For example, the storage server 10 can calculate the difference in CPU occupancy between any two controllers. If the absolute value of the difference in CPU occupancy between the first controller and any one of the controllers calculated by the storage server 10 is greater than the fourth threshold, it indicates that the data processing efficiency of the first controller is lower than that of the other controllers of the at least two controllers, that is, the first controller exists. Taking the fourth threshold of 5% as an example, if the CPU occupancy of the first controller obtained by the storage server 10 is 70%, the CPU occupancy of any one of the controllers is 50%, and the difference in CPU occupancy between the first controller and any one of the controllers is 20%, which is greater than 5%, the storage server 10 can determine that the first controller exists.
[0097] The storage server 10 can also periodically count the number of times each controller sends the second information to the application server 20 to instruct the application server 20 to resend data within a preset time period, determine the data processing efficiency of each controller of the at least two controllers based on the number, and determine whether the first controller exists based on the data processing efficiency of each controller.
[0098] When the data processing capability of the controller decreases, it indicates that the data processing pressure of the controller is relatively large, and the controller may discard the data received from the application server 20 and send the second information to the application server 20. Therefore, if the storage server 10 determines that the number of times the first controller sends the second information to the application server 20 within the preset time period exceeds the sixth threshold, it indicates that the data processing efficiency of the first controller is lower than that of the other controllers of the at least two controllers, that is, the first controller exists.
[0099] That is, the storage server 10 can determine whether it is necessary to balance the load between controllers based on the efficiency of the controllers in processing data, which helps to reduce the probability of the application server 20 retransmitting data read and write requests.
[0100] In some embodiments, the storage server 10 may also detect the load of the second port included in each controller, and / or the load of the link between each controller and the application server 20, and determine whether it is necessary to execute S301 based on the load. For example, if it is determined based on the load that the loads of different ports or links are uneven, that is, load balancing is required, the storage server 10 may execute S301, otherwise, S301 is not executed. The load includes, for example, IO bandwidth, IO latency and / or IOPS, etc. Optionally, if the IO of a second port or a link is 0 within a certain period of time, it indicates that the second port or link is faulty, such as a port network disconnection.
[0101] When the storage server 10 determines that the first controller exists, it can send the first information to the application server 20. Optionally, the storage server 10 can provide data storage services for multiple application servers 20. Therefore, each of the at least two controllers can process data from multiple application servers 20, and when the storage server 10 sends the first information to the application server 20, it can send the first information to multiple application servers 20. For example, the storage server 10 and the application server 20 are connected as follows: Figure 2B In the manner shown, the first link determined by the storage server 10 is a sub-link among multiple second sub-links (for example, sub-link 1). When the storage server 10 sends the first information, it can send the first information to all application servers 20 that transmit data with the first controller through the sub-link 1, so that all application servers 20 that transmit data with the first controller through the sub-link 1 perform link switching.
[0102] Optionally, the first information may include an identifier of a link (e.g., a first link) that needs to be switched. The first link may be, for example, one link or multiple links. The first link may be randomly selected by the storage server 10 from the links corresponding to the first controller, or may be selected by the storage server 10 from the links corresponding to the first controller according to the link load. This application does not limit the number of links of the first link and the way in which the storage server 10 determines the first link. In the following embodiments, the first link including one link is taken as an example for description.
[0103] Optionally, when each controller processes data from multiple application servers 20, if the number of CPUs processing data in the controller is less than the number of application servers 20, one CPU is required to process data from multiple application servers 20. For example, there are two CPUs in controller A to process data. If the controller A needs to process data from 10 application servers 20, each CPU in the controller A can process data from 5 application servers 20. At this time, each CPU processes the data of the multiple application servers 20 based on the principle of time slicing. For example, after CPU1 processes the data of the first application server 20 for a certain period of time, it starts to process the data of the second application server 20, and after CPU1 processes the data of the second application server 20 for the certain period of time, it starts to process the data of the third application server 20, and after processing the data of the last application server 20, it starts to process the data of the first application server 20.
[0104] S302: The application server 20 switches the data to be transmitted through the first link to the second link.
[0105] Optionally, the second link is a link between the second controller of the at least two controllers and the application server 20. The second link may be determined by the application server 20 itself, or the second link may be specified by the storage server 10. The second link may be one link or multiple links. The embodiment of the present application does not limit the number of second links. In the following embodiment, the second link includes one link as an example for description.
[0106] If the second link is specified by the storage server 10, the storage server 10 may determine the second link in the following manner:
[0107] Mode 1: The storage server 10 may obtain the load of at least one link corresponding to a controller other than the first controller among the multiple links, select a link with the smallest link load from the at least one link, and determine the link as the second link.
[0108] Mode 2: The storage server 10 may determine the load of other controllers among the at least two controllers except the first controller, and select the controller with the smallest load from the other controllers as the target controller, and the storage server 10 may obtain the load of the link corresponding to the target controller, and select the link with the smallest link load from the links corresponding to the target controller, and determine the link as the second link. The data processing efficiency of other controllers among the at least two controllers except the first controller is substantially the same.
[0109] If the second link is determined by the application server 20 itself, the manner in which the application server 20 determines the second link may refer to the above-mentioned manner 1, which will not be described in detail herein.
[0110] Optionally, the storage server 10 may also set the state of the first link to a low priority state (also referred to as a degraded state), and send third information to the application server 20 to instruct the application server 20 to update the state of the first link to the degraded state. Therefore, when the application server 20 receives the third information, it may also set the state of the first link to the degraded state.
[0111] Optionally, after the application server 20 switches the data to be transmitted through the first link to the second link, there is no data transmission on the first link, so the storage server 10 can also perform link balancing on the link corresponding to the first controller, for example, the storage server 10 can migrate the data transmitted by other links other than the first link in the link between the first controller and the application server to the first link for transmission. Therefore, optionally, the storage server 10 can also send fourth information to at least one application server 20 that transmits data with the first controller through the other links, for instructing the at least one application server 20 to switch part of the data to be transmitted through the other links to the first link.
[0112] In the above technical solution, after the application server 20 switches the data to be transmitted through the first link to the second link, the efficiency of processing data by the at least two controllers can be made roughly the same. Take the storage server 10 as an example, which includes two controllers, namely controller 1 and controller 2, the first link is the link of controller 1, and the second link is the link of controller 2. Before balancing, the IO bandwidth of controller 1 is 5GB / S, the IO delay is 1ms, and the CPU utilization is 100%; the IO bandwidth of controller 2 is 5GB / S, the IO delay is 500us, and the CPU utilization is 50%. After balancing, the IO bandwidth of controller 1 is 3GB / S, the IO delay is 500us, and the CPU utilization is 70%; the IO bandwidth of controller 2 is 7GB / S, the IO delay is 500us, and the CPU utilization is 70%. It can be seen that after balancing, the IO delay of controller 1 and controller 2 is the same, the efficiency of controller 1 and controller 2 in processing data is the same, and the CPU utilization of controller 1 and controller 2 is also the same, which reduces the probability of application server 10 retransmitting data read and write requests and improves the performance of the storage system.
[0113] In combination with the above method embodiments, the embodiments of the present application also provide a data transmission device, which is used to execute the method executed by the storage server 10 in the above method embodiments, or to execute the method executed by the application server 20 in the above method embodiments.
[0114] Please refer to Figure 4, is a data transmission device provided in an embodiment of the present application, the data transmission device is used to execute the method executed by the storage server 10 in the above method embodiment, the data transmission device includes a processing module 401 and a communication module 402, the processing module 401 is used to control the communication module 402 to send first information to the application server when the data processing efficiency of the first controller among the at least two controllers is lower than any controller among the at least two controllers except the first controller; wherein the first information is used to instruct the application server to switch the link, the first information includes the identifier of the first link, and the first link is the link between the first controller and the application server.
[0115] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0116] In a possible implementation manner, the processing module 401 is further configured to: set the state of the first link to a low priority state.
[0117] In a possible implementation, the communication module 402 is further used to: send second information to the application server, where the second information is used to request the application server to update the state of the first link to the low priority state.
[0118] In a possible implementation manner, the first information is further used to indicate a second link, where the second link is a link between a second controller of the at least two controllers and the application server.
[0119] In a possible implementation, the processing module 401 is further used to: obtain load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determine that the link with the smallest load among the at least one link is the second link; or, obtain load information of other controllers other than the first controller among the at least two controllers, determine that the controller with the smallest load is the second controller, and determine that the link with the smallest load among the links between the second controller and the application service is the second link.
[0120] Please refer to Figure 5 , is a data transmission device provided in an embodiment of the present application, the data transmission device is used to execute the method executed by the application server 20 in the above method embodiment, the data transmission device includes a communication module 501 and a processing module 502, the communication module 501 is used to receive first information from the storage server; wherein, the first information is sent by the storage server when the data processing efficiency of the first controller among the at least two controllers is lower than that of any controller among the at least two controllers except the first controller, the first information is used to instruct the application server to switch the link, the first information includes the identifier of the first link, the first link is the link between the first controller and the application server; the processing module 502 is used to switch the data to be transmitted through the first link to the second link, the second link is the link between the second controller among the at least two controllers and the application server.
[0121] In a possible implementation manner, the data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: the difference between the amount of data processed by any of the controllers and the amount of data processed by the first controller within a cycle is greater than a first threshold, and the amount of data processed by any of the controllers is greater than the amount of data processed by the first controller; the difference between the IOPS of any of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any of the controllers is greater than the IOPS of the first controller; a CPU core isolation event occurs in the first controller; the difference between a first duration used by the first controller to process a first amount of data and a second duration used by any of the controllers to process the first amount of data is greater than a third threshold, and the first duration is greater than the second duration; the difference between the CPU occupancy rate of the first controller and the CPU occupancy rate of any of the controllers is greater than a fourth threshold, and the CPU occupancy rate of the first controller is greater than the CPU occupancy rate of any of the controllers; the difference between the IOPS of the first controller within two adjacent seconds is greater than a fifth threshold; or, within a preset duration, the number of times the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend a data read and write request.
[0122] In a possible implementation, the communication module 501 is further used to: receive second information from the storage server, the second information being used to request that the state of the first link be updated to a low priority state; the processing module 502 is further used to: set the state of the first link to the low priority state.
[0123] In a possible implementation manner, the first information is further used to indicate an identifier of the second link.
[0124] In a possible implementation, the processing module 502 is further used to obtain load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determine that the link with the smallest load among the at least one link is the second link.
[0125] The present application also provides a computing device 600. Figure 6 As shown, the computing device 600 includes: a bus 601, a processor 602, a memory 603 and a communication interface 604. The processor 602, the memory 603 and the communication interface 604 communicate with each other through the bus 601. The computing device 600 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 600.
[0126] The bus 601 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus 601 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 601 may include a path for transmitting information between various components of the computing device 600 (for example, the memory 603, the processor 602, and the communication interface 604).
[0127] The processor 602 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0128] The memory 603 may include a volatile memory, such as a random access memory (RAM). The processor 602 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0129] The memory 603 stores executable program codes, and the processor 602 executes the executable program codes to respectively implement the functions of the aforementioned processing module 401 and the communication module 402, or to implement the functions of the aforementioned communication module 501 and the processing module 502, thereby implementing the data transmission method. That is, the memory 603 stores instructions for executing the data transmission method.
[0130] Alternatively, the memory 603 stores executable codes, and the processor 602 executes the executable codes to respectively implement the functions of the aforementioned storage server and application server, thereby implementing the data transmission method. That is, the memory 603 stores instructions for executing the data transmission method.
[0131] The communication interface 604 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 600 and other devices or a communication network.
[0132] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0133] like Figure 7 As shown, the computing device cluster includes at least one computing device 600. The memory 603 in one or more computing devices 600 in the computing device cluster may store the same instructions for executing the data transmission method.
[0134] In some possible implementations, the memory 603 of one or more computing devices 600 in the computing device cluster may also store partial instructions for executing the data transmission method. In other words, the combination of one or more computing devices 600 may jointly execute instructions for executing the data transmission method.
[0135] It is understandable that the memory 603 in different computing devices 600 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the storage server. That is, the instructions stored in the memory 603 in different computing devices 600 can implement the functions of one or more modules in the application server and the storage server.
[0136] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 8 A possible implementation is shown. Figure 8 As shown, two computing devices 600A and 600B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device. In this type of possible implementation, the memory 603 in the computing device 600A stores instructions for executing the function of the storage server.
[0137] It should be understood that Figure 8 The functions of the computing device 600A shown in FIG. 6A may also be completed by multiple computing devices 600. Similarly, the functions of the computing device 600B may also be completed by multiple computing devices 600.
[0138] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Figure 7and Figure 8 The connection mode of the computing device cluster is different in that the memory 603 in one or more computing devices 600 in the computing device cluster may store the same instructions for executing the data transmission method.
[0139] In some possible implementations, the memory 603 of one or more computing devices 600 in the computing device cluster may also store partial instructions for executing the data transmission method. In other words, the combination of one or more computing devices 600 may jointly execute instructions for executing the data transmission method.
[0140] It is understandable that the memory 603 in different computing devices 600 in the computing device cluster can store different instructions for executing part of the functions of the storage system. That is, the instructions stored in the memory 603 in different computing devices 600 can implement the functions of one or more devices in the application server and the storage server.
[0141] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the data transmission method.
[0142] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the data transmission method.
[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data transmission method, It is characterized in that Applied to a storage system, the storage system includes a storage server and an application server, the storage server includes a plurality of controllers, the application server is connected to at least two of the plurality of controllers, the method includes: When the data processing efficiency of the first controller among the at least two controllers is lower than that of any controller other than the first controller among the at least two controllers, the storage server sends first information to the application server; wherein the first information is used to instruct the application server to switch a link, the first information includes an identifier of a first link, and the first link is a link between the first controller and the application server; The application server switches the data to be transmitted through the first link to a second link, where the second link is a link between a second controller of the at least two controllers and the application server.
2. The method according to claim 1, It is characterized in that The data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: The difference between the amount of data processed by any one of the controllers and the amount of data processed by the first controller in one cycle is greater than a first threshold, and the amount of data processed by any one of the controllers is greater than the amount of data processed by the first controller; The difference between the number of reads and writes per second (IOPS) of any one of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any one of the controllers is greater than the IOPS of the first controller; A central processing unit (CPU) core isolation event occurs in the first controller; A difference between a first time duration taken by the first controller to process a first amount of data and a second time duration taken by any one of the controllers to process the first amount of data is greater than a third threshold, and the first time duration is greater than the second time duration; A difference between the CPU occupancy of the first controller and the CPU occupancy of any one of the controllers is greater than a fourth threshold, and the CPU occupancy of the first controller is greater than the CPU occupancy of any one of the controllers; The difference in IOPS of the first controller within two consecutive seconds is greater than a fifth threshold; or, Within a preset time period, the number of times that the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend the data read and write request.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: The storage server sets the state of the first link to a low priority state.
4. The method according to claim 3, It is characterized in that The method further comprises: The storage server sends third information to the application server, where the third information is used to instruct the application server to update the state of the first link to the low priority state; The application server sets the state of the first link to the low priority state.
5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: The application server determines that the link with the smallest link load is the second link; or, The first information is also used to indicate the second link.
6. The method according to claim 5, It is characterized in that The first information is also used to indicate the second link, and the method further includes: The storage server obtains load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determines that the link with the smallest load among the at least one link is the second link; or, The storage server obtains load information of other controllers among the at least two controllers except the first controller, determines that the controller with the smallest load is the second controller, and determines that the link with the smallest load among the links between the second controller and the application server is the second link.
7. A storage system, It is characterized in that The storage system includes a storage server and an application server, the storage server includes a plurality of controllers, and the application server is connected to at least two of the plurality of controllers, wherein: The storage server is configured to send first information to the application server when the data processing efficiency of the first controller among the at least two controllers is lower than that of any controller among the at least two controllers except the first controller; wherein the first information is used to instruct the application server to switch a link, the first information includes an identifier of a first link, and the first link is a link between the first controller and the application server; The application server is used to switch the data to be transmitted through the first link to a second link, where the second link is a link between a second controller of the at least two controllers and the application server.
8. The storage system according to claim 7, It is characterized in that The data processing efficiency of the first controller is lower than that of any of the controllers, including one or more of the following: The difference between the amount of data processed by any one of the controllers and the amount of data processed by the first controller in one cycle is greater than a first threshold, and the amount of data processed by any one of the controllers is greater than the amount of data processed by the first controller; The difference between the number of reads and writes per second (IOPS) of any one of the controllers and the IOPS of the first controller is greater than a second threshold, and the IOPS of any one of the controllers is greater than the IOPS of the first controller; A central processing unit (CPU) core isolation event occurs in the first controller; A difference between a first time duration taken by the first controller to process a first amount of data and a second time duration taken by any one of the controllers to process the first amount of data is greater than a third threshold, and the first time duration is greater than the second time duration; A difference between the CPU occupancy of the first controller and the CPU occupancy of any one of the controllers is greater than a fourth threshold, and the CPU occupancy of the first controller is greater than the CPU occupancy of any one of the controllers; The difference in IOPS of the first controller within two consecutive seconds is greater than a fifth threshold; or, Within a preset time period, the number of times that the first controller sends the second information to the application server is greater than a sixth threshold, and the second information is used to request the application server to resend the data read and write request.
9. The storage system according to claim 7 or 8, It is characterized in that The storage server is also used for: The state of the first link is set to a low priority state.
10. The storage system according to claim 9, It is characterized in that The storage server is further used to: send third information to the application server, where the third information is used to instruct the application server to update the state of the first link to the low priority state; The application server is further configured to set the state of the first link to the low priority state.
11. The storage system according to any one of claims 7 to 10, It is characterized in that The application server is configured to determine that the link with the smallest link load is the second link; or, The first information is also used to indicate the second link.
12. The storage system according to claim 11, It is characterized in that The first information is further used to indicate the second link, and the storage server is further used to: Obtaining load information of at least one link between the application server and a controller other than the first controller among the at least two controllers, and determining that the link with the smallest load among the at least one link is the second link; or, Obtain load information of other controllers among the at least two controllers except the first controller, determine that the controller with the smallest load is the second controller, and determine that the link with the smallest load among the links between the second controller and the application service is the second link.
13. A computing device cluster, It is characterized in that comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method executed by the storage server or the application server as claimed in any one of claims 1 to 6.
14. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method executed by the storage server or the application server as claimed in any one of claims 1 to 6.
15. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method executed by the storage server or the application server as claimed in any one of claims 1 to 6.
