Multi-link load balancing determination method, device, computer equipment and storage medium
By calculating the first link equalization degree of each controller in the storage system and the second link equalization degree between the controllers, the problem of the inability to detect the overall link equalization degree of the storage system in the prior art is solved, and the precise detection and adjustment of the link equalization degree of the storage system is realized, ensuring the stable operation of the system.
Patent Information
- Application Number
- CN202111188145.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-10-12
AI Technical Summary
The prior art lacks a method for detecting the overall link equality of the storage system, and it is impossible to detect the overall link equality of the storage system.
By calculating the first link equalization degree of each controller in the target storage system and the second link equalization degree between the controllers, and calculating the overall link equalization degree based on these indicators. The specific steps include obtaining performance index data of each link, calculating the first link equalization of each controller, calculating the second link equalization between the controllers, and performing weighted sums based on the weight value to calculate the overall link equalization.
The overall link equality of the storage system is detected, the intelligence and accuracy of link equality detection is improved, and the link load balancing algorithm or isolation of abnormal links can be adjusted in time, thereby ensuring the stable operation of the storage system.
Smart Images

Figure CN113961340B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of storage systems, and in particular to a method, device, computer equipment and storage medium for determining a multi-link load balancing degree. Background Art
[0002] To ensure efficient and stable operation of the storage system, the storage system uses multipath software to aggregate multiple links. When the business is running normally, multiple links carry the business at the same time, realizing link-level high availability of the storage system. In order to achieve stable operation of the storage system, it is necessary to detect the overall link balance of the storage system. However, there is no method for detecting the overall link balance of the storage system in the prior art, and it is impossible to detect the overall link balance of the storage system. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for determining a multi-link load balancing degree in response to the above technical problems.
[0004] In a first aspect, a method for determining a multi-link load balance is provided, the method comprising: calculating a first link balance of each controller in a target storage system, wherein the target storage system comprises a plurality of controllers, each of the controllers corresponding to a plurality of links; calculating a second link balance between the controllers in the target storage system; and calculating an overall link balance of the target storage system based on the first link balance and the second link balance.
[0005] In one of the embodiments, the calculation of the first link balance of each controller in the target storage system includes: for each controller, obtaining performance indicator data of each link corresponding to the controller, and calculating the first link balance of the controller according to the performance indicator data.
[0006] In one of the embodiments, before obtaining the performance indicator data of each link corresponding to the controller, the method also includes: obtaining the ownership information corresponding to each link in the target storage system, the ownership information is used to indicate the controller to which the corresponding link belongs; and determining the link corresponding to the controller based on the obtained ownership information.
[0007] In one embodiment, the calculating the second link balance between the controllers in the target storage system includes: calculating the second link balance between the controllers according to the first link balance of each of the controllers.
[0008] In one of the embodiments, the overall link balance of the target storage system is calculated based on the first link balance and the second link balance, including: obtaining weight values corresponding to the first link balances and the weight value corresponding to the second link balance; and performing weighted summation processing on the first link balances and the second link balances according to the obtained weight values to calculate the overall link balance of the target storage system.
[0009] In one of the embodiments, obtaining the weight values corresponding to each of the first link balances and the weight values corresponding to the second link balances includes: obtaining the carrying storage capacity of each of the controllers and the load balancing mode of each of the controllers; determining the weight values corresponding to each of the first link balances and the weight values corresponding to the second link balances according to each of the carrying storage capacities and the load balancing modes.
[0010] In one of the embodiments, the method further includes: if the overall link balance is less than a first threshold, adjusting a link load balancing algorithm of the target storage system.
[0011] In one of the embodiments, the method further includes: if the overall link balance is less than a second threshold, isolating the most abnormal link; wherein the second threshold is less than the first threshold.
[0012] In a second aspect, a multi-link load balance determination device is provided, which includes: a first calculation module, used to calculate the first link balance of each controller in a target storage system, wherein the target storage system includes multiple controllers, and each controller corresponds to multiple links; a second calculation module, used to calculate the second link balance between the controllers in the target storage system; and a third calculation module, used to calculate the overall link balance of the target storage system based on the first link balance and the second link balance.
[0013] In one of the embodiments, the first calculation module is specifically used to: for each controller, obtain performance indicator data of each link corresponding to the controller, and calculate the first link balance of the controller according to the performance indicator data.
[0014] In one of the embodiments, the device also includes: an acquisition module, used to obtain the ownership information corresponding to each link in the target storage system, and the ownership information is used to indicate the controller to which the corresponding link belongs; a determination module, used to determine the link corresponding to the controller based on the acquired ownership information.
[0015] In one embodiment, the second calculation module is specifically used to calculate the second link balance between the controllers according to the first link balance of each controller.
[0016] In one embodiment, the third calculation module is specifically used to: obtain the weight values corresponding to each of the first link balances and the weight value corresponding to the second link balance; based on the obtained weight values, perform weighted sum processing on each of the first link balances and the second link balances to calculate the overall link balance of the target storage system.
[0017] In one embodiment, the third calculation module is specifically used to: obtain the carrying storage capacity of each controller and the load balancing mode of each controller; determine the weight value corresponding to each first link balance and the weight value corresponding to the second link balance according to each carrying storage capacity and each load balancing mode.
[0018] In one of the embodiments, the device further includes: an adjustment module, configured to adjust a link load balancing algorithm of the target storage system if the overall link balance is less than a first threshold.
[0019] In one of the embodiments, the device further includes: an isolation module, configured to isolate the most abnormal link if the overall link balance is less than a second threshold; wherein the second threshold is less than the first threshold.
[0020] In a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0021] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.
[0022] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0023] In an embodiment of the present application, a method for calculating the overall link balance of a target storage system is provided. The method calculates the overall link balance of the target storage system based on the calculated first link balance of each controller and the second link balance between the controllers, thereby realizing the detection of the overall link balance of the target storage system. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present application;
[0025] Figure 2 A flowchart of a method for determining a multi-link load balancing degree provided in an embodiment of the present application;
[0026] Figure 3 A flowchart of a technical process for calculating the overall link balance of a target storage system provided by an embodiment of the present application;
[0027] Figure 4 A flowchart of another method for determining a multi-link load balancing degree provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of a link balance detection system provided in an embodiment of the present application;
[0029] Figure 6 A block diagram of a multi-link load balancing determination device provided in an embodiment of the present application;
[0030] Figure 7 A block diagram of another multi-link load balancing degree determination device provided in an embodiment of the present application;
[0031] Figure 8 An internal structure diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] To ensure efficient and stable operation of the storage system, the storage system uses multipath software to aggregate multiple links. When the business is running normally, multiple links carry the business at the same time, realizing link-level high availability of the storage system. In order to achieve stable operation of the storage system, it is necessary to detect the overall link balance of the storage system. However, there is no method for detecting the overall link balance of the storage system in the prior art, and it is impossible to detect the overall link balance of the storage system.
[0034] In view of this, embodiments of the present application provide a method, apparatus, device and storage medium for determining a multi-link load balance, which can detect the overall link balance of a storage system.
[0035] See also Figure 1 , which shows a schematic diagram of the implementation environment involved in the multi-link load balancing determination method provided in the embodiment of the present application. Figure 1 As shown, the execution subject of the multi-link load balancing determination method provided in the embodiment of the present application can be a computer device or a computer device cluster composed of multiple computer devices. Different computer devices can communicate with each other through wired or wireless methods, and the wireless method can be implemented through WIFI, operator network, NFC (near field communication) or other technologies.
[0036] See also Figure 2 , which shows a flowchart of a multi-link load balancing degree determination method provided by an embodiment of the present application. The multi-link load balancing degree determination method can be applied to Figure 1 In the computer device shown. Figure 2 As shown, the multi-link load balancing determination method may include the following steps:
[0037] Step 201: A computer device calculates a first link balance degree of each controller in a target storage system.
[0038] The target storage system includes multiple controllers, each of which corresponds to multiple links. The controller is used to control the business data in the corresponding link to be stored in the corresponding position in the target storage system; the link is used to carry business data; the link balance is used to characterize the link load balance, that is, to characterize the situation of the link carrying business data; the first link balance of each controller represents the overall balance of the multiple links corresponding to each controller, and the optional popular explanation is: assuming that the target storage system includes n controllers, each controller corresponds to m links, and the first link balance of one controller is the overall balance of the m links corresponding to the controller.
[0039] Step 202: The computer device calculates a second link balance between controllers in the target storage system.
[0040] Among them, the second link balance between controllers is the link balance between controllers in the target storage system. An optional popular explanation is: assuming that the target storage system includes n controllers, each controller corresponds to m links, and the second link balance between the controllers is the link balance between these n controllers.
[0041] Step 203: The computer device calculates the overall link balance of the target storage system according to the first link balances and the second link balances.
[0042] Among them, the overall link balance of the target storage system is the overall load balance of all links in the target storage system. Multiple links are aggregated in the target storage system. When the business is operating normally, multiple links will carry traffic at the same time. If one of the links is sub-healthy or the interface fails, the business data of the link with sub-health or interface failure will be blocked. At the same time, the business data of the healthy link will be blocked, thereby affecting the overall performance of the target storage system. It is worth noting that if one of the links is sub-healthy or the interface fails, the overall link balance of the target storage system will be reduced. In other words, the overall link balance of the target storage system can reflect the health of the links in the target storage system. Therefore, in order to ensure the stable operation of the target storage system, it is necessary to detect the overall link balance of the target storage system.
[0043] In an embodiment of the present application, a method for calculating the overall link balance of a target storage system is provided. The method calculates the overall link balance of the target storage system based on the calculated first link balance of each controller and the second link balance between the controllers, thereby realizing the detection of the overall link balance of the target storage system.
[0044] In one embodiment of the present application, a computer device calculates the first link balance of each controller in a target storage system, and the optional process is as follows:
[0045] First, the computer device obtains ownership information corresponding to each link in the target storage system.
[0046] The belonging information is used to indicate the controller to which the corresponding link belongs; the belonging information may be link parameter information corresponding to each link.
[0047] Secondly, the computer device determines the link corresponding to each controller according to the acquired ownership information.
[0048] Thirdly, for each controller, the computer device obtains performance indicator data of each link corresponding to the controller.
[0049] Optionally, assuming that there are n controllers in the target storage system, and each controller corresponds to m links, the performance indicator corresponding to each link is I k .
[0050] Finally, the computer device calculates the first link balance of each controller according to the performance indicator data. Optionally, assuming that there are n controllers in the target storage system, each controller corresponds to m links, and the optional formula for calculating the first link balance is as follows:
[0051]
[0052] in,
[0053]
[0054] Among them, B i I represents the first link balance of one of the n controllers, i=1, 2, ....n; k Indicates the performance indicator corresponding to one of the m links.
[0055] In one embodiment of the present application, based on the first link balance of each controller, the second link balance between the controllers can be obtained. Optionally, assuming that there are n controllers in the target storage system, each controller corresponds to m links, and the optional formula for calculating the second link balance is as follows:
[0056]
[0057] in,
[0058]
[0059] Among them, B i represents the first link balance of one of the n controllers, i=1, 2, ....n; B represents the second link balance between the controllers.
[0060] Traditional link detection methods mainly rely on manual labor, and through manual observation of the monitoring interface, such methods can only perform qualitative analysis of link balance, but cannot perform quantitative calculation. In addition, if the number of links is large, the manual operation of the monitoring interface will also increase, increasing the risk of manual misoperation. In the embodiment of the present application, the link balance can be quantitatively calculated through the first link balance and the second link balance, and no manual participation is required in the process of calculating the link balance. Therefore, the quantitative calculation of the link balance in the embodiment of the present application improves the intelligence and accuracy of link balance detection.
[0061] See also Figure 3 , which shows a technical process for calculating the overall link balance of a target storage system provided by an embodiment of the present application. Figure 3 As shown, the calculation of the overall link balance may include the following steps:
[0062] Step 301: Obtain weight values corresponding to the first link balances and the weight values corresponding to the second link balances.
[0063] The optional process of obtaining the weight values corresponding to the first link balances and the weight values corresponding to the second link balances is as follows:
[0064] First, the computer device obtains the carrying storage capacity of each controller and the load balancing mode of each controller.
[0065] Optionally, the computer device may determine the balancing mode of each controller according to the parameter information of each controller, wherein, according to the design concepts of different manufacturers, the load balancing modes of the controllers in the target storage system include active / passive mode (AP), asynchronous logical unit access mode (ALUA), and active / active mode (AA). In the AP mode, the port on one controller is in an active state, the port on the other controller is in a standby state, and all logical unit numbers (LUNs) belong to the controller in the active port state; for a single LUN, when carrying services normally, only half of the links have traffic at a certain moment. In the ALUA mode, the ports on both controllers are in an active state, but different LUNs belong to different controllers; for a single LUN, when carrying services normally, only half of the links have traffic at a certain moment. In the AA mode, the ports on both controllers are in an active state, and there is no LUN belonging; for a single LUN, when carrying services normally, all links have traffic.
[0066] Secondly, according to each of the bearing storage capacities and each of the load balancing modes, the weight values corresponding to each of the first link balance degrees and the weight value corresponding to the second link balance degrees are determined.
[0067] Optionally, when the load balancing mode of the controller is AP mode, it is recommended that the first link balance of each controller use a lower weight value; when the load balancing mode of the controller is AA mode, it is recommended that the second link balance between controllers use a lower weight value.
[0068] Step 302: Perform weighted sum processing on the first link balance and the second link balance according to the acquired weight value to calculate the overall link balance of the target storage system.
[0069] Optionally, the calculation formula for calculating the overall link balance of the target storage system by weighted summation is as follows:
[0070]
[0071] Among them, λ i are the weight values corresponding to the first link balance respectively; 0 is the weight value corresponding to the balance degree of the second link; B irepresents the first link balance of one of the n controllers, i=1, 2, ....n; B is the second link balance between the controllers, and P is the overall link balance of the target storage system.
[0072] In the embodiment of the present application, the value of the overall link balance degree P of the target storage system is between 0 and 1. If the value of P is closer to 1, the overall link of the target storage system is more balanced; conversely, if the value of P is closer to 0, the overall link of the target storage system is more unbalanced. In the embodiment of the present application, by calculating the overall link balance degree of the target storage system, the accurate detection of the overall link balance degree of the target storage system is achieved.
[0073] In one embodiment of the present application, if the overall link balance of the target storage system is less than a first threshold, the link load balancing algorithm of the target storage system is adjusted by a computer device; if the overall link balance of the target storage system is less than a second threshold, the most abnormal link is isolated by a computer device; wherein the second threshold is less than the first threshold.
[0074] Optionally, the first threshold is 70% of the overall link balance of the target storage system under normal operation, and the second threshold is 30% of the overall link balance of the target storage system under normal operation.
[0075] In an optional embodiment of the present application, when the overall link balance of the target storage system is lower than the first threshold, the target storage system will dynamically adjust the link load balancing algorithm in combination with the business situation. Among them, each load balancing mode of the controller includes multiple link load balancing algorithms, such as a polling algorithm, a shortest path algorithm, etc. Optionally, when the overall link balance of the target storage system is lower than the first threshold, the target storage system can adaptively adjust the link load balancing parameters in combination with the production environment application scenario, and dynamically adjust the load balancing algorithm in combination with the balancing algorithm of the target storage system (such as adjusting the shortest path algorithm to a polling algorithm), and after adjusting the load balancing algorithm, continue to detect the overall link balance of the target storage system.
[0076] Optionally, after adjusting the link load balancing algorithm as described above, if the overall link balance of the target storage system is still decreasing, and the overall link balance is lower than the second threshold, then the target storage system will actively isolate the most abnormal link with the largest balance deviation based on the performance indicator data of each link, and notify the operation and maintenance personnel to conduct manual investigation, consider the possible sub-health of the physical link, and replace the physical optical fiber, optical module or board in time.
[0077] In the related art, the link load balancing situation is mainly observed manually. When the monitoring interface shows that the target storage system has storage anomalies, the abnormal links are manually checked. That is to say, before the abnormal links are manually checked, the target storage system does not dynamically adjust the link load balancing algorithm in combination with the business situation, nor does it actively isolate the most abnormal links. It can be seen that the target storage system in the related art cannot accurately judge the overall link balance in advance, so that the target storage system has a weak ability to deal with the sub-health risk of the physical link. In the embodiment of the present application, when the overall link balance of the target storage system is less than the first threshold, the link load balancing parameters are adaptively adjusted in combination with the production environment application scenario, and the load balancing algorithm is dynamically adjusted in combination with the balance algorithm of the target storage system, so as to ensure the smooth operation of the target storage system; when the overall link balance of the target storage system is less than the second threshold, the target storage system will actively isolate the most abnormal link with the largest balance deviation, so as to ensure the efficient operation of the target storage system. Therefore, the target storage system in the embodiment of the present application has a strong ability to deal with the sub-health risk of the physical link.
[0078] See also Figure 4 , which shows a flowchart of a multi-link load balancing degree determination method provided by an embodiment of the present application. The multi-link load balancing degree determination method can be applied to Figure 1 In the computer device shown. Figure 4 As shown, the multi-link load balancing determination method may include the following steps:
[0079] Step 401: The computer device obtains ownership information corresponding to each link in the target storage system.
[0080] Step 402: The computer device determines the link corresponding to the controller according to the acquired ownership information.
[0081] Step 403: The computer device obtains performance indicator data of each link corresponding to each controller.
[0082] Step 404: The computer device calculates the first link balance of each controller according to the performance indicator data of each link corresponding to each controller.
[0083] Step 405: The computer device calculates the second link balance between the controllers according to the first link balance of each controller.
[0084] Step 406: The computer device obtains the weight values corresponding to the first link balances and the weight values corresponding to the second link balances.
[0085] Step 407: The computer device performs weighted sum processing on the first link balance degree and the second link balance degree according to the acquired weight value, and calculates the overall link balance degree of the target storage system.
[0086] In an optional embodiment of the present application, a schematic diagram of a link balance detection system is provided. For the schematic diagram of the link balance detection system, please refer to Figure 5 ,like Figure 5 As shown, the link balance detection system includes a production environment storage system and a link load balancing detection system.
[0087] The link load balancing detection system includes an information preprocessing module and a data analysis module. The information preprocessing module is used to determine the balancing mode of each controller and the controller to which each link belongs. The data analysis module is used to calculate the balance within the controller and the balance between controllers. The balance within the controller is the balance of the first link of the controller, and the balance between controllers is the balance of the second link between controllers. Optionally, the optional operation process of the link balance detection system is:
[0088] First, the production environment storage system inputs the stored storage system parameter information into the information preprocessing module in the link load balancing detection system, wherein the storage system parameter information may be the attribution information corresponding to each link and the parameter information of each controller.
[0089] Second, the information preprocessing module outputs the controller balancing mode and the controller to which the link belongs. The information preprocessing module can determine the balancing mode of each controller based on the parameter information of each controller. At the same time, the information preprocessing module can also determine the link corresponding to each controller based on the belonging information corresponding to each link. In other words, the information preprocessing module can determine the controller to which the link belongs.
[0090] Third, the controller balancing mode and the controller to which the link belongs are input into the data analysis module.
[0091] Fourth, the data analysis module outputs the intra-controller balance and the inter-controller balance according to the controller balance mode and the controller to which the link belongs.
[0092] Fifth, the link load balancing detection system calculates the link balance degree according to the balance degree within the controller and the balance degree between controllers, wherein the link balance degree is the overall link balance degree of the target storage system.
[0093] In another optional embodiment of the present application, taking four controllers as an example, the corresponding weight values of the four controllers in different load balancing modes are recommended as follows:
[0094]
[0095] Among them, SP1, SP2, SP3, and SP4 represent controllers, B1-B4 are the first link balances corresponding to controllers SP1-SP4, B is the second link balance between the four controllers SP1-SP4, and the link balance is the overall link balance of the target storage system composed of these four controllers. According to the calculation formula for the overall link balance of the target storage system in the previous text, the overall link balance of the target storage system under different load balancing modes can be obtained.
[0096] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0097] See also Figure 6 , which shows a block diagram of a multi-link load balancing degree determination device 600 provided in an embodiment of the present application, and the device 600 can be configured in the computer device mentioned above. Figure 6 As shown, the device 600 includes a first calculation module 601 , a second calculation module 602 and a third calculation module 603 .
[0098] Among them, the first calculation module 601 is used to calculate the first link balance of each controller in the target storage system, wherein the target storage system includes multiple controllers, and each controller corresponds to multiple links; the second calculation module 602 is used to calculate the second link balance between the controllers in the target storage system; the third calculation module 603 is used to calculate the overall link balance of the target storage system based on the first link balance and the second link balance.
[0099] In an optional embodiment of the present application, the first calculation module 601 is specifically used to: for each controller, obtain performance indicator data of each link corresponding to the controller, and calculate the first link balance of the controller according to the performance indicator data.
[0100] In an optional embodiment of the present application, the second calculation module 602 is specifically used to calculate the second link balance between the controllers according to the first link balance of each controller.
[0101] In an optional embodiment of the present application, the third calculation module 603 is specifically used to: obtain the weight values corresponding to each of the first link balances and the weight value corresponding to the second link balance; based on the obtained weight values, perform weighted sum processing on each of the first link balances and the second link balances to calculate the overall link balance of the target storage system.
[0102] In an optional embodiment of the present application, the third calculation module 603 is specifically used to: obtain the carrying storage capacity of each controller and the load balancing mode of each controller; determine the weight value corresponding to each first link balance and the weight value corresponding to the second link balance according to each carrying storage capacity and each load balancing mode.
[0103] See also Figure 7 , which shows a block diagram of another multi-link load balance determination device 700 provided in an embodiment of the present application. In addition to the modules of the device 600, the device 700 also includes an acquisition module 604, which is used to obtain the ownership information corresponding to each link in the target storage system, and the ownership information is used to indicate the controller to which the corresponding link belongs; a determination module 605, which is used to determine the link corresponding to the controller according to the acquired ownership information; an adjustment module 606, which is used to adjust the link load balancing algorithm of the target storage system if the overall link balance is less than a first threshold; an isolation module 607, which is used to isolate the most abnormal link if the overall link balance is less than a second threshold; wherein the second threshold is less than the first threshold.
[0104] For the specific limitations of the multi-link load balancing determination device, please refer to the limitations of the multi-link load balancing determination method above, which will not be repeated here. Each module in the above-mentioned multi-link load balancing determination device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0105] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 8As shown. The computer device includes a processor, a memory, a communication interface and a display screen connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an XXX method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen.
[0106] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0107] In one embodiment of the present application, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0108] Calculate the first link balance of each controller in the target storage system, wherein the target storage system includes multiple controllers, and each controller corresponds to multiple links; calculate the second link balance between the controllers in the target storage system; and calculate the overall link balance of the target storage system based on the first link balance and the second link balance.
[0109] In one embodiment of the present application, the processor further implements the following steps when executing the computer program: for each controller, obtaining performance indicator data of each link corresponding to the controller, and calculating the first link balance of the controller based on the performance indicator data.
[0110] In one embodiment of the present application, the processor also implements the following steps when executing the computer program: obtaining the ownership information corresponding to each link in the target storage system, where the ownership information is used to indicate the controller to which the corresponding link belongs; and determining the link corresponding to the controller based on the acquired ownership information.
[0111] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: calculating the second link balance between the controllers according to the first link balance of each of the controllers.
[0112] In one embodiment of the present application, the processor further implements the following steps when executing the computer program: obtaining the weight values corresponding to each of the first link balances and the weight value corresponding to the second link balance; performing weighted summation processing on each of the first link balances and the second link balances according to the obtained weight values, and calculating the overall link balance of the target storage system.
[0113] In one embodiment of the present application, the processor also implements the following steps when executing the computer program: obtaining the carrying storage capacity of each controller and the load balancing mode of each controller; determining the weight value corresponding to each first link balance degree and the weight value corresponding to the second link balance degree according to each carrying storage capacity and each load balancing mode.
[0114] In one embodiment of the present application, the processor further implements the following steps when executing the computer program: if the overall link balance is less than a first threshold, adjusting the link load balancing algorithm of the target storage system.
[0115] In one embodiment of the present application, the processor further implements the following steps when executing the computer program:
[0116] If the overall link balance is less than a second threshold, the most abnormal link is isolated; wherein the second threshold is less than the first threshold.
[0117] The computer device provided in the embodiment of the present application has similar implementation principles and technical effects to those of the above-mentioned method embodiment, and will not be described in detail here.
[0118] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0119] Calculate the first link balance of each controller in the target storage system, wherein the target storage system includes multiple controllers, and each controller corresponds to multiple links; calculate the second link balance between the controllers in the target storage system; and calculate the overall link balance of the target storage system based on the first link balance and the second link balance.
[0120] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: for each controller, performance indicator data of each link corresponding to the controller is obtained, and the first link balance of the controller is calculated based on the performance indicator data.
[0121] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: obtaining the ownership information corresponding to each link in the target storage system, where the ownership information is used to indicate the controller to which the corresponding link belongs; and determining the link corresponding to the controller based on the acquired ownership information.
[0122] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are further implemented: according to the first link balance of each controller, a second link balance between the controllers is calculated.
[0123] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: obtaining the weight values corresponding to each of the first link balances and the weight value corresponding to the second link balance; performing weighted summation processing on each of the first link balances and the second link balances based on the obtained weight values, and calculating the overall link balance of the target storage system.
[0124] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: obtaining the carrying storage capacity of each controller and the load balancing mode of each controller; determining the weight value corresponding to each first link balance degree and the weight value corresponding to the second link balance degree according to each carrying storage capacity and each load balancing mode.
[0125] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are further implemented: if the overall link balance is less than a first threshold, adjusting the link load balancing algorithm of the target storage system.
[0126] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: if the overall link balance is less than a second threshold, the most abnormal link is isolated; wherein the second threshold is less than the first threshold.
[0127] The computer-readable storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and will not be described in detail here.
[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0130] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for determining a multi-link load balancing degree, characterized in that: The method comprises: Calculating the first link balance of each controller in the target storage system includes: in, represents the first link balance of the i-th controller among n controllers, i=1, 2, ....n, represents the performance indicator corresponding to one of the m links, represents an average value of performance indicators of m links, the target storage system includes a plurality of controllers, each of the controllers corresponds to a plurality of links; Calculating a second link balance degree between controllers in the target storage system; The overall link balance of the target storage system is calculated according to the first link balance and the second link balance.
2. The method according to claim 1, characterized in that The calculating the first link balance of each controller in the target storage system includes: For each of the controllers, performance indicator data of each link corresponding to the controller is obtained, and a first link balance degree of the controller is calculated according to the performance indicator data.
3. The method according to claim 2, characterized in that Before obtaining the performance indicator data of each link corresponding to the controller, the method further includes: Acquire ownership information corresponding to each link in the target storage system, where the ownership information is used to indicate a controller to which the corresponding link belongs; The link corresponding to the controller is determined according to the acquired ownership information.
4. The method according to any one of claims 1 to 3, characterized in that: The calculating the second link balance between the controllers in the target storage system includes: According to the first link balance of each of the controllers, a second link balance between the controllers is calculated.
5. The method according to any one of claims 1 to 3, characterized in that: The calculating the overall link balance of the target storage system according to the first link balance and the second link balance includes: Obtaining weight values corresponding to the first link balances and the weight value corresponding to the second link balances; According to the acquired weight value, a weighted summation process is performed on each of the first link balances and the second link balances to calculate an overall link balance of the target storage system.
6. The method according to claim 5, characterized in that The obtaining of the weight values corresponding to the first link balances and the weight values corresponding to the second link balances respectively includes: Obtaining the carrying storage capacity of each of the controllers and the load balancing mode of each of the controllers; According to each of the bearing storage capacities and each of the load balancing modes, a weight value corresponding to each of the first link balance degrees and a weight value corresponding to the second link balance degree are determined.
7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If the overall link balance is less than a first threshold, the link load balancing algorithm of the target storage system is adjusted.
8. The method according to claim 7, characterized in that The method further comprises: If the overall link balance is less than a second threshold, isolating the most abnormal link; The second threshold is smaller than the first threshold.
9. A device for determining a multi-link load balancing degree, characterized in that: The device comprises: The first calculation module is used to calculate the first link balance of each controller in the target storage system, including: in, represents the first link balance of the i-th controller among n controllers, i=1, 2, ....n, represents the performance indicator corresponding to one of the m links, represents an average value of performance indicators of m links, the target storage system includes a plurality of controllers, each of the controllers corresponds to a plurality of links; A second calculation module, used to calculate a second link balance between controllers in the target storage system; The third calculation module is used to calculate the overall link balance of the target storage system according to the first link balance and the second link balance.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Host terminal and storage terminal synergetic multi-control IO dispatch method
CN103324444A
Load balancing method and device of multi-control storage system
CN107861691A