A flow control method, device, equipment and medium for unified storage system

By introducing the burst traffic queue mechanism and multi-controller collaborative work into the unified storage system, the control problem of the unified storage system when handling sudden network traffic is solved, highly reliable traffic management and failover are achieved, and the system's stability is improved. Burst traffic handling capabilities.

CN118474030BActive Publication Date: 2024-09-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410910956.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-24
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

When unified storage systems handle sudden network traffic, it is difficult to effectively control and optimize network traffic, resulting in a decline in user experience. Existing technologies mainly focus on a single controller and cannot guarantee traffic optimization at the entire cluster level, especially when a controller fails. cannot switch seamlessly.

Method used

Introduce a burst traffic queue mechanism and use multiple controllers to work together to determine the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the monitored object. If the data input and output traffic does not exceed the threshold, traffic resources will be accumulated. , when the threshold is exceeded, it enters the burst traffic processing process, utilizes accumulated resources, and ensures seamless switching of traffic control through mirror pair reorganization when the controller fails.

Benefits of technology

It effectively reduces the waiting time when user traffic bursts, improves the unified storage system's ability to handle burst network traffic, achieves highly reliable burst traffic control, and ensures that the system can still operate stably even when the controller fails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118474030B
    Figure CN118474030B
Patent Text Reader

Abstract

The present invention relates to the field of storage technology, and specifically discloses a flow control method, device, equipment and medium of a unified storage system. The method, device and medium are implemented through multiple controllers of the unified storage system. The controller determines a trigger threshold value, a maximum burst flow threshold value and a burst flow usage time of a monitored object to perform flow monitoring on the monitored object, so as to accumulate flow resources when the data input and output flow of the monitored object does not exceed the trigger threshold value of the burst flow queue mechanism. When the data input and output flow of the monitored object exceeds the trigger threshold value of the burst flow queue mechanism, the accumulated flow resources are used to enable the monitored object to achieve burst flow, thereby reducing the waiting time when the user flow bursts. At the same time, multiple controllers are used to achieve flow accumulation for the monitored object, thereby achieving high-reliability control of the flow at the entire system level, and improving the unified storage system's processing capability for burst network flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a flow control method, device, equipment and medium for a unified storage system. Background Art

[0002] A unified storage system is a system that integrates different types of storage technologies. It allows users to access and manage all types of storage resources through a single interface.

[0003] Traffic control is one of the optimization issues of storage systems, and unified storage systems are no exception. How to make the network traffic control of unified storage systems bring better experience to users, especially to control sudden network traffic, is a technical problem that technical personnel in this field need to solve. Summary of the invention

[0004] The object of the present invention is to provide a unified storage system flow control method, device, equipment and medium, which are used to improve the unified storage system's processing capability for burst network flow.

[0005] In order to solve the above technical problems, the present invention provides a flow control method of a unified storage system, which is applied to a controller in a unified storage system of multiple controllers, comprising:

[0006] Determine the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the monitored object;

[0007] Execute flow monitoring on the monitored object;

[0008] If the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit;

[0009] If the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, the monitored object is controlled to enter the burst traffic processing flow to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time;

[0010] Wherein, the monitoring object is a volume or a volume group including a plurality of volumes;

[0011] When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0012] On the one hand, each of the controllers accumulates traffic resources for the monitored object according to a preset ratio, including:

[0013] Each of the controllers accumulates flow resources for the monitored object according to the maximum burst flow threshold of the monitored object as an upper limit;

[0014] The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, including:

[0015] The controller of the monitored object obtains the actual accumulated traffic resources of the monitored object by dividing the total value of the accumulated traffic resources of the monitored object by the number of the controllers.

[0016] On the other hand, each of the controllers accumulates traffic resources for the monitored object according to a preset ratio, including:

[0017] Each of the controllers accumulates flow resources for the monitored object according to a value obtained by dividing the maximum burst flow threshold of the monitored object by the number of the controllers as an upper limit;

[0018] The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, including:

[0019] The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the total value of the accumulated traffic resources of the monitored object.

[0020] On the other hand, if the monitored object is the volume group, the step of determining the burst traffic queue mechanism trigger threshold, the maximum burst traffic threshold and the burst traffic usage time of the monitored object includes:

[0021] Determine a burst traffic queue mechanism triggering threshold, a maximum burst traffic threshold, and a burst traffic usage time of the volume group, and evenly distribute the burst traffic queue mechanism triggering threshold and the maximum burst traffic threshold of the volume group to the volumes in the volume group.

[0022] On the other hand, if the monitored object is the volume group, the step of determining the burst traffic queue mechanism trigger threshold, the maximum burst traffic threshold and the burst traffic usage time of the monitored object includes:

[0023] Determine the burst traffic usage time of the volume group, and determine the burst traffic queue mechanism trigger threshold and the maximum burst traffic threshold of the volume group according to the number of volumes with data input and output in the volume group, and divide the burst traffic queue mechanism trigger threshold and the maximum burst traffic threshold of the volume group equally to the volumes with data input and output.

[0024] On the other hand, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit includes:

[0025] The rate of accumulating traffic resources for the monitored object is determined according to the data input and output traffic of the monitored object, and the traffic is accumulated for the monitored object at the rate of accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit.

[0026] On the other hand, determining a rate of accumulating flow resources for the monitored object according to the data input and output flow of the monitored object includes:

[0027] Calculate the difference between the burst traffic queue mechanism trigger threshold of the monitored object and the data input and output traffic of the monitored object;

[0028] The larger the difference is, the faster the rate at which traffic resources are accumulated for the monitored object is.

[0029] On the other hand, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit includes:

[0030] Taking the corresponding maximum burst flow threshold as the maximum number of tokens in the token bucket corresponding to the monitored object, adding tokens to the token bucket of the monitored object;

[0031] Controlling the monitored object to enter a burst traffic processing flow to allow the monitored object to use accumulated traffic resources within a corresponding burst traffic usage time, including:

[0032] When the monitored object is controlled to enter the burst traffic processing flow, the monitored object is allowed to use the data input and output traffic resources corresponding to all tokens in the token bucket.

[0033] On the other hand, when accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio, including:

[0034] When accumulating traffic resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a first preset token release rate until each controller releases a number of tokens corresponding to a maximum burst traffic threshold of the monitored object;

[0035] The first preset token release rate is determined according to the token release rate corresponding to the data input and output rate of the monitored object, and the first preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object.

[0036] On the other hand, when accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio, including:

[0037] When accumulating traffic resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a second preset token release rate until the number of tokens in the token bucket of the monitored object reaches the number of tokens corresponding to the maximum burst traffic threshold of the monitored object;

[0038] Among them, the second preset token release rate is determined according to the token release rate corresponding to the data input and output rate of the monitored object divided by the number of the controllers, and the second preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object divided by the number of the controllers.

[0039] On the other hand, taking out a token from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object includes:

[0040] The number of tokens in the token bucket is divided by the number of controllers to obtain the number of available tokens for the monitored object, and tokens are taken from the available number of tokens to provide the monitored object with the required data traffic resources.

[0041] On the other hand, taking out a token from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object includes:

[0042] The number of tokens in the token bucket is taken as the number of available tokens for the monitored object, and tokens are taken out from the available number of tokens to provide the required data traffic resources for the monitored object.

[0043] On the other hand, executing flow monitoring of the monitored object includes:

[0044] Performing flow monitoring on the monitored object based on a preset anti-shake range;

[0045] Among them, the preset anti-shake range includes not including the data input and output traffic in the statistics within a preset time after the initial startup, using the average value of the data input and output traffic within a unit time as the statistical value, recording the data input and output traffic trigger threshold as a valid trigger when it reaches a preset number of times, and recording the error range of the data input and output traffic trigger threshold as a valid trigger.

[0046] On the other hand, executing flow monitoring of the monitored object includes:

[0047] If the effective time condition of the monitoring object is met, the flow monitoring of the monitoring object is performed;

[0048] The effective time condition includes at least one of being within a single effective time and reaching a cycle period.

[0049] On the other hand, it also includes:

[0050] When the controller used to monitor the monitored object fails, a standby controller corresponding to the failed controller in the mirror pair divided by the unified storage system is used to take over the data traffic and monitoring work of the failed controller, and the mirror pair is reorganized so that the number of mirror pairs is the same as the number of the normally operating controllers;

[0051] When the standby controller takes over the monitoring work of the faulty controller, it clears the portion of the accumulated traffic resources of the monitored object monitored by the faulty controller corresponding to the faulty controller, and adjusts the preset ratio to a ratio corresponding to the number of the controllers operating normally.

[0052] To solve the above technical problems, the present invention also provides a unified storage system, including multiple controllers, the controllers are used to determine the burst traffic queue mechanism triggering threshold, maximum burst traffic threshold and burst traffic usage time of the monitored object; perform traffic monitoring on the monitored object; if the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism threshold, accumulate traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; if the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, control the monitored object to enter the burst traffic processing flow to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time;

[0053] Wherein, the monitoring object is a volume or a volume group including a plurality of volumes;

[0054] When accumulating traffic resources for the monitored object, each controller accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0055] In order to solve the above technical problems, the present invention further provides a flow control device of a unified storage system, which is applied to a controller in a unified storage system of multiple controllers, and comprises:

[0056] An analysis management unit is used to determine a burst traffic queue mechanism triggering threshold, a maximum burst traffic threshold and a burst traffic usage time of a monitored object; if a monitoring result is received from a performance statistics unit that the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, then notify the flow limiting control unit to accumulate traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; if a monitoring result is received from the performance statistics unit that the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, then notify the flow limiting control unit to control the monitored object to enter a burst traffic processing flow, so as to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time;

[0057] The performance statistics unit is used to perform traffic monitoring on the monitored object and report the monitoring result to the analysis management unit;

[0058] The current limiting control unit is used to execute the control task notified by the analysis management unit;

[0059] Wherein, the monitoring object is a volume or a volume group including a plurality of volumes;

[0060] When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0061] In order to solve the above technical problems, the present invention further provides a flow control device of a unified storage system, comprising:

[0062] Memory for storing computer programs;

[0063] The processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the flow control method of the unified storage system as described in any one of the above items are implemented.

[0064] To solve the above technical problems, the present invention further provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the flow control method of the unified storage system as described in any one of the above items are implemented.

[0065] To solve the above technical problems, the present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the flow control method of the unified storage system as described in any one of the above items.

[0066] The flow control method of the unified storage system provided by the present invention has the beneficial effect of being implemented through multiple controllers of the unified storage system. By introducing a burst flow queue mechanism, when a volume or volume group is used as a monitoring object, the controller determines the burst flow queue mechanism trigger threshold, the maximum burst flow threshold and the burst flow usage time of the monitoring object to perform flow monitoring on the monitoring object, so as to accumulate flow resources when the data input and output flow of the monitoring object does not exceed the burst flow queue mechanism trigger threshold, and utilize the accumulated flow resources to enable the monitoring object to achieve burst flow when the data input and output flow of the monitoring object exceeds the burst flow queue mechanism trigger threshold, thereby reducing the waiting time when the user flow bursts, and at the same time utilizing multiple controllers to achieve flow accumulation for the monitoring object, so that when a controller fails, it can seamlessly switch to other controllers for flow control, thereby achieving high-reliability burst flow control of the entire system and improving the unified storage system's ability to handle burst network flow.

[0067] The present invention also provides a flow control system, device, equipment, non-volatile storage medium and computer program product of a unified storage system, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 A flow chart of a unified storage system flow control method provided by an embodiment of the present invention;

[0070] Figure 2A flow chart of using a token bucket to perform flow control is provided in an embodiment of the present invention;

[0071] Figure 3 A flow chart of another unified storage system flow control method provided by an embodiment of the present invention;

[0072] Figure 4 A flowchart of a specific implementation of S102 provided in an embodiment of the present invention;

[0073] Figure 5 A schematic diagram of the structure of a flow control device for a unified storage system provided by an embodiment of the present invention;

[0074] Figure 6 A schematic diagram of the structure of a flow control device of a unified storage system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0075] The core of the present invention is to provide a unified storage system flow control method, device, equipment and medium, which are used to improve the unified storage system's processing capability for burst network flow.

[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] To facilitate understanding of the technical solution provided by the embodiment of the present invention, some key terms used in the embodiment of the present invention are first explained here.

[0078] A unified storage system with multiple controllers (Multi-Controller Storage or Multi-Cluster Service, MCS system for short) can provide high availability, scalability, and fault tolerance. In an MCS system, each controller can be considered a node, and they work together to provide data services and manage storage resources. These nodes may be responsible for processing data input / output (I / O) requests, data caching, and communicating with other nodes.

[0079] The burst queue mechanism is a network traffic management technology used to control and optimize the transmission of data packets in the network. The burst queue can prevent server overload. When burst traffic arrives, if there is no reasonable mechanism to limit it, the server may crash because it cannot handle too many requests. The burst queue can improve the user experience. For users, if the request is rejected immediately, they may be dissatisfied. At this time, the burst queue can temporarily store the request and process it one by one when the server is able to handle it, reducing the waiting time perceived by users.

[0080] The burst traffic queue mechanism has been applied in various fields, such as switches, servers, and storage. It is widely used in the switch industry to avoid congestion. When the network is intermittently congested and delay-sensitive services require higher quality services than non-delay-sensitive services, congestion management and traffic management are needed. The typical role of traffic management is to limit the traffic bursts of a certain connection entering a certain network. When the message meets certain conditions, such as the message flow of a certain connection is too large, traffic management can take different processing actions on the message, such as discarding the message or resetting the message priority.

[0081] Storage systems can be divided into distributed storage systems and unified storage systems. The embodiments of the present invention are mainly aimed at the implementation of a burst traffic queue mechanism in a unified storage system. However, when a burst traffic queue mechanism is currently applied in a storage system, burst traffic control is mainly achieved by a single controller. After the controller fails, it cannot be guaranteed that the burst traffic at the entire cluster level is still controlled.

[0082] To solve this problem, an embodiment of the present invention provides a flow control solution for a unified storage system, which optimizes the problem that the current storage system's burst flow control only limits the volume on a certain node, and realizes burst flow control on the entire cluster. When a controller fails, the flow of other controllers can be coordinated to ensure flow tuning of the entire system.

[0083] For ease of understanding, the system architecture applicable to the present invention is first introduced. An embodiment of the present invention provides a unified storage system, including multiple controllers, which are used to determine the trigger threshold of the burst traffic queue mechanism, the maximum burst traffic threshold and the burst traffic usage time of the monitored object; perform traffic monitoring on the monitored object; if the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism threshold, accumulate traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; if the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism trigger threshold, control the monitored object to enter the burst traffic processing process to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time.

[0084] The monitoring object is a volume or a volume group including multiple volumes.

[0085] When accumulating traffic resources for the monitored object, each controller accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object based on the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0086] It should be noted that the volumes and volume groups in the various embodiments of the present invention are concepts at the storage system level. A volume represents a logical partition on a storage device, which can be a hard disk drive, a solid-state drive (SSD), an optical disk, or other types of storage media. A volume can contain one or more file systems for organizing and storing data. In an operating system, a volume is usually assigned a drive letter or a mount point, and users can access the data on the volume through this identifier. Volumes can be basic or dynamic (in Windows) or physical or logical (in Unix-like systems).

[0087] Volume Group is usually associated with Logical Volume Management (LVM). In systems that support LVM, such as Linux, Volume Group is a component of Logical Volume Management. A volume group is a collection of multiple physical volumes (PVs), which can be part of a hard disk or the entire hard disk. Physical volumes are added to volume groups, which can then be used to create logical volumes (LVs). Logical volumes are logical partitions in a volume group that can be dynamically resized and can span multiple physical volumes. Logical volumes are transparent to users and appear as a single storage space. In simple terms, a volume is a logical partition that stores data, and a volume group is a collection of multiple physical volumes used to create and manage logical volumes. This design provides greater flexibility, allowing for dynamic resizing of storage space and management of complex storage requirements.

[0088] In the embodiment of the present invention, multiple volumes can be divided into a volume group for management according to the business relevance.

[0089] In a unified storage system, volume ownership can be divided into the following categories according to the controller to which it belongs: unowned volume, that is, the volume belongs to all controllers of the unified storage system, and each controller may have data input and output traffic for the volume; owned volume, that is, the volume belongs to a certain controller, and data input and output traffic for the volume only exists on the controller.

[0090] The present invention provides a unified storage system flow control solution based on a unified storage architecture of multiple controllers, aiming to ensure that both volumes belonging to a certain controller and volumes without belonging have the ability to handle burst flows, and after volumes are merged into a volume group, the volume group also has the ability to handle burst flows. When a controller fails, another controller can take over the flow to achieve a burst flow control function.

[0091] The flow control scheme of the unified storage system provided by the embodiment of the present invention is implemented through multiple controllers of the unified storage system. By introducing a burst flow queue mechanism, when a volume or volume group is used as a monitoring object, the controller determines the burst flow queue mechanism trigger threshold, maximum burst flow threshold and burst flow usage time of the monitoring object to perform flow monitoring on the monitoring object, so as to accumulate flow resources when the data input and output flow of the monitoring object does not exceed the burst flow queue mechanism trigger threshold. When the data input and output flow of the monitoring object exceeds the burst flow queue mechanism trigger threshold, the accumulated flow resources are used to enable the monitoring object to achieve burst flow, thereby reducing the waiting time when the user flow bursts. At the same time, multiple controllers are used to achieve flow accumulation for the monitoring object, so that when a controller fails, it can seamlessly switch to other controllers for flow control, thereby achieving high-reliability burst flow control of the entire system and improving the unified storage system's processing capability for burst network flow.

[0092] Based on the above architecture, the flow control method of the unified storage system provided by the embodiment of the present invention is described below with reference to the accompanying drawings.

[0093] Figure 1 A flow chart of a flow control method of a unified storage system provided by an embodiment of the present invention.

[0094] like Figure 1 As shown, a controller in a unified storage system of multiple controllers is applied to a unified storage system, and an embodiment of the present invention provides a flow control method for the unified storage system, including: S101: determining a burst flow queue mechanism trigger threshold, a maximum burst flow threshold, and a burst flow usage time of a monitored object.

[0095] S102: Execute traffic monitoring on the monitored object.

[0096] S103: If the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, traffic resources are accumulated for the monitored object with the corresponding maximum burst traffic threshold as the upper limit.

[0097] S104: If the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, the monitored object is controlled to enter the burst traffic processing flow to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time.

[0098] The monitoring object is a volume or a volume group including multiple volumes.

[0099] When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object based on the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0100] In the embodiment of the present invention, for S101, the units of the burst traffic queue mechanism triggering threshold and the maximum burst traffic threshold can be expressed in terms of the number of read / write operations per second (IOPS), or in terms of occupied bandwidth. The maximum burst traffic threshold is the maximum traffic resource that the monitored object is allowed to use after entering the burst traffic processing flow. The burst traffic queue mechanism triggering threshold is the threshold that triggers the monitored object to enter the burst traffic queue mechanism, and the threshold must be less than the maximum burst traffic threshold.

[0101] Since the burst traffic of a volume often occurs temporarily, and in order to avoid occupying too much traffic resources of other volumes, it is also necessary to set the burst traffic usage time for the monitored object, that is, how long the monitored object is allowed to occupy traffic resources up to the maximum burst traffic threshold.

[0102] In the embodiment of the present invention, the volume group can be divided according to user settings or business relevance. For example, the user can determine the volumes to be divided into the same volume group, or the volumes of the same business can be divided into the same volume group. Even if there is no requirement for the volume to be a common volume, a self-cleaning volume, a compressed volume, or a deduplicated volume, it can be set according to user needs or business needs, and the volume can still maintain the characteristics of compression and deduplication.

[0103] In addition, since volumes in a unified storage system with multiple controllers have different ownership, some volumes belong to a certain controller, and some volumes do not belong to a certain controller (that is, all controllers have data input and output for the volume), volumes with different ownership can be further classified into different volume groups according to the ownership of the volumes. That is, all volumes in a volume group must be non-owned volumes, or all volumes in a volume group must be owned volumes.

[0104] When a volume is used as the monitoring object, the thresholds related to the above-mentioned burst traffic are set in units of volumes.

[0105] When a volume group is used as a monitoring object, the threshold value related to the burst flow may be a threshold value corresponding to the volume group, and the threshold value related to the burst flow of each volume in the volume group needs to be further determined.

[0106] In some optional implementations of the embodiments of the present invention, the threshold of the volume may be determined by evenly distributing the threshold of the volume group to the volume. If the monitored object is a volume group, determining the trigger threshold of the burst flow queue mechanism, the maximum burst flow threshold, and the burst flow usage time of the monitored object may include: determining the trigger threshold of the burst flow queue mechanism, the maximum burst flow threshold, and the burst flow usage time of the volume group, and evenly distributing the trigger threshold of the burst flow queue mechanism and the maximum burst flow threshold of the volume group to the volumes in the volume group.

[0107] In actual applications, the volumes in the volume group may have uneven data input and output traffic, and there may even be a situation where there is no data input and output operation on some volumes. In other optional implementations of the embodiments of the present invention, if the monitored object is a volume group, determining the trigger threshold of the burst traffic queue mechanism, the maximum burst traffic threshold and the burst traffic usage time of the monitored object may include: determining the burst traffic usage time of the volume group, and determining the trigger threshold of the burst traffic queue mechanism and the maximum burst traffic threshold of the volume group according to the number of volumes with data input and output in the volume group, and evenly dividing the trigger threshold of the burst traffic queue mechanism and the maximum burst traffic threshold of the volume group to the volumes with data input and output.

[0108] That is, if a volume group has 5 volumes, but only 3 volumes have data input and output traffic, and the other 2 volumes do not, then the volume group can be treated as a volume group with 3 volumes, and relevant thresholds can be set, and burst traffic control can be performed by equally dividing or treating it as a whole according to needs. On this basis, the relevant thresholds of the volume group can be dynamically adjusted according to the operation status of the volumes in the volume group.

[0109] For S102, the monitoring object is monitored according to the burst queue mechanism related threshold determined above.

[0110] For S103, when the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, traffic resources are accumulated for the monitored object so that the monitored object can have more traffic resources when there is burst traffic compared with normal operation.

[0111] In some optional implementations of the embodiments of the present invention, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit may include: determining the rate of accumulating traffic resources for the monitored object based on the data input and output traffic of the monitored object, and accumulating traffic for the monitored object with the corresponding maximum burst traffic threshold as the upper limit and at the rate of accumulating traffic resources for the monitored object.

[0112] That is, a value slightly larger than the data input and output traffic of the monitored object may be used as the rate for accumulating traffic resources for the monitored object, so that the accumulated traffic resources of the monitored object exceed the current data input and output traffic of the monitored object.

[0113] Further, determining the rate of accumulating traffic resources for the monitored object according to the data input and output traffic of the monitored object may include: calculating the difference between the triggering threshold of the burst traffic queue mechanism of the monitored object and the data input and output traffic of the monitored object; the larger the difference, the greater the rate of accumulating traffic resources for the monitored object. That is, in the case where the difference between the triggering threshold of the burst traffic queue mechanism of the monitored object and the data input and output traffic of the monitored object is larger, the rate of accumulating traffic resources for the monitored object may be set to exceed the difference in the data input and output traffic of the monitored object, so as to quickly accumulate traffic resources for the monitored object at an early stage.

[0114] For S104, when the data input and output traffic of the monitored object exceeds the trigger threshold of the corresponding burst traffic queue mechanism, the monitored object is controlled to enter the burst traffic processing flow, and the monitored object is allowed to use the accumulated traffic resources within the burst traffic usage time. Even if the data input and output traffic of the monitored object exceeds the trigger threshold of the corresponding burst traffic queue mechanism, but the accumulated traffic resources do not reach the maximum burst traffic threshold, the traffic resources that can be used by the burst traffic of the monitored object cannot meet expectations.

[0115] In an embodiment of the present invention, for a unified storage system with multiple controllers, in order to ensure high-reliability control of the burst queue mechanism at the entire system level, each controller jointly accumulates traffic resources for each monitored object, and after the monitored object enters the burst queue mechanism, the actual accumulated traffic resources of the monitored object are determined based on the traffic resources accumulated by each controller for the monitored object. Therefore, after a controller currently executing the monitoring task of the monitored object fails, the backup controller of the controller can seamlessly take over the monitoring task of the monitored object.

[0116] In some optional implementations of the embodiments of the present invention, each controller accumulates traffic resources for the monitored object according to a preset ratio, which may include: each controller accumulates traffic resources for the monitored object according to the maximum burst traffic threshold of the monitored object as the upper limit. The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, which may include: the controller of the monitored object obtains the actual accumulated traffic resources of the monitored object by dividing the total value of the accumulated traffic resources of the monitored object by the number of controllers.

[0117] Assuming that the unified storage system is a four-controller system, each controller accumulates traffic resources for the monitored object, and the total value of the accumulated traffic resources is four times the actual accumulated traffic resources of the monitored object. After the monitored object enters the burst queue mechanism, the total value of the accumulated traffic resources needs to be divided by four.

[0118] In some other optional implementations of the embodiments of the present invention, each controller accumulates traffic resources for the monitored object according to a preset ratio, which may also include: each controller accumulates traffic resources for the monitored object according to a value obtained by dividing the maximum burst traffic threshold of the monitored object by the number of controllers as an upper limit. The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, which may include: the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the total value of the accumulated traffic resources of the monitored object.

[0119] That is, each controller has accumulated traffic resources for the monitored object in proportion when initially accumulating traffic resources, and the total value of the accumulated traffic resources in the end is the actual accumulated traffic resources of the monitored object.

[0120] Based on the above embodiments, the embodiments of the present invention further illustrate various application scenarios when volume groups are monitored.

[0121] In actual applications, the control strategies for volume ownership and operation can be divided into the following categories:

[0122] If the volume is an unattached volume, that is, the volume belongs to all controllers in a unified storage system with multiple controllers, each controller will have data input and output traffic for the volume. When the traffic on each controller exceeds the burst traffic queue mechanism trigger threshold assigned by the controller and the accumulated traffic resources are sufficient, the burst traffic queue mechanism can be triggered. At the same time, the burst traffic queue mechanism of the volume group can also be triggered, which allows each member of the volume group to reach the maximum burst traffic threshold in a short time.

[0123] If all volumes in the volume group have data input and output traffic and the traffic of each volume is balanced, set the volume group service quality-burst traffic threshold (QoS-Burst). When a burst occurs in the total traffic of the volume group, it is allowed to exceed the maximum burst traffic threshold within a certain period of time, but not exceed the maximum burst traffic threshold, up to the set burst traffic usage time, and then return to the burst traffic queue mechanism trigger threshold or below.

[0124] If all volumes in the volume group have data input and output traffic and the traffic of each volume is unbalanced, set the volume group service quality-burst traffic threshold. When a burst occurs in the total traffic of the volume group, it is allowed to exceed the maximum burst traffic threshold within a certain period of time, but not exceed the maximum burst traffic threshold, up to the set burst traffic usage time, and then recover to or below the burst traffic queue mechanism trigger threshold.

[0125] If some volumes in the volume group have data input and output traffic, and the traffic of each volume is balanced, the volume group service quality-burst traffic threshold is set for all volumes or volumes with data input and output traffic according to the selected policy. When a burst occurs in the total traffic of the volume group, it is allowed to exceed the maximum burst traffic threshold within a certain period of time, but not exceed the maximum burst traffic threshold, up to the set burst traffic usage time, and then recover to or below the burst traffic queue mechanism trigger threshold.

[0126] If some volumes in the volume group have data input and output traffic, and the traffic of each volume is unbalanced, set the volume group service quality-burst traffic threshold for all volumes or volumes with data input and output traffic according to the selected policy. When a burst occurs in the total traffic of the volume group, it is allowed to exceed the maximum burst traffic threshold within a certain period of time, but not exceed the maximum burst traffic threshold, up to the set burst traffic usage time, and then recover to or below the burst traffic queue mechanism trigger threshold.

[0127] It can be seen that there may be traffic imbalance between volumes in a volume group, or even some volumes have no data input / output traffic. As described in the above embodiment of the present invention, the volume group-related threshold can be determined according to the number of volumes actually running in the volume group.

[0128] In the above embodiment of the present invention, it is introduced that the thresholds related to the volume group can be evenly distributed to the volumes in the volume group. For example, the trigger threshold of the burst traffic queue mechanism set for the volume group is 100,000 IOPS, the maximum burst traffic threshold is 110,000 IOPS, and the burst traffic usage time is 2 minutes. Assuming that there are five volumes in the volume group, the trigger threshold of the burst traffic queue mechanism of each volume is set to 20,000 IOPS, and the maximum burst traffic threshold of each volume is set to 22,000 IOPS.

[0129] For the situation where traffic between volumes in a volume group is unbalanced, you can use one of the following three setting methods based on your needs.

[0130] In the first case, after determining the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the volume group, if there is a first target volume in the volume group whose data input and output traffic is greater than that of other volumes, an equal distribution threshold can be set for the other volumes by evenly dividing the relevant thresholds of the volume group, and a threshold greater than the equal distribution threshold can be set for the first target volume.

[0131] For example, the burst traffic queue mechanism trigger threshold set for the volume group is 100,000 IOPS, the maximum burst traffic threshold is 110,000 IOPS, and the burst traffic usage time is 2 minutes. Assuming that there are five volumes in the volume group, and the data input and output traffic of volume A is greater than that of other volumes, then volume A is taken as the first target volume. The burst traffic queue mechanism trigger threshold can be set to 25,000 IOPS for volume A, and the maximum burst traffic threshold can be set to 28,000 IOPS for volume A; the thresholds of the other four volumes are calculated by even division, that is, the burst traffic queue mechanism trigger threshold is 10 / 5=20,000 IOPS, and the maximum burst traffic threshold is 11 / 5=22,000 IOPS.

[0132] Even so, in actual applications, it is allowed that the sum of the burst flow related thresholds of each volume in the volume group is not equal to the burst flow related threshold of the volume group. The specific details can be determined according to user settings or business requirements.

[0133] In the second case, after determining the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the volume group, if there is a second target volume in the volume group whose data input and output traffic is smaller than that of other volumes, an equal distribution threshold can be set for other volumes by evenly dividing the relevant thresholds of the volume group, and a threshold smaller than the equal distribution threshold can be set for the second target volume.

[0134] For example, the burst traffic queue mechanism trigger threshold set for the volume group is 100,000 IOPS, the maximum burst traffic threshold is 110,000 IOPS, and the burst traffic usage time is 2 minutes. Assuming that there are five volumes in the volume group, and the data input and output traffic of volume B is greater than that of other volumes, volume B is taken as the second target volume. The burst traffic queue mechanism trigger threshold can be set to 15,000 IOPS for volume B, and the maximum burst traffic threshold can be set to 18,000 IOPS for volume B; the thresholds of the other four volumes are calculated by even division, that is, the burst traffic queue mechanism trigger threshold is 10 / 5=20,000 IOPS, and the maximum burst traffic threshold is 11 / 5=22,000 IOPS.

[0135] In the third case, after determining the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the volume group, the data input and output traffic ratio of each volume in the volume group can be determined according to the historical data input and output traffic distribution of each volume in the volume group, and the burst traffic related thresholds of the volume group can be divided into volumes according to the data input and output traffic ratio.

[0136] For example, the burst traffic queue mechanism trigger threshold set for the volume group is 100,000 IOPS, the maximum burst traffic threshold is 110,000 IOPS, and the burst traffic usage time is 2 minutes. Assuming that there are five volumes in the volume group, when divided according to the idea of ​​equal distribution, the burst traffic queue mechanism trigger threshold of each volume is set to 20,000 IOPS, and the maximum burst traffic threshold of each volume is set to 22,000 IOPS. However, it is possible that the data input and output traffic of volume A is greater than that of other volumes, and the data input and output traffic of volume B is less than that of other volumes. In this case, the burst traffic-related threshold of volume A can be appropriately increased, and the burst traffic-related threshold of volume B can be reduced, but the sum of the burst traffic-related thresholds of each volume is equal to the burst traffic-related threshold of the volume group.

[0137] In each of the above examples, the burst traffic usage time of the volume in the volume group is equal to the burst traffic usage time of the volume group. In actual applications, there may be a scenario where the burst traffic threshold of the volume is reached but the burst traffic threshold of the volume group is not reached, or there may be a scenario where the burst traffic threshold of the volume group is reached but the burst traffic threshold of the volume is not reached. Since data input and output operations are actually performed on the volume, the flow control of each volume is threshold-triggered according to the smaller of its own burst traffic threshold and the volume it is divided into, that is, the smaller of the burst traffic threshold is used as the upper limit constraint. If the sum of the burst traffic thresholds of the volumes in the volume group is greater than the burst traffic threshold of the volume group, there will be a situation where the maximum burst traffic threshold of the volume group is reached but the maximum burst traffic threshold of the volume cannot be reached. If the sum of the burst traffic thresholds of the volumes in the volume group is less than the burst traffic threshold of the volume group, there will be a situation where the maximum burst traffic threshold of some volumes is reached but the maximum burst traffic threshold of the volume group cannot be reached.

[0138] On the basis of the above embodiments, a flow control method for a unified storage system provided by an embodiment of the present invention may also include: when a controller used to monitor a corresponding monitoring object fails, a backup controller corresponding to the failed controller in a mirror pair divided in the unified storage system is used to take over the data flow and monitoring work of the failed controller, and the mirror pair is reorganized so that the number of mirror pairs is the same as the number of controllers operating normally; when the backup controller takes over the monitoring work of the failed controller, the part of the accumulated flow resources of the monitoring object monitored by the failed controller corresponding to the failed controller is cleared, and the preset ratio is adjusted to a ratio corresponding to the number of controllers operating normally.

[0139] In a specific implementation, each controller in a multi-controller system forms a mirror pair. Usually, several mirror pairs are constructed for as many controllers as there are. Each controller serves as the main controller in one mirror pair corresponding to it and as the standby controller in other mirror pairs corresponding to it. For example, if there are four controllers 1, 2, 3, and 4 in a multi-controller system, four mirror pairs 14, 13, 23, and 24 can be formed, corresponding to four domains. When all controllers are working normally, each mirror pair is working normally. If controller 1 fails, the two mirror pairs 23 and 24 are still working normally. At this time, since there are still three controllers 2, 3, and 4 in the system, the domain management module of the unified storage system reorganizes the affected domain members and triggers the re-mirroring of the business module on the relevant domain to ensure that each domain is still two controllers, for example, it can be reorganized into 23, 24, and 34. After the business module completes the re-mirroring, it means that the domain reorganization is completed. If there is another failed controller thereafter, the domain is reorganized again, and the re-mirroring of the business module is triggered again until there is only one controller left. At this time, there is only one controller left in each domain in the system.

[0140] By applying the flow control method of the unified storage system provided by the embodiment of the present invention, as long as there is a normally operating controller in the unified storage system, burst flow control can be performed on all volumes.

[0141] Figure 2 A flow chart of using a token bucket for flow control is provided in an embodiment of the present invention.

[0142] Based on the above embodiment, the embodiment of the present invention is further described by using a token bucket algorithm to perform burst flow control.

[0143] In an embodiment of the present invention, data input / output and bandwidth are dynamically adjusted based on the results of continuous performance monitoring of a unified storage system of multiple controllers, and a token bucket mechanism can be used to implement flow control. Then, in S103, accumulating flow resources for the monitored object with the corresponding maximum burst flow threshold as the upper limit may include: adding tokens to the token bucket of the monitored object with the corresponding maximum burst flow threshold as the maximum number of tokens in the token bucket corresponding to the monitored object. In S104, controlling the monitored object to enter the burst flow processing flow to allow the monitored object to use the accumulated flow resources within the corresponding burst flow usage time may include: when controlling the monitored object to enter the burst flow processing flow, allowing the monitored object to use the data input / output flow resources corresponding to all tokens in the token bucket.

[0144] Token flow control is a network traffic management technology that uses "tokens" to control the transmission rate of data packets in the network to avoid network congestion and ensure quality of service (QoS). Token Bucket is a common flow control mechanism that allows network devices to add tokens to the bucket at a certain rate. When a data packet arrives, it needs to take a token from the token bucket before it can be transmitted. If there is no token in the bucket, the data packet will be delayed or discarded. In the storage system, a token is usually used to represent a data input and output operation. In an embodiment of the present invention, a corresponding token can be used for each data input and output operation of the volume.

[0145] In the embodiment of the present invention, if Figure 2 As shown in the figure, when a token is obtained for a data input / output request for a volume, it is submitted to the lower-level data input / output stack, otherwise, it enters the queue and waits until a token is available; when a burst queue mechanism is implemented, when the amount of tokens used is less than the amount put in, token accumulation is performed (to prepare for burst traffic); otherwise, when a certain number of tokens are accumulated (to avoid frequent triggering and lose the meaning of burst processing), the accumulated tokens are used to allow the upper limit to be exceeded in a short period of time.

[0146] In an embodiment of the present invention, the mkthrottle command of the command line (the command is used to create a new speed control object and associate it with an object (such as a volume)) can be used to set the burst traffic queue mechanism trigger threshold, the maximum burst traffic threshold and the burst traffic usage time. Among them, the maximum burst traffic threshold corresponds to the bucket capacity of the token bucket. A switching flag can also be added to be determined by the current available traffic resources, and switch to the burst traffic state when the accumulated traffic resources are full and the consumption is greater than the speed of the input, and switch to the burst traffic queue mechanism trigger threshold state when the accumulated traffic resources are consumed or the burst traffic usage time is reached.

[0147] In an embodiment of the present invention, the total number of tokens required by the monitored object in a burst flow is calculated according to the burst flow-related thresholds set by the command line. Then in some optional implementations of the embodiments of the present invention, when accumulating flow resources for the monitored object, each controller of the unified storage system accumulates flow resources for the monitored object according to a preset ratio, which may include: when accumulating flow resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a first preset token release rate, until each controller releases the number of tokens corresponding to the maximum burst flow threshold of the monitored object; wherein the first preset token release rate is determined according to the token release rate corresponding to the data input and output rate of the monitored object, and the first preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object.

[0148] That is to say, when accumulating traffic resources for the monitored object, if the data input and output traffic of the monitored object does not exceed the trigger threshold of the burst traffic queue mechanism, the corresponding number of tokens generated by the data input and output traffic of the monitored object, such as IPOS, are put into the token bucket of the monitored object, for example, 1,000 tokens are put in one second until the number of tokens reaches the bucket capacity of the token bucket. If there are four controllers in the system, each controller needs to put in the number of tokens that reach the bucket capacity.

[0149] In actual applications, if the number of tokens in the token bucket is greater than the bucket capacity, the excess tokens will be discarded according to the funnel algorithm. If the token request rate of the monitored object is greater than the token placement rate, accumulation will continue until the requirement is met. If the token request rate of the monitored object is less than the token placement rate, it is determined whether the token bucket is full. If a controller stops the IOPS or bandwidth of the monitored object at this time, the accumulated tokens will be temporarily stored. When the controller starts the IOPS or bandwidth of the monitored object again, the tokens will be accumulated. However, when the threshold related to the burst traffic changes, all the original accumulated tokens will be discarded.

[0150] In an embodiment of the present invention, taking out tokens from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object may include: dividing the number of tokens in the token bucket by the number of controllers to obtain the number of available tokens of the monitored object, and taking out tokens from the available number of tokens to provide the required data traffic resources for the monitored object.

[0151] That is to say, when there is a burst of traffic in the monitored object, tokens will be obtained from the token bucket first, and the number of corresponding tokens of each controller will decrease rapidly until it reaches 0. At this time, if the data input and output traffic of the monitored object is less than the trigger threshold of the burst queue mechanism again, tokens will accumulate again and be consumed when there is a burst of traffic.

[0152] When bandwidth monitoring is in place, the required number of tokens (the current data input and output traffic size divided by 4K) is calculated for the data input and output traffic of the monitored object.

[0153] In a unified storage system with multiple controllers, for each monitored object, if the number of tokens accumulated by only some controllers reaches the bucket capacity, even if the trigger threshold of the burst traffic queue mechanism is met, it will only be triggered on the IOPS and bandwidth of some controllers, and the final burst values ​​of IOPS and bandwidth may not reach the expected values; only when the token accumulation of all controllers for the monitored object reaches the bucket capacity, the burst values ​​of IOPS and bandwidth of the monitored object will reach the expected values ​​(that is, the maximum burst traffic threshold) when encountering burst traffic.

[0154] In some other optional implementations of the embodiments of the present invention, when accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio, and also includes: when accumulating traffic resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a second preset token release rate until the number of tokens in the token bucket of the monitored object reaches the number of tokens corresponding to the maximum burst traffic threshold of the monitored object; wherein the second preset token release rate is determined based on the token release rate corresponding to the data input and output rate of the monitored object divided by the number of controllers, and the second preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object divided by the number of controllers.

[0155] That is, when each controller accumulates tokens for the monitored object, it is based on the token delivery rate corresponding to the data input and output rate of the monitored object divided by the number of controllers. The total number of tokens accumulated by each controller is the number of tokens corresponding to the bucket capacity of the token bucket divided by the number of controllers. When each controller implements control over the monitored object, it obtains the total number of tokens in the token bucket as the accumulated traffic resources. Then, taking tokens from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object may include: taking the number of tokens in the token bucket as the available token number of the monitored object, and taking tokens from the available token number to provide the required data traffic resources for the monitored object.

[0156] like Figure 2 As shown, in the token number calculation stage, the data input and output flow per second of the monitored object is determined according to the set data input and output flow per second of the monitored object.

[0157] When there is a set bandwidth, such as the bandwidth converted according to the 4K standard, the number of "4K" allowed per second is calculated based on the set value, and the token delivery rate (fixed at x per second) is obtained by combining the set data input and output traffic per second.

[0158] In the upper limit flow control stage, the token release rate is determined according to the current data input and output traffic of the monitored object, such as putting x tokens per second. Keep judging whether the token bucket is full. If it is full, discard the excess tokens; if it is not full, continue to release tokens to the token bucket according to the token release rate. At the same time, combined with the set bandwidth, when there is bandwidth monitoring, calculate the required number of tokens for the monitored object (the current data input and output traffic size divided by 4K). If there is no bandwidth monitoring, skip this step and calculate the required number of tokens for the monitored object based only on the data input and output traffic of the monitored object. Determine whether the token is obtained. If the token is obtained, submit it to the lower-level data input and output stack; if the token is not obtained, the data input and output request of the monitored object is queued.

[0159] In the burst flow control stage, determine whether the token bucket is full. If not, continue to accumulate tokens; determine whether the token request rate is less than the token placement rate. If so, continue to determine whether the token bucket is full. If not, determine whether the accumulated token amount is sufficient to trigger the burst traffic queue mechanism. If so, consume the accumulated tokens to use the accumulated traffic resources to exceed the burst traffic queue mechanism trigger threshold, and use the tokens in the token bucket to submit to the lower-level data input and output stack.

[0160] Figure 3 A flow chart of another unified storage system flow control method provided by an embodiment of the present invention.

[0161] Based on the above embodiments, the embodiments of the present invention further illustrate a deployment method of a flow control method of a unified storage system.

[0162] In the embodiment of the present invention, Figure 3 As shown, the steps of the flow control method of the unified storage system provided in the embodiment of the present invention can be executed by deploying a command line unit, an analysis management unit, a performance statistics unit and a flow limiting control unit.

[0163] Among them, the command line unit can create the trigger threshold, maximum burst traffic threshold and burst traffic usage time of each monitoring object through the mkthrottle command of the command line. Specifically, the analysis management unit averages and saves the relevant thresholds of the monitoring object, and then notifies the performance statistics unit of the client through the interface call command (call_geta). The analysis management unit is used to compare the setting value of the command line and the number of current controllers with the data input and output traffic to obtain the average flow limit of each controller or each volume in the volume group. The first setting is called by the command line, and the average value is calculated, which is used as reference data for subsequent system evaluation; then the client is notified to enable the performance statistics unit and report the performance value once. After receiving the information reported by the client, the service quality (Qos) requirement value set from the command line and the average value calculated previously are combined, and then the actual flow limit value for each monitoring object is obtained through system evaluation and comprehensive analysis, and notified to the flow limit control unit.

[0164] The performance statistics unit is used to trigger when there is a related burst traffic demand, in order to obtain the performance value of each monitoring object (volume, volume group) of each controller; it can calculate the average value of the data input and output traffic of the monitoring object within a unit time; in addition, it can also set the monitoring function to report the performance information of the corresponding monitoring object to the analysis management unit of the management end when the performance of the monitoring object changes or reaches a certain set threshold. After the relevant threshold is set, the performance value of the monitoring object will change. At this time, the performance statistics information will be reported to the management end again, and the feedback information will be compared with the command line setting value to see if it is within the allowable error range. If it is, the process ends. If not, the allocation value of each monitoring object on each controller is compared with the actual value, and fine-tuned.

[0165] The performance statistics unit starts to obtain the performance value (data input and output flow) of each monitored object, and when a valid value is obtained, it reports to the analysis management unit of the management end through an event, and starts performance monitoring of the monitored object.

[0166] The analysis management unit at the management end performs a comprehensive analysis based on the reporting information of the performance statistics unit, command line setting values, average values, etc., and obtains the current limiting value that should actually be set for a certain monitoring object of a certain controller.

[0167] The analysis management unit initializes each field in the flow limiting object according to the analyzed setting value, calculates the "bucket capacity" and so on; when the performance is lower than the set "upper limit value", it starts to accumulate "quotas" (i.e., accumulate traffic resources); when the available "quota" value exceeds 80% of the "bucket capacity" and the quota consumption speed is greater than the quota provision speed, the "state switching flag" is set to valid (TRUE), indicating that it is switched to the burst traffic state; when there is burst traffic, the data input and output traffic of the monitored object is allowed to exceed the burst traffic queue mechanism trigger threshold within a certain period of time, and the maximum does not exceed the maximum burst traffic threshold; when the monitored object reaches the maximum burst traffic threshold, the flow limiting uses its own "available quota" (i.e., the part less than the burst traffic queue mechanism trigger threshold) and simultaneously consumes the "accumulated quota"; when the "accumulated quota" is less than or equal to 0 or reaches the set burst traffic usage time, the "state switching flag" is set to invalid (FALSE), indicating that it is switched to the burst traffic queue mechanism trigger threshold state.

[0168] like Figure 3 As shown, another unified storage system flow control method provided by an embodiment of the present invention may include:

[0169] The analysis management unit sets the relevant thresholds of the burst traffic queue mechanism, and the flow limiting control unit allocates monitoring objects and fills in the data values ​​of the monitoring objects.

[0170] For each volume or volume group in the system, determine whether a burst queue mechanism is set; if yes, determine the monitoring object and proceed to the subsequent steps; if no, skip the burst queue mechanism related logic and submit the data input and output request downward.

[0171] For the monitored object, determine whether its available quota is greater than the threshold and the quota consumption speed is greater than the quota provision speed. If so, switch to the maximum accumulated traffic resource threshold state to operate, and the quota can continue to be accumulated according to the state when the burst traffic queue mechanism triggers the threshold, and the maximum does not exceed the "bucket capacity". When there is a burst, the traffic can exceed the burst traffic queue mechanism trigger threshold, but the maximum does not exceed the maximum accumulated traffic resource threshold. At this time, the accumulated quota is consumed; if not, use the burst traffic queue mechanism to trigger the threshold state to operate. When the actual traffic is less than the burst traffic queue mechanism trigger threshold, start accumulating quotas.

[0172] After the monitored object enters the burst traffic processing process, it is determined whether its available quota is less than or equal to 0 or reaches the set maximum burst traffic time. If so, it is switched back to the burst traffic queue mechanism trigger threshold state and returns to the burst traffic queue mechanism trigger threshold state. When the actual traffic is less than the burst traffic queue mechanism trigger threshold, quota accumulation begins.

[0173] On the basis of the above embodiments, in order to ensure that the business will not experience excessive jitter due to the setting of a burst traffic mechanism, in an embodiment of the present invention, S102 performs traffic monitoring on the monitored object, which may include: performing traffic monitoring on the monitored object based on a preset anti-jitter range; wherein the preset anti-jitter range includes not including the data input and output traffic in the statistics within a preset time after the initial start-up, using the average value per unit time as the statistical value for the data input and output traffic, recording the data input and output traffic trigger threshold as a valid trigger when it reaches a preset number of times, and recording the error range of the data input and output traffic trigger threshold as a valid trigger.

[0174] In the embodiment of the present invention, the anti-shake mechanism can be set from the following four perspectives: (1) The data input and output traffic is not included in the statistics within a preset time after the initial startup. For example, when the data input and output operation of the monitored object is initially started, that is, when it changes from 0 to non-0, the data of the first two seconds can be obtained without being counted.

[0175] (2) The average value of data input and output traffic per unit time is used as the statistical value. For example, the average value within 3 seconds to 10 seconds can be taken as a reference.

[0176] (3) When the data input and output flow trigger threshold reaches the preset number of times, it is recorded as a valid trigger. For example, it can be set that the relevant threshold is reached three times in a row before the reporting process or control process is triggered.

[0177] (4) The error range of the data input and output flow trigger threshold is recorded as a valid trigger. For example, an error range can be set, within which the performance value is considered to meet expectations.

[0178] Figure 4 This is a flowchart of a specific implementation of S102 provided in an embodiment of the present invention.

[0179] On the basis of the above embodiment, it is also possible to adapt to the actual traffic distribution time of the business corresponding to the monitored object, so as to avoid accumulating traffic resources for a certain monitored object at all times and affecting the work of other businesses. In the embodiment of the present invention, S102 performs traffic monitoring on the monitored object, which may include: if the effective time condition of the monitored object is met, then the traffic monitoring of the monitored object is performed; wherein the effective time condition includes at least one of being within a single effective time and reaching a cycle period.

[0180] That is to say, the effective time can be set, so that users can set the trigger time of the burst traffic queue mechanism according to specific business scenarios. For example, if a business is busy from 9:00 to 11:00 in the morning, the effective time can be set to 9:00.

[0181] like Figure 4 As shown, the mechanism for "effective time" can include three modes: single, weekly, and daily. A timer is set during initialization, and different timer cycle periods are specified according to different modes.

[0182] During the initial setting, the status changes from "empty" mode to waiting (Waiting). During the modification, the current status changes to waiting. Regardless of the initial setting or the modification time, it cannot be before the current system time. If it is exactly equal to the current time, it will start immediately and the status will change to running (Active). If the start time is not reached, it will wait and the status will change to waiting. In non-"empty" mode, the "immediately effective" parameter cannot be set to "No".

[0183] Calculate the time difference between the current system time and the set time. If it is greater than 24 hours, it will be cycled by day. If it is greater than 1 and less than 24 hours, it will be changed to cycle by hour. When it is less than 60 minutes away from the set time, it will be cycled by minute until the set time is reached. The set service quality characteristics are started and the status is changed from waiting to running.

[0184] In "Single" mode, if the effective time is 0, it means that it will take effect permanently from the set start time, and the timer will be canceled directly; if it is not 0, the timer trigger period will be changed according to the set duration. When the duration is reached, the feature will be changed to invalid, and then the timer will be canceled, and the state will be changed from running to stopped running (Inactive).

[0185] "Weekly" and "Daily" modes: The timer trigger cycle is also changed according to the set duration. When the duration is reached, the feature is changed to invalid, the state is changed from running to waiting, and then the next cycle is entered.

[0186] Then S102 performs flow monitoring on the monitored object, which may include:

[0187] Step 1: The command line unit receives command line parameters, which include, in addition to characteristic value parameters of the burst traffic queue mechanism, parameters such as operation mode, start time, and effective duration.

[0188] Step 2: The command line unit passes parameter information to the client side management end of the hardware layer module.

[0189] Step 3: Start the timer and determine the timer interval length according to the set mode and start time.

[0190] Step 4: If the time is more than 24 hours away from the start time, loop by day; if it is more than 1 and less than 24 hours, loop by hour; if it is less than 60 minutes, loop by minute.

[0191] Step 5: Start the feature after the time is reached.

[0192] Step 6: The end time can be obtained based on the effective duration. The timer runs in the same way as step 4.

[0193] Step 7: Stop the feature after the time is reached.

[0194] Step 8: After the end, the single mode stops the timer; the loop mode enters the next cycle and repeats steps 4, 5, 6, and 7.

[0195] Step 9: When the mode is set to empty mode or the entire feature is deleted, the timer expires.

[0196] like Figure 4 As shown, a specific implementation of S102 provided by an embodiment of the present invention may include:

[0197] Read the command line settings to determine whether there is a quality of service feature. If yes, record the parameter values ​​and provide them to the mode management submodule; if no, end.

[0198] In the mode management submodule, different branches are entered according to the set mode. If it is an empty mode, the parameter value is cleared and the timer is stopped before ending; if it is a single mode, weekly cycle mode or daily cycle mode, the corresponding timer is entered.

[0199] The timer determines whether the time from the start time is greater than 24 hours. If so, the timer is set to a day period. If not, the time from the start time is determined to be greater than 1 hour. If the time from the start time is greater than 1 hour, the timer is set to an hour period. If the time from the start time is less than 1 hour, the timer is set to a minute period.

[0200] Determine whether the time has been reached, and if so, determine whether it is the start time. If not, return to the step of setting the timer to a period of minutes.

[0201] If it is the start time, the service quality feature is started, the end time is calculated, and the step of determining whether the time from the start time is greater than 24 hours is returned according to the single mode, weekly cycle mode or daily cycle mode. If it is not the start time, the process ends if the current mode is the single mode, returns to the step of determining whether the time from the start time is greater than 24 hours if the current mode is the weekly cycle mode, and returns to the step of determining whether the time from the start time is greater than 24 hours if the current mode is the daily cycle mode.

[0202] It should be noted that in the embodiments of the flow control method of the unified storage system of the present invention, some of the steps or features can be ignored or not executed. The hardware or software functional modules divided for the convenience of description are not the only implementation form of the flow control method of the unified storage system provided by the embodiments of the present invention.

[0203] The above describes in detail various embodiments corresponding to the flow control method of the unified storage system. On this basis, the present invention also discloses a flow control device, equipment, non-volatile storage medium and computer program product of the unified storage system corresponding to the above method.

[0204] Figure 5 A schematic diagram of the structure of a flow control device of a unified storage system provided by an embodiment of the present invention.

[0205] like Figure 5 As shown, a controller in a unified storage system of multiple controllers is applied, and a flow control device of the unified storage system provided by an embodiment of the present invention includes:

[0206] The analysis management unit 501 is used to determine the triggering threshold value, maximum burst flow threshold value and burst flow usage of the monitored object; if the monitoring result reported by the performance statistics unit 502 that the data input and output flow of the monitored object does not exceed the corresponding burst flow queue mechanism triggering threshold value, the flow limiting control unit 503 is notified to accumulate flow resources for the monitored object with the corresponding maximum burst flow threshold value as the upper limit; if the monitoring result reported by the performance statistics unit 502 that the data input and output flow of the monitored object exceeds the corresponding burst flow queue mechanism triggering threshold value, the flow limiting control unit 503 is notified to control the monitored object to enter the burst flow processing flow, so as to allow the monitored object to use the accumulated flow resources within the corresponding burst flow usage time;

[0207] The performance statistics unit 502 is used to perform traffic monitoring on the monitored object and report the monitoring results to the analysis management unit 501;

[0208] The current limiting control unit 503 is used to execute the control task notified by the analysis management unit 501;

[0209] Wherein, the monitoring object is a volume or a volume group including multiple volumes;

[0210] When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object based on the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object.

[0211] The flow control device of the unified storage system provided by the embodiment of the present invention may further include:

[0212] A fault switching module is used for, when the controller for monitoring the monitored object fails, using a standby controller corresponding to the failed controller in the mirror pair divided by the unified storage system to take over the data traffic and monitoring work of the failed controller, and reorganizing the mirror pair so that the number of mirror pairs is the same as the number of the normally operating controllers;

[0213] When the standby controller takes over the monitoring work of the faulty controller, it clears the part of the accumulated traffic resources of the monitored object monitored by the faulty controller corresponding to the faulty controller, and adjusts the preset ratio to a ratio corresponding to the number of the controllers operating normally.

[0214] It should be noted that in each implementation of the flow control device of the unified storage system provided by the embodiment of the present invention, the division of units is only a logical functional division, and other division methods can be used. The connection method between different units can be electrical, mechanical or other connection methods. The separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, part or all of the units provided by the embodiment of the present invention can be selected according to actual needs and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present invention.

[0215] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0216] Figure 6 A schematic diagram of the structure of a flow control device of a unified storage system provided by an embodiment of the present invention.

[0217] like Figure 6 As shown, the flow control device of the unified storage system provided by the embodiment of the present invention includes:

[0218] A memory 610 for storing a computer program 611;

[0219] The processor 620 is used to execute the computer program 611. When the computer program 611 is executed by the processor 620, the steps of the flow control method of the unified storage system provided in any one of the above embodiments are implemented.

[0220] Among them, the processor 620 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 620 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 620 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 620 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 620 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0221] The memory 610 may include one or more non-volatile storage media, which may be non-transitory. The memory 610 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 610 is at least used to store the following computer program 611, wherein the computer program 611, after being loaded and executed by the processor 620, can implement the relevant steps in the flow control method of the unified storage system disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 610 may also include an operating system 612 and data 613, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 612 may be Windows or other types of operating systems. The data 613 may include but is not limited to the data involved in the above method.

[0222] In some embodiments, the flow control device of the unified storage system may further include a display screen 630 , a power supply 640 , a communication interface 650 , an input / output interface 660 , a sensor 670 , and a communication bus 680 .

[0223] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the flow control device of the unified storage system, and may include more or fewer components than those shown in the figure.

[0224] The flow control device of the unified storage system provided in the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the flow control method of the unified storage system provided in the above embodiment, and the effect is the same as above.

[0225] An embodiment of the present invention provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the flow control method of the unified storage system provided in any one of the above embodiments can be implemented.

[0226] The non-volatile storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0227] For the introduction of the non-volatile storage medium provided in the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the flow control method of the unified storage system provided in the embodiment of the present invention, and the present invention will not elaborate on it here.

[0228] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the flow control method of a unified storage system provided in any one of the above embodiments.

[0229] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the flow control method of the unified storage system provided by the embodiment of the present invention, and the present invention will not elaborate on it here.

[0230] The above is a detailed introduction to the flow control method, device, equipment and medium of a unified storage system provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the devices, equipment, non-volatile storage media and computer program products disclosed in the embodiments, since they correspond to the methods and systems disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the methods and systems. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

[0231] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A flow control method for a unified storage system, It is characterized in that Controllers used in a unified storage system with multiple controllers include: Determine the burst traffic queue mechanism trigger threshold, maximum burst traffic threshold and burst traffic usage time of the monitored object; Execute flow monitoring on the monitored object; If the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; If the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, the monitored object is controlled to enter the burst traffic processing flow to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time; When the controller used to monitor the monitored object fails, a standby controller corresponding to the failed controller in the mirror pair divided by the unified storage system is used to take over the data traffic and monitoring work of the failed controller, and the mirror pair is reorganized so that the number of mirror pairs is the same as the number of the normally operating controllers; Wherein, the monitoring object is a volume or a volume group including a plurality of volumes; When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object; The accumulating traffic resources for the monitored object with the corresponding maximum burst flow threshold as the upper limit includes: taking the corresponding maximum burst flow threshold as the maximum number of tokens in the token bucket corresponding to the monitored object, adding tokens to the token bucket of the monitored object; Control the monitored object to enter the burst traffic processing process to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time, including: when controlling the monitored object to enter the burst traffic processing process, allowing the monitored object to use the data input and output traffic resources corresponding to all tokens in the token bucket.

2. The flow control method of the unified storage system according to claim 1, It is characterized in that Each of the controllers accumulates traffic resources for the monitored object according to a preset ratio, including: Each of the controllers accumulates flow resources for the monitored object according to the maximum burst flow threshold of the monitored object as an upper limit; The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, including: The controller of the monitored object obtains the actual accumulated traffic resources of the monitored object by dividing the total value of the accumulated traffic resources of the monitored object by the number of the controllers.

3. The flow control method of the unified storage system according to claim 1, It is characterized in that Each of the controllers accumulates traffic resources for the monitored object according to a preset ratio, including: Each of the controllers accumulates flow resources for the monitored object according to a value obtained by dividing the maximum burst flow threshold of the monitored object by the number of the controllers as an upper limit; The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, including: The controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the total value of the accumulated traffic resources of the monitored object.

4. The flow control method of the unified storage system according to claim 1, It is characterized in that If the monitored object is the volume group, the step of determining the trigger threshold of the burst traffic queue mechanism, the maximum burst traffic threshold and the burst traffic usage time of the monitored object includes: Determine a burst traffic queue mechanism triggering threshold, a maximum burst traffic threshold, and a burst traffic usage time of the volume group, and evenly distribute the burst traffic queue mechanism triggering threshold and the maximum burst traffic threshold of the volume group to the volumes in the volume group.

5. The flow control method of the unified storage system according to claim 1, It is characterized in that If the monitored object is the volume group, the step of determining the trigger threshold of the burst traffic queue mechanism, the maximum burst traffic threshold and the burst traffic usage time of the monitored object includes: Determine the burst traffic usage time of the volume group, and determine the burst traffic queue mechanism trigger threshold and the maximum burst traffic threshold of the volume group according to the number of volumes with data input and output in the volume group, and divide the burst traffic queue mechanism trigger threshold and the maximum burst traffic threshold of the volume group equally to the volumes with data input and output.

6. The flow control method of the unified storage system according to claim 1, It is characterized in that The accumulating flow resources for the monitored object with the corresponding maximum burst flow threshold as the upper limit includes: The rate of accumulating traffic resources for the monitored object is determined according to the data input and output traffic of the monitored object, and the traffic is accumulated for the monitored object at the rate of accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit.

7. The flow control method of the unified storage system according to claim 6, It is characterized in that Determining a rate of accumulating traffic resources for the monitored object according to the data input and output traffic of the monitored object includes: Calculate the difference between the burst traffic queue mechanism trigger threshold of the monitored object and the data input and output traffic of the monitored object; The larger the difference is, the faster the rate at which traffic resources are accumulated for the monitored object is.

8. The flow control method of the unified storage system according to claim 1, It is characterized in that When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio, including: When accumulating traffic resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a first preset token release rate until each controller releases a number of tokens corresponding to a maximum burst traffic threshold of the monitored object; The first preset token release rate is determined according to the token release rate corresponding to the data input and output rate of the monitored object, and the first preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object.

9. The flow control method of the unified storage system according to claim 1, It is characterized in that When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio, including: When accumulating traffic resources for the monitored object, each controller of the unified storage system releases tokens to the token bucket corresponding to the monitored object according to a second preset token release rate until the number of tokens in the token bucket of the monitored object reaches the number of tokens corresponding to the maximum burst traffic threshold of the monitored object; Among them, the second preset token release rate is determined according to the token release rate corresponding to the data input and output rate of the monitored object divided by the number of the controllers, and the second preset token release rate is greater than the token release rate corresponding to the data input and output rate of the monitored object divided by the number of the controllers.

10. The flow control method of the unified storage system according to claim 1, It is characterized in that Taking out a token from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object includes: The number of tokens in the token bucket is divided by the number of controllers to obtain the number of available tokens for the monitored object, and tokens are taken from the available number of tokens to provide the monitored object with the required data traffic resources.

11. The flow control method of the unified storage system according to claim 10, It is characterized in that Taking out a token from the token bucket of the monitored object to allocate corresponding data input and output traffic resources to the monitored object includes: The number of tokens in the token bucket is taken as the number of available tokens for the monitored object, and tokens are taken out from the available number of tokens to provide the required data traffic resources for the monitored object.

12. The flow control method of the unified storage system according to claim 1, It is characterized in that Executing flow monitoring on the monitored object includes: Performing flow monitoring on the monitored object based on a preset anti-shake range; Among them, the preset anti-shake range includes not including the data input and output traffic in the statistics within a preset time after the initial startup, using the average value of the data input and output traffic within a unit time as the statistical value, recording the data input and output traffic trigger threshold as a valid trigger when it reaches a preset number of times, and recording the error range of the data input and output traffic trigger threshold as a valid trigger.

13. The flow control method of the unified storage system according to claim 1, It is characterized in that Executing flow monitoring on the monitored object includes: If the effective time condition of the monitoring object is met, the flow monitoring of the monitoring object is performed; The effective time condition includes at least one of being within a single effective time and reaching a cycle period.

14. The flow control method of the unified storage system according to claim 1, It is characterized in that Also includes: When the standby controller takes over the monitoring work of the faulty controller, it clears the portion of the accumulated traffic resources of the monitored object monitored by the faulty controller corresponding to the faulty controller, and adjusts the preset ratio to a ratio corresponding to the number of the controllers operating normally.

15. A unified storage system, It is characterized in that It includes a plurality of controllers, wherein the controller is used to determine a burst traffic queue mechanism triggering threshold, a maximum burst traffic threshold and a burst traffic usage time of a monitored object; and perform traffic monitoring on the monitored object; If the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism threshold, accumulating traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; If the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, the monitored object is controlled to enter the burst traffic processing flow to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time; When the controller used to monitor the monitored object fails, a standby controller corresponding to the failed controller in the mirror pair divided by the unified storage system is used to take over the data traffic and monitoring work of the failed controller, and the mirror pair is reorganized so that the number of mirror pairs is the same as the number of the normally operating controllers; Wherein, the monitoring object is a volume or a volume group including a plurality of volumes; When accumulating traffic resources for the monitored object, each of the controllers accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object; The accumulating traffic resources for the monitored object with the corresponding maximum burst flow threshold as the upper limit includes: taking the corresponding maximum burst flow threshold as the maximum number of tokens in the token bucket corresponding to the monitored object, adding tokens to the token bucket of the monitored object; Control the monitored object to enter the burst traffic processing process to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time, including: when controlling the monitored object to enter the burst traffic processing process, allowing the monitored object to use the data input and output traffic resources corresponding to all tokens in the token bucket.

16. A flow control device for a unified storage system, It is characterized in that Controllers used in a unified storage system with multiple controllers include: An analysis management unit is used to determine a burst traffic queue mechanism triggering threshold, a maximum burst traffic threshold and a burst traffic usage time of a monitored object; if a monitoring result is received from a performance statistics unit that the data input and output traffic of the monitored object does not exceed the corresponding burst traffic queue mechanism triggering threshold, then notify the flow limiting control unit to accumulate traffic resources for the monitored object with the corresponding maximum burst traffic threshold as the upper limit; if a monitoring result is received from the performance statistics unit that the data input and output traffic of the monitored object exceeds the corresponding burst traffic queue mechanism triggering threshold, then notify the flow limiting control unit to control the monitored object to enter a burst traffic processing flow, so as to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time; The performance statistics unit is used to perform traffic monitoring on the monitored object and report the monitoring result to the analysis management unit; The current limiting control unit is used to execute the control task notified by the analysis management unit; A fault switching module is used for, when the controller for monitoring the monitored object fails, using a standby controller corresponding to the failed controller in the mirror pair divided by the unified storage system to take over the data traffic and monitoring work of the failed controller, and reorganizing the mirror pair so that the number of mirror pairs is the same as the number of the normally operating controllers; Wherein, the monitoring object is a volume or a volume group including a plurality of volumes; When accumulating traffic resources for the monitored object, each controller of the unified storage system accumulates traffic resources for the monitored object according to a preset ratio; when the monitored object enters the burst traffic processing process, the controller of the monitored object determines the actual accumulated traffic resources of the monitored object according to the preset ratio and the total value of the accumulated traffic resources of the monitored object, and increases data input and output traffic resources for the monitored object according to the actual accumulated traffic resources of the monitored object; The accumulating traffic resources for the monitored object with the corresponding maximum burst flow threshold as the upper limit includes: taking the corresponding maximum burst flow threshold as the maximum number of tokens in the token bucket corresponding to the monitored object, adding tokens to the token bucket of the monitored object; Control the monitored object to enter the burst traffic processing process to allow the monitored object to use the accumulated traffic resources within the corresponding burst traffic usage time, including: when controlling the monitored object to enter the burst traffic processing process, allowing the monitored object to use the data input and output traffic resources corresponding to all tokens in the token bucket.

17. A flow control device for a unified storage system, It is characterized in that include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the flow control method of the unified storage system as described in any one of claims 1 to 14 are implemented.

18. A non-volatile storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the flow control method of the unified storage system as claimed in any one of claims 1 to 14 are implemented.

19. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or instruction is executed by a processor, the steps of the flow control method of the unified storage system as claimed in any one of claims 1 to 14 are implemented.