CN111131063B - Flow control method, related device, equipment and storage medium - Google Patents

Flow control method, related device, equipment and storage medium Download PDF

Info

Publication number
CN111131063B
CN111131063B CN201911415718.6A CN201911415718A CN111131063B CN 111131063 B CN111131063 B CN 111131063B CN 201911415718 A CN201911415718 A CN 201911415718A CN 111131063 B CN111131063 B CN 111131063B
Authority
CN
China
Prior art keywords
flow
storage resource
threshold
performance
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911415718.6A
Other languages
Chinese (zh)
Other versions
CN111131063A (en
Inventor
胡健鹰
邢小云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911415718.6A priority Critical patent/CN111131063B/en
Publication of CN111131063A publication Critical patent/CN111131063A/en
Application granted granted Critical
Publication of CN111131063B publication Critical patent/CN111131063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Abstract

The application discloses a flow control method, a related device, equipment and a storage medium, which are used for avoiding the problem that important services are limited too much due to undifferentiated flow control, so that the accuracy of flow control is improved. The method comprises the following steps: acquiring a first performance parameter corresponding to a target storage resource set; if the first performance parameter is greater than or equal to the first performance threshold, acquiring M second performance parameters corresponding to the target storage resource set; determining a storage resource set to be limited in current from a target storage resource set according to the M second performance parameters, wherein the storage resource set to be limited in current comprises P storage resources to be limited in current; and if a first current-limiting storage resource in the set of storage resources to be current-limited belongs to the first service, performing flow control on the first current-limiting storage resource according to a first flow threshold, wherein M is an integer greater than or equal to 1, and P is an integer greater than or equal to 1 and smaller than M.

Description

Flow control method, related device, equipment and storage medium
Technical Field
The present application relates to the field of cloud storage technologies, and in particular, to a method for controlling traffic, a related apparatus, a device, and a storage medium.
Background
Virtualization storage technology enables the utilization of physical resources to be increased, the physical resources being shared among a plurality of workloads having different requirements. However, resource management of the shared storage system is also challenging, and in the context of over-subscription of cloud storage resources, resource shortage may occur, and therefore, a flow control policy needs to be adopted.
At present, a flow control strategy can be divided into a plurality of performance dimensions, each performance dimension is analyzed independently, important services and non-important services are distinguished based on the performance dimensions, and when resource competition occurs between the important services and the non-important services, the requirements of the important services are met preferentially. And in case of overload, carrying out flow control according to the proportion of the performance threshold and the current load.
However, the flow control is performed according to the ratio of the performance threshold and the current load, and actually, the flow control is performed on the large-flow volume, and the large-flow volume generally belongs to an important service, so that the flow limitation on the large-flow volume directly affects the flow use of the important service, and is not favorable for the flexibility of the flow control.
Disclosure of Invention
The embodiment of the application provides a flow control method, a related device, equipment and a storage medium, which are used for selecting a first flow-limiting storage resource belonging to a first service from storage resources to be flow-limited, and then performing flow control on the first flow-limiting storage resource by using a first flow threshold set under the first service, so that the problem that important services are limited too much due to undifferentiated flow control is avoided, and the accuracy of flow control is improved.
In view of the above, a first aspect of the present application provides a method for controlling flow, including:
acquiring a first performance parameter corresponding to a target storage resource set, wherein the target storage resource set comprises M storage resources, and M is an integer greater than or equal to 1;
if the first performance parameter is larger than or equal to the first performance threshold, acquiring M second performance parameters corresponding to the target storage resource set, wherein the second performance parameters and the storage resources have one-to-one correspondence;
determining a storage resource set to be limited in current from a target storage resource set according to the M second performance parameters, wherein the storage resource set to be limited in current comprises P storage resources to be limited in current, and P is an integer which is greater than or equal to 1 and smaller than M;
and if a first current-limiting storage resource in the to-be-limited storage resource set belongs to a first service, performing flow control on the first current-limiting storage resource according to a first flow threshold, wherein the first flow threshold is a flow threshold corresponding to the first service.
A second aspect of the present application provides a flow control device comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first performance parameter corresponding to a target storage resource set, the target storage resource set comprises M storage resources, and M is an integer greater than or equal to 1;
the acquisition module is further configured to acquire M second performance parameters corresponding to the target storage resource set if the first performance parameter acquired by the acquisition module is greater than or equal to the first performance threshold, where the second performance parameters and the storage resources have a one-to-one correspondence relationship;
the determining module is used for determining a storage resource set to be limited in current from a target storage resource set according to the M second performance parameters acquired by the acquiring module, wherein the storage resource set to be limited in current comprises P storage resources to be limited in current, and P is an integer which is greater than or equal to 1 and less than M;
and the control module is used for controlling the flow of the first current-limiting storage resource according to a first flow threshold if the first current-limiting storage resource in the to-be-limited storage resource set determined by the determination module belongs to the first service, wherein the first flow threshold is a flow threshold corresponding to the first service.
In one possible design, in a first implementation of the second aspect of an embodiment of the present application,
the acquisition module is further configured to acquire a second performance parameter corresponding to the target server, where the target server includes at least one storage resource set, and the at least one storage resource set includes a target storage resource set;
the obtaining module is further configured to execute the step of obtaining the first performance parameter corresponding to the target storage resource set if the second performance parameter is greater than or equal to the second performance threshold.
In one possible design, in a second implementation manner of the second aspect of the embodiment of the present application, the flow control device further includes a calculation module;
the acquisition module is further configured to acquire performance parameters corresponding to the target storage resource set at X times in a first period, where X is an integer greater than or equal to 1;
the calculation module is used for calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
the calculating module is further configured to calculate to obtain a first performance threshold according to the first average value and the first standard deviation.
In one possible design, in a third implementation of the second aspect of the embodiments of the present application,
the acquisition module is further configured to acquire performance parameters corresponding to the target storage resource set at X times in a first period, where X is an integer greater than or equal to 1;
the calculation module is further used for calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
and the calculating module is further used for calculating to obtain a first to-be-determined performance threshold according to the first average value and the first standard deviation.
The acquisition module is further configured to acquire performance parameters corresponding to Y times of the target storage resource set in a second period, where Y is an integer greater than or equal to 1, and the second period is smaller than the first period;
the calculation module is further used for calculating to obtain a second average value and a second standard deviation according to the performance parameters corresponding to the Y moments;
the calculation module is further used for calculating to obtain a second performance threshold to be judged according to the second average value and the second standard deviation;
the determining module is further configured to determine the second performance threshold to be determined as the first performance threshold if the variation amplitude between the first performance threshold to be determined and the second performance threshold to be determined is greater than or equal to the amplitude threshold.
In one possible design, in a fourth implementation of the second aspect of the embodiment of the present application,
a determining module, configured to determine N second performance parameters from M second performance parameters according to a target performance threshold, where the target performance parameter is determined according to the first performance parameter, and N is an integer greater than or equal to 1 and less than or equal to M;
acquiring a resource set to be selected from the target storage resource set according to the N second performance parameters, wherein the resource set to be selected comprises the N resources to be selected, and the resources to be selected and the second performance parameters have one-to-one correspondence;
and determining a storage resource set to be limited from the resource set to be selected according to a third performance threshold corresponding to each second performance parameter in the N second performance parameters.
In one possible design, in a fifth implementation of the second aspect of the embodiments of the present application,
a determining module, configured to determine P second performance parameters from the M second performance parameters according to a target performance threshold, where the target performance parameter is determined according to the first performance parameter, and P is an integer greater than or equal to 1 and less than or equal to M;
and acquiring a storage resource set to be limited from the target storage resource set according to the P second performance parameters, wherein the storage resource to be limited and the second performance parameters have a one-to-one correspondence relationship.
In one possible design, in a sixth implementation of the second aspect of the embodiments of the present application,
the determining module is further used for determining a first residual flow according to the first performance threshold and the first flow threshold;
the acquisition module is further used for acquiring a first distribution proportion corresponding to a second current-limiting storage resource if the second current-limiting storage resource in the to-be-limited storage resource set belongs to a second service;
the determining module is further configured to determine a second flow threshold corresponding to the second current-limiting storage resource according to the first remaining flow and the first allocation ratio;
and the control module is also used for controlling the flow of the second current-limiting storage resource according to the second flow threshold.
In one possible design, in a seventh implementation of the second aspect of the embodiments of the present application,
the determining module is further used for determining a first residual flow according to the first performance threshold and the first flow threshold;
the acquisition module is further used for acquiring a first distribution proportion corresponding to a second current-limiting storage resource if the second current-limiting storage resource in the to-be-limited storage resource set belongs to a second service;
the determining module is further configured to determine a second flow threshold corresponding to the second current-limiting storage resource according to the first remaining flow and the first allocation ratio;
the calculating module is further configured to calculate a traffic difference according to a second traffic threshold and a third traffic threshold, where the third traffic threshold is a traffic threshold corresponding to the second service;
and the control module is also used for controlling the flow of the second current-limiting storage resource according to the flow difference value.
In one possible design, in an eighth implementation of the second aspect of the embodiments of the present application,
the control module is specifically configured to perform flow control on the second current-limiting storage resource according to a third flow threshold if the flow difference is within a first flow range, where the first flow range is a range greater than or equal to the first flow value and less than or equal to the second flow value, and the first flow value is less than the second flow value;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, determining a second allocation proportion corresponding to the third current-limiting storage resource according to a first allocation proportion corresponding to the second current-limiting storage resource;
determining a flow threshold corresponding to the third current-limiting storage resource according to the first residual flow and the second distribution proportion;
and controlling the flow of the third current-limiting storage resource according to the flow threshold corresponding to the third current-limiting storage resource.
In one possible design, in a ninth implementation of the second aspect of the embodiment of the present application,
the control module is specifically configured to perform flow control on the second current-limiting storage resource according to a third flow threshold if the flow difference is within a second flow range, where the second flow range is a range smaller than or equal to the first flow value;
determining a second residual flow according to the first residual flow and a third flow threshold;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, acquiring a third allocation proportion corresponding to the third current-limiting storage resource;
determining a fourth flow threshold according to the second residual flow and the third distribution proportion, wherein the fourth flow threshold is a flow threshold corresponding to the third flow-limiting storage resource;
and controlling the flow of the third flow-limiting storage resource according to the fourth flow threshold.
In one possible design, in a tenth implementation of the second aspect of the embodiment of the present application,
the control module is specifically configured to determine a third remaining flow according to the first remaining flow and a second flow threshold if the flow difference is within a third flow range, where the third flow range is greater than or equal to the second flow value;
determining an allocable flow threshold according to the third residual flow and a fourth allocation proportion, wherein the allocable flow threshold is larger than the second flow threshold and smaller than or equal to the third flow threshold, and the fourth allocation proportion is smaller than or equal to the allocation proportion threshold;
and controlling the flow of the third current-limiting storage resource according to the allocable flow threshold.
In one possible design, in an eleventh implementation manner of the second aspect of the embodiment of the present application, the flow control device further includes a stopping module;
the acquisition module is also used for acquiring the performance parameters of the target storage resource set in a target time period;
and the stopping module is used for stopping flow control of the storage resources in the target storage resource set if the performance parameter in the target time period is smaller than the first performance parameter.
A third aspect of the present application provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the method of the above-described aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a method for controlling flow, which includes first obtaining a first performance parameter corresponding to a target storage resource set including M storage resources, obtaining M second performance parameters corresponding to the target storage resource set when the first performance parameter is greater than or equal to a first performance threshold, the second performance parameters having a one-to-one correspondence relationship with the storage resources, then determining a storage resource set to be flow-limited including P storage resources to be flow-limited from the target storage resource set according to the M second performance parameters, controlling flow of the first flow-limited storage resource according to a first flow threshold when the first flow-limited storage resource in the storage resource set to be flow-limited belongs to a first service, the first flow threshold being a flow threshold corresponding to the first service, where M is an integer greater than or equal to 1, P is greater than or equal to 1, and an integer less than M. Through the method, after the storage resources to be limited are determined, uniform flow control is not directly performed on all the storage resources to be limited, the first flow-limiting storage resources belonging to the first service are selected from the storage resources to be limited, and then the first flow threshold set under the first service is utilized to perform flow control on the first flow-limiting storage resources, so that the problem that important services are limited too much due to undifferentiated flow control is avoided, and the accuracy of flow control is improved.
Drawings
FIG. 1 is a block diagram of a flow control system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another embodiment of a flow control system;
FIG. 3 is a schematic diagram of another embodiment of a flow control system;
FIG. 4 is a schematic diagram of an embodiment of a method for flow control in an embodiment of the present application;
FIG. 5 is a schematic view of one embodiment of a flow control device in an embodiment of the present application;
fig. 6 is a schematic diagram of an embodiment of a server in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a flow control method, a related device, equipment and a storage medium, which are used for selecting a first flow-limiting storage resource belonging to a first service from storage resources to be flow-limited, and then performing flow control on the first flow-limiting storage resource by using a first flow threshold set under the first service, so that the problem that important services are limited too much due to undifferentiated flow control is avoided, and the accuracy of flow control is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "corresponding" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the embodiment of the present application may be applied to a scenario in which different services are controlled, a current virtualized storage technology improves a utilization rate of storage resources, the storage resources may be shared and reused among a plurality of workloads with different requirements, but when the storage resources are over-ordered, the storage resources corresponding to a part of the services are not enough to meet a user requirement, at this time, normal provision of the services needs to be ensured, and influences on other services need to be reduced, so that the flow needs to be controlled.
Specifically, a network disk is taken as an example, the network disk may also be called a network hard disk and a network U disk, and is an online storage service based on a network, and the network disk may provide a user with document management functions of file storage, sharing, access, backup, and the like. The user can manage or edit the files in the network disk through the network. The essence of the network disk is to allocate the hardware resources of the server to the registered users, so the capacity is generally small for free network disks, and in addition, in order to prevent users from abusing the network disk resources, the size of a single file and the size of an uploaded file are generally limited, so the free network disk is generally only used for storing small files. For the paid network disk, the speed, the safety performance and the capacity are far greater than those of a free network disk, a large-capacity file is allowed to be stored, the paid network disk is suitable for users with higher requirements on services, different services are correspondingly provided for the paid network disk, and when various services all need storage resources, the flow needs to be controlled in order to ensure the normal provision of the services and reduce the influence of the storage resources among the services.
The video website is another example for explanation, and the video website refers to a network media which enables internet users to smoothly publish, browse and share video works online under the support of a perfect technical platform. The video website has various types of videos, for example, a live football game or a basketball game which can be watched by multiple people simultaneously, or on-demand programs of a small number of people are met, different video types correspond to different flow requirements, and as the grades of users on the video website are different, for example, a non-member user and a member user need to preferentially meet the flow requirements of the member user on the live broadcast when multiple people watch the same live broadcast game, but the live broadcast watching experience of the non-member user cannot be completely influenced, the flow needs to be controlled.
In the above various scenarios, in order to avoid the problem that important services are too much restricted due to undifferentiated flow control and improve the accuracy of flow control, the present application provides a flow control method, which is applied to the flow control system shown in fig. 1, please refer to fig. 1, where fig. 1 is a schematic structural diagram of the flow control system in the embodiment of the present application, and as shown in the drawing, the flow control system includes at least one server.
Specifically, the server 1 to the server 3 in fig. 1 may be one server, or a server cluster or a cloud computing center formed by a plurality of servers, and the like, which are not limited herein. The server and the server may communicate with each other via a wireless network, a wired network, or a removable storage medium. Wherein the wireless network described above uses standard communication techniques and/or protocols. The wireless Network is typically the internet, but may be any Network including, but not limited to, bluetooth, Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, private, or virtual private networks in any combination. In some embodiments, custom or dedicated data communication techniques may be used in place of or in addition to the data communication techniques described above. The removable storage medium may be a Universal Serial Bus (USB) flash drive, a removable hard drive or other removable storage medium, and the like.
Although only three servers are shown in fig. 1, it should be understood that the example in fig. 1 is only for understanding the present solution, and the number of specific servers should be flexibly determined in combination with the actual situation.
For further understanding of the present disclosure, please refer to fig. 2, and fig. 2 is another schematic diagram of an architecture of a traffic control system in an embodiment of the present disclosure, as shown in the figure, a server in the traffic control system may specifically be a cloud server, which may also be referred to as a "warehouse," and in order to isolate mutual interference between different storage resource types, the cloud server may include a volume set (volset), where one volume only belongs to one volset, and the volset may be configured with at least one volume, each volset has an individual performance threshold, and supports the volset to divide the storage resource set performance by the volset according to capacity, the dividing manner may be a default manner or may support manual configuration, where the volume is a storage resource, and may specifically be a logical volume, and the logical volume may be a cloud hard disk, and the cloud hard disk may be mounted on different cloud servers, so that cloud hard disk examples of different sizes may be created, and mounting the data to a cloud server. The volset may be divided according to the usage type of the logical volume, for example, logical volume 1 is used for file storage, logical volume 2 is used for block storage sharing file system, and the performance division of the volset in the cloud server is performed according to the capacity of the volset. For example, volset1 may include volume 1, volume 2, and volume 3, while volset2 may include volume 4, volume 5, and volume 6, while volset1 and volset2 are mounted on a cloud server.
Specifically, the Cloud server is implemented based on Cloud technology, and Cloud technology (Cloud technology) refers to a hosting technology for unifying series resources such as hardware, software, and network in a wide area network or a local area network to implement calculation, storage, processing, and sharing of data. The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied in the cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Background services of a cloud computing technology network system require a large amount of computing and storage resources, such as video websites, picture-type websites and more portal websites. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces to cooperatively work by using functions such as cluster application, grid technology, and a distributed storage file system, and provides a data storage function and a service access function to the outside. At present, a storage method of a storage system may create logical volumes first, and when creating the logical volumes, physical storage space is allocated to each logical volume, where the physical storage space may be a disk composition of a certain storage device or certain storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data Identification (ID), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object. The storage system allocates a physical storage space to a logical volume, and specifically, the physical storage space may be first divided into stripes according to a capacity measure of an object stored in the logical volume and a group of Redundant Array of Independent Disks (RAID), and one logical volume may be understood as one stripe, so that the physical storage space is allocated to the logical volume.
Further, referring to fig. 3, fig. 3 is another schematic diagram of an architecture of a flow control system in an embodiment of the present application, and as shown in the drawing, when a load of a cloud server acquiring a volset through a wireless network, a wired network, or a removable storage medium exceeds a threshold of the volset, a volume in the volset needs to be controlled. For example, when volset1 exceeds the threshold of volset1, the cloud server may perform flow control on volume 1, volume 2, and volume 3 in volset1, but it is understood that in actual cases, flow control may be performed on only one or two volumes.
With reference to the above description, a method for controlling a flow in the present application will be described below, referring to fig. 4, where fig. 4 is a schematic diagram of an embodiment of a method for controlling a flow in an embodiment of the present application, and as shown in the drawing, an embodiment of the method for controlling a flow in an embodiment of the present application includes:
101. acquiring a first performance parameter corresponding to a target storage resource set, wherein the target storage resource set comprises M storage resources, and M is an integer greater than or equal to 1;
in this embodiment, the flow control device may first acquire a target storage resource set including M storage resources, and then acquire a corresponding first performance parameter in the target storage resource set, where M is an integer greater than or equal to 1. It should be understood that the target set of storage resources may be a set of storage resources received by the flow control device over a wired network, and may also be a set of storage resources stored by the flow control device itself. Specifically, the target storage resource set may be one volset, and the storage resource may be a volume, and may specifically be a logical volume, where a volset is a set of a group of logical volumes, and a logical volume can only belong to one volset at the same time, and multiple volsets may be configured in the same flow control device at the same time, each volset has a separate performance threshold, and may support the volset to divide the entire warehouse performance by capacity, and may also support manual configuration, and the performance threshold may be calculated by using a formula according to the volset capacity, for convenience of understanding, refer to the following formula:
the volset performance threshold (volset capacity/total volset capacity by all capacities) × (cloud service flow control threshold-manually configured volset performance threshold sum).
For example, the target storage resource set may include a storage resource a, a storage resource B, a storage resource C, a storage resource D, and a storage resource E, and assuming that the first performance parameter corresponding to the target storage resource set is 280 Megabytes (MB)/second (second, s), the first performance parameter is the sum of the performance parameters corresponding to the storage resource a, the storage resource B, the storage resource C, the storage resource D, and the storage resource E.
It should be noted that the flow control device may be deployed on a server, a cloud server, or a terminal device, and the flow control device is described as being deployed on a cloud server in this application, which should not be construed as limiting the application.
102. If the first performance parameter is larger than or equal to the first performance threshold, acquiring M second performance parameters corresponding to the target storage resource set, wherein the second performance parameters and the storage resources have one-to-one correspondence;
in this embodiment, after acquiring the first performance parameter through step 101, the flow control device needs to determine the first performance parameter and the first performance threshold. The target storage resource set comprises M storage resources, each storage resource corresponding to one second performance parameter, and therefore the target storage resource set corresponds to M second performance parameters, where M is an integer greater than or equal to 1.
If the first performance parameter is greater than or equal to the first performance threshold, the flow control device may obtain M second performance parameters corresponding to the target set of storage resources. Specifically, the flow control may be divided into reading and writing, and may further include an input/output operation per second (IOPS) and a bandwidth, that is, the flow control may be divided into four performance dimensions, which are a reading IOPS, a writing IOPS, a reading bandwidth, and a writing bandwidth, respectively, each performance dimension may be analyzed independently, and in practical application, two or more of the performance dimensions may be combined to perform common analysis. It should be understood that, in this embodiment, the threshold corresponding to the performance dimension of the write bandwidth is used as the first performance threshold, and in practical application, the thresholds corresponding to other performance dimensions may also be used as the performance thresholds, which is not limited herein.
Illustratively, assume that the first performance parameter corresponding to the target set of storage resources is 280MB/s, and the write bandwidth threshold is 100MB/s, that is, the first performance threshold is 100MB/s, and thus it can be seen that the first performance parameter is greater than the first performance threshold, and therefore the second performance parameter corresponding to each storage resource in the target storage resource set, that is, the second performance parameters corresponding to the storage resource a, the storage resource B, the storage resource C, the storage resource D, and the storage resource E, are required to be obtained, it is assumed that the second performance parameter corresponding to the storage resource a is 50MB/s, the second performance parameter corresponding to the storage resource B is 30MB/s, the second performance parameter corresponding to the storage resource C is 60MB/s, the second performance parameter corresponding to the storage resource D is 70MB/s, and the second performance parameter corresponding to the storage resource E is 70 MB/s.
103. Determining a storage resource set to be limited in current from a target storage resource set according to the M second performance parameters, wherein the storage resource set to be limited in current comprises P storage resources to be limited in current, and P is an integer which is greater than or equal to 1 and smaller than M;
in this embodiment, after the flow control device obtains the second performance parameter through step 102, a to-be-current-limited storage resource set may be determined from the target storage resource set according to the second performance parameter, where the to-be-current-limited storage resource set includes P to-be-current-limited storage resources, and P is an integer greater than or equal to 1 and smaller than M. Specifically, the set of storage resources to be throttled is a set of storage resources that occupies 80% of the overall traffic header in the target set of storage resources, and it should be understood that the set of storage resources that occupies other proportions of the overall traffic header may also be used, where 80& is merely an illustration and should not be construed as a limitation to the present application.
For convenience of understanding, a target storage resource set is taken as an example to describe that the target storage resource set includes a storage resource a, a storage resource B, a storage resource C, a storage resource D and a storage resource E, since the target storage resource set is a set of storage resources occupying 80% of the header of the overall traffic, that is, the storage resources in the target storage resource set need to be arranged in order from large to small, then the first 80% of the storage resources are selected as a set of storage resources to be limited, it is assumed that a second performance parameter corresponding to the storage resource a is 50MB/s, a second performance parameter corresponding to the storage resource B is 30MB/s, a second performance parameter corresponding to the storage resource C is 60MB/s, a second performance parameter corresponding to the storage resource D is 70MB/s, a second performance parameter corresponding to the storage resource E is 70MB/s, and a total performance parameter is 280MB/s, the sum of performance parameters accounting for 80% of the head of the overall traffic is 224MB/s, therefore, after being arranged from large to small, the storage resource set to be limited accounting for the overall traffic 224MB/s comprises a storage resource A, a storage resource C, a storage resource D and a storage resource E, and the sum of performance parameters of the storage resource A, the storage resource C, the storage resource D and the storage resource E is 250MB/s, which reaches 224 MB/s.
104. And if a first current-limiting storage resource in the to-be-limited storage resource set belongs to a first service, performing flow control on the first current-limiting storage resource according to a first flow threshold, wherein the first flow threshold is a flow threshold corresponding to the first service.
In this embodiment, after determining the set of storage resources to be flow-limited through step 103, the flow control apparatus may further determine the storage resources in the set of storage resources to be flow-limited, and if a first flow-limiting storage resource exists in the set of storage resources to be flow-limited and the first flow-limiting storage resource belongs to a first service, determine a flow threshold corresponding to the first service as a first flow threshold, and perform flow control on the first flow-limiting storage resource according to the first flow threshold.
For convenience of understanding, a storage resource a in the to-be-limited storage resource set is taken as a first limited storage resource for explanation, where the storage resource a belongs to a first service, the first service is an important service, and a volume corresponding to the important service is recorded in a hard white list. Wherein the hard white list includes a mapping relationship between volume identifications and flow values. Assuming that the traffic threshold corresponding to the first service is 40MB/s, the first traffic threshold may be determined to be 40MB/s, and since the second performance parameter corresponding to the storage resource a is 50MB/s and already exceeds the first traffic threshold by 40MB/s, the traffic of the storage resource a needs to be controlled at 40MB/s, thereby completing the traffic control. It should be understood that the first flow threshold is an empirically obtained value, and is a fixed flow value, and the first flow threshold of 40MB/s is only used for understanding the present embodiment, and the specific first flow threshold should be flexibly determined according to actual situations.
The embodiment of the application provides a flow control method, and through the above manner, after determining the storage resources to be flow-limited, uniform flow control is not directly performed on all the storage resources to be flow-limited, but a first flow-limiting storage resource belonging to a first service is selected from the storage resources to be flow-limited, and then the first flow threshold set under the first service is utilized to perform flow control on the first flow-limiting storage resource, so that the problem that important services are limited too much due to undifferentiated flow control is avoided, and the accuracy of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in this embodiment of the present application, before obtaining the first performance parameter corresponding to the target storage resource set, the method for controlling flow may further include:
acquiring a second performance parameter corresponding to a target server, wherein the target server comprises at least one storage resource set, and the at least one storage resource set comprises a target storage resource set;
and if the second performance parameter is greater than or equal to the second performance threshold, executing the step of obtaining the first performance parameter corresponding to the target storage resource set.
In this embodiment, before acquiring the first performance parameter corresponding to the target storage resource set, the flow control device may further acquire a second performance parameter corresponding to a target server including at least one storage resource set, where the at least one storage resource set includes the target storage resource set, and determine the second performance parameter and a second performance threshold, and when the acquired second performance parameter is greater than or equal to the second performance threshold, execute the step of acquiring the first performance parameter corresponding to the target storage resource set.
It should be understood that, in this embodiment, the target server is described as a cloud server, and the cloud server may be regarded as a warehouse, and the warehouse includes at least one volset, so that the second performance parameter may be the sum of performance parameters of write bandwidth in each volset in the warehouse. Secondly, the performance threshold may also be calculated by using a formula according to the capacity division of the target server, and for easy understanding, please refer to the following formula:
target server performance threshold (target server capacity/total capacity of all target servers per capacity) × (target server flow control threshold-manually configured target server performance threshold sum).
For convenience of understanding, the target server is described by taking an example that the target server includes a storage resource set a and a storage resource set B, and the storage resource set a is a target storage resource set, where a performance parameter of write bandwidth in the storage resource set a is 280MB/s, and a performance parameter of write bandwidth in the storage resource set B is 120MB/s, so that a second performance parameter corresponding to the target server is 400 MB/s. If the write bandwidth threshold of the target server is 240MB/s, that is, the second performance threshold is 240MB/s, that is, the second performance parameter is greater than the second performance threshold, the foregoing step 101 may be executed to perform flow control on the storage resource set a.
Secondly, in the foregoing manner, before obtaining the first performance parameter corresponding to the target storage resource set, it is necessary to determine whether the target server where the target storage resource set is located needs to perform flow control, and when the performance parameter is greater than or equal to the performance threshold, the step of performing flow control is performed, so as to avoid a problem that important services are limited due to undifferentiated flow control when the flow is not overloaded and used normally, thereby improving accuracy of the flow control.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in the embodiment of the present application, the method for controlling flow may further include:
acquiring performance parameters corresponding to X moments of a target storage resource set in a first period, wherein X is an integer greater than or equal to 1;
calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
and calculating to obtain a first performance threshold according to the first average value and the first standard deviation.
In this embodiment, the flow control device may obtain performance parameters corresponding to X times of the target storage resource set in the first period, then calculate to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X times, and further calculate to obtain a first performance threshold according to the first average value and the first standard deviation, where X is an integer greater than or equal to 1. Specifically, the first average value and the first standard deviation are calculated by using the following formula to obtain a first performance threshold:
Thres=μ+3*σ;
where Thres represents a first performance threshold, μ represents a first average, and σ represents a first standard deviation.
For convenience of understanding, please refer to table 1, where table 1 is an example of a corresponding relationship between time and a performance parameter (write bandwidth), and in this embodiment, the first period is 24 hours, and every 3 hours is taken as a time, in practical applications, the period may be more values, and the time may also be divided in other manners, and the performance parameter may also be read IOPS, write IOPS, and read bandwidth, which is not described herein again.
TABLE 1
Time (minutes) 0 180 360 540 720 900 1080 1260 1440
Write bandwidth (MB/s) 0 40 60 80 10 10 40 40 80
It can be obtained from table 1 that the performance parameters corresponding to different times within 1440 minutes, that is, 24 hours, respectively, the performance parameter corresponding to 0 minute is 0MB/s, the performance parameter corresponding to 180 minutes is 40MB/s, the performance parameter corresponding to 360 minutes is 60MB/s, the performance parameter corresponding to 540 minutes is 80MB/s, the performance parameter corresponding to 720 minutes is 10MB/s, the performance parameter corresponding to 900 minutes is 10MB/s, the performance parameter corresponding to 1080 minutes is 40MB/s, the performance parameter corresponding to 1260 minutes is 40MB/s, and the performance parameter corresponding to 1440 minutes is 80MB/s, so that the average value corresponding to the internal performance parameter is 40MB/s, that is, the first average value is 40MB/s, and the standard deviation corresponding to the performance parameter in 24 hours is about 42MB/s, i.e. the first standard deviation is 42MB/s, so the first performance threshold can be calculated by the above formula, and the first performance threshold is 166 MB/s.
Secondly, an embodiment of the present application provides a method for calculating a first performance threshold, where first, performance parameters corresponding to X times of a target storage resource set in a first period may be obtained, then, a first average value and a first standard deviation are calculated according to the performance parameters corresponding to the X times, and then, a first performance threshold is calculated according to the first average value and the first standard deviation, where X is an integer greater than or equal to 1. By the mode, the average value and the standard deviation are calculated through the performance parameters corresponding to different moments in the first period, so that the accuracy of the first performance threshold can be improved, and the accuracy of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in the embodiment of the present application, the method for controlling flow further includes:
acquiring performance parameters corresponding to X moments of a target storage resource set in a first period, wherein X is an integer greater than or equal to 1;
calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
and calculating to obtain a first to-be-determined performance threshold according to the first average value and the first standard deviation.
Acquiring performance parameters corresponding to Y moments of a target storage resource set in a second period, wherein Y is an integer greater than or equal to 1, and the second period is smaller than the first period;
calculating to obtain a second average value and a second standard deviation according to the performance parameters corresponding to the Y moments;
calculating to obtain a second performance threshold to be judged according to the second average value and the second standard deviation;
and if the variation amplitude between the first performance threshold to be determined and the second performance threshold to be determined is larger than or equal to the amplitude threshold, determining the second performance threshold to be determined as the first performance threshold.
In this embodiment, the flow control device may obtain performance parameters corresponding to X times of the target storage resource set in a first period, then calculate to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X times, further calculate to obtain a first performance threshold to be determined according to the first average value and the first standard deviation, further obtain performance parameters corresponding to Y times of the target storage resource set in a second period, then calculate to obtain a second average value and a second standard deviation according to the performance parameters corresponding to the Y times, further calculate to obtain a second performance threshold to be determined according to the second average value and the second standard deviation, then calculate a variation amplitude between the first performance threshold to be determined and the second performance threshold to be determined, when the variation amplitude is greater than or equal to the amplitude threshold, the second performance threshold to be determined is determined as the first performance threshold, where X is an integer greater than or equal to 1, Y is an integer greater than or equal to 1, and the second period is less than the first period.
Specifically, the average value and the standard deviation are calculated by using the following formula to obtain a performance threshold to be determined:
Thres=μ+3*σ;
where Thres denotes a performance threshold to be determined, μ denotes an average value, and σ denotes a standard deviation. It should be understood that, in practical application, the traffic corresponding to the service is changed in real time, so in order to cope with the service change at any time, two cycles of 24 hours and 3 hours may be taken to calculate the mean value and the standard deviation of the storage resource, the target storage resource set and the target server, if the performance threshold variation amplitude calculated by the 3 hours and 24 hours exceeds 30%, the data of 3 hours may be used for calculation, and for the storage resource with the duration less than 24 hours, the difference value between the performance parameter and the mean performance parameter may also be used for calculation.
For convenience of understanding, please refer to table 2, where table 2 is another example of a corresponding relationship between time and a performance parameter (write bandwidth), in this embodiment, the first period is 24 hours, and every 3 hours is taken as a time, in an actual application, the period may be more values, and the time may also be divided in other manners, and the performance parameter may also be read IOPS, write IOPS, and read bandwidth, which is not described herein again.
TABLE 2
Time (minutes) 0 180 360 540 720 900 1080 1260 1440
Write bandwidth (MB/s) 0 40 60 80 0 0 40 60 80
It can be obtained from table 2 that the performance parameters corresponding to different times within 1440 minutes, that is, 24 hours, respectively, the performance parameter corresponding to 0 minute is 0MB/s, the performance parameter corresponding to 180 minutes is 40MB/s, the performance parameter corresponding to 360 minutes is 60MB/s, the performance parameter corresponding to 540 minutes is 80MB/s, the performance parameter corresponding to 720 minutes is 10MB/s, the performance parameter corresponding to 900 minutes is 10MB/s, the performance parameter corresponding to 1080 minutes is 40MB/s, the performance parameter corresponding to 1260 minutes is 40MB/s, and the performance parameter corresponding to 1440 minutes is 80MB/s, so that the average value corresponding to the internal performance parameter is 40MB/s, that is, the first average value is 40MB/s, and the standard deviation corresponding to the performance parameter in 24 hours is about 47MB/s, i.e. the first standard deviation is 47MB/s, so the first to-be-determined performance threshold can be calculated by the aforementioned formula, and the first to-be-determined performance threshold is 181 MB/s.
Further, please refer to table 3, where table 3 is another example of the corresponding relationship between time and performance parameters (write bandwidth), and the second period is 3 hours and every 30 minutes is taken as a time in this embodiment, in practical applications, the period may be more values, and the time may also be divided in other manners, and the performance parameters may also be read IOPS, write IOPS, and read bandwidth, which are not described herein again.
TABLE 3
Time (minutes) 0 30 60 90 120 150 180
Write bandwidth (MB/s) 0 40 40 50 40 40 40
As can be obtained from table 3, the performance parameters corresponding to different times within 180 minutes, that is, 3 hours respectively, the performance parameter corresponding to the 0 th minute is 0MB/s, the performance parameter corresponding to the 30 th minute is 40MB/s, the performance parameter corresponding to the 60 th minute is 40MB/s, the performance parameter corresponding to the 90 th minute is 50MB/s, the performance parameter corresponding to the 120 th minute is 40MB/s, the performance parameter corresponding to the 150 th minute is 40MB/s, and the performance parameter corresponding to the 180 th minute is 40MB/s, so that the average value corresponding to the internal performance parameter is about 36MB/s, that is, the second average value is 36MB/s, and the standard deviation corresponding to the performance parameter within 24 hours is about 8MB/s, that is, the second standard deviation is 8MB/s, so that the first to-be-determined performance threshold can be calculated by the above formula, and the second to-be-determined performance threshold is obtained to be 60 MB/s.
Further, taking the amplitude threshold value of 30% as an example, it should be understood that the amplitude threshold value is a value obtained empirically, and taking the amplitude threshold value of 30% as an example in this embodiment is only used for understanding the present solution, and the specific amplitude threshold value should be determined flexibly in combination with the actual situation. Since the first to-be-determined performance threshold value is 181MB/s and the second to-be-determined performance threshold value is 60MB/s, the magnitude of change between the first to-be-determined performance threshold value and the second to-be-determined performance threshold value is about (181-60)/181-67%, which is greater than the magnitude threshold value by 30%, and thus the second to-be-determined performance threshold value 60MB/s is determined as the first performance threshold value.
Secondly, another method for calculating a first performance threshold is provided in the embodiments of the present application, in the manner described above, the flow rate changes in real time in a longer period and a shorter period, and a fault-type change may occur, so that the average value and the standard deviation are calculated according to the performance parameters corresponding to different times in different periods, and the performance threshold to be determined is obtained, and when the variation amplitude between the performance thresholds to be determined is greater than or equal to the amplitude threshold, the flow rate changes in a fault-type manner, so that the performance threshold to be determined obtained by calculating in a shorter period is the first performance threshold, and thus the accuracy of the first performance threshold is improved, and the accuracy of the flow rate control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the flow control method provided in this embodiment of the present application, determining, according to M second performance parameters, a storage resource set to be limited from a target storage resource set may include:
determining N second performance parameters from the M second performance parameters according to a target performance threshold, wherein the target performance parameters are determined according to the first performance parameters, and N is an integer which is greater than or equal to 1 and less than or equal to M;
acquiring a resource set to be selected from the target storage resource set according to the N second performance parameters, wherein the resource set to be selected comprises the N resources to be selected, and the resources to be selected and the second performance parameters have one-to-one correspondence;
and determining a storage resource set to be limited from the resource set to be selected according to a third performance threshold corresponding to each second performance parameter in the N second performance parameters.
In this embodiment, after determining the target performance threshold according to the first performance parameter, the flow control device may determine N second performance parameters from M second performance parameters according to the target performance threshold, then obtain a to-be-selected resource set including N to-be-selected resources from the target storage resource set according to the determined N second performance parameters, where the to-be-selected resources have a one-to-one correspondence relationship with the second performance parameters, and further determine a to-be-limited storage resource set from the to-be-selected resource set according to a third performance threshold corresponding to each of the N second performance parameters, where M is an integer greater than or equal to 1, and N is an integer greater than or equal to 1 and less than or equal to M.
For convenience of understanding, the first performance parameter is taken as 100MB/s for illustration, and assuming that the head proportion is 80%, the target performance parameter is represented as the first performance parameter 80%, therefore, in this embodiment, the target performance threshold is 100MB/s 80% to 80MB/s, the target storage resource set may include storage resource a, storage resource B, storage resource C, and storage resource D, and the performance parameter corresponding to storage resource a is 30MB/s, the performance parameter corresponding to storage resource B is 40MB/s, the performance parameter corresponding to storage resource C is 20MB/s, the performance parameter corresponding to storage resource D is 10MB/s, storage resources a to storage resources D are arranged from large to small according to the performance parameters, the storage resource corresponding to the previous N performance parameters whose sum is 80MB/s is selected as the storage resource to be selected, since the sum of the performance parameters of the storage resource a to the storage resource C is 90MB/s in the arrangement from small to large, a resource set to be selected may also be formed according to the storage resource a to the storage resource C, and then the second performance parameters corresponding to the storage resource a, the storage resource B, and the storage resource C are calculated in the foregoing manner, so as to obtain the third performance threshold. It should be understood that the third performance threshold is calculated based on the performance parameters of the storage resources, and therefore the third performance threshold corresponding to each storage resource is different, similar to the performance threshold obtained in the previous step, but calculated for each storage resource in a different period.
For further understanding of the present solution, please refer to table 4, table 5 and table 6, where table 4 is an example of the corresponding relationship between the time of storing resource a and the performance parameter, table 5 is an example of the corresponding relationship between the time of storing resource B and the performance parameter, and table 6 is an example of the corresponding relationship between the time of storing resource C and the performance parameter. In this embodiment, the first period is 24 hours, and every 3 hours is taken as a time, in practical application, the period may be more values, the time may also be divided in other manners, and the performance parameter may also be a read IOPS, a write IOPS, and a read bandwidth, which is not described herein.
Table 4 storage resource a
Time (minutes) 0 180 360 540 720 900 1080 1260 1440
Write bandwidth (MB/s) 0 10 20 20 30 30 30 30 10
Table 5 storage resource B
Time (minutes) 0 180 360 540 720 900 1080 1260 1440
Write bandwidth (MB/s) 0 30 50 60 60 50 40 40 30
TABLE 6 storage resource C
Time (minutes) 0 180 360 540 720 900 1080 1260 1440
Write bandwidth (MB/s) 0 10 20 10 0 0 10 20 0
Based on table 4, table 5 and table 6, it can be obtained that the performance parameters corresponding to different times within 1440 minutes, that is, 24 hours respectively correspond to an average value of 20MB/s for the performance parameter of the storage resource a, and a standard deviation of about 12MB/s for the performance parameter within 24 hours, so that the third performance threshold of the storage resource a can be calculated by the foregoing formula, and the third performance threshold of the storage resource a is 56 MB/s.
Secondly, the average value corresponding to the performance parameter of the storage resource B is about 40MB/s, and the standard deviation corresponding to the performance parameter within 24 hours is about 17MB/s, so the third performance threshold of the storage resource B can be calculated by the above formula, and the third performance threshold of the storage resource B is 91 MB/s.
In addition, the average value corresponding to the performance parameter of the storage resource C is about 8MB/s, and the standard deviation corresponding to the performance parameter in 24 hours is about 9MB/s, so the third performance threshold of the storage resource C can be calculated by the above formula, and the third performance threshold of the storage resource C is 35 MB/s.
Therefore, the third performance threshold of the storage resource a is 56MB/s, the third performance threshold of the storage resource B is 91MB/s, and the third performance threshold of the storage resource C is 35MB/s, both the third performance thresholds corresponding to the storage resource a and the storage resource C are smaller than the target performance threshold, and the third performance threshold corresponding to the storage resource B is larger than the target performance threshold, and the storage resource B needs to be subjected to flow control.
In the above manner, by obtaining the performance parameters of the storage resources in the storage resource set and calculating the corresponding performance threshold, the storage resources exceeding the target performance threshold in the storage resource set can be accurately determined, the storage resources are determined as the storage resources to be limited and generate the storage resource set to be limited, the selection of the subsequent steps on the storage resource set to be limited is already controlled, and the problem that important services are limited too much due to undifferentiated flow control is avoided, so that the accuracy of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the flow control method provided in this embodiment of the present application, determining, according to M second performance parameters, a storage resource set to be limited from a target storage resource set may include:
determining P second performance parameters from the M second performance parameters according to a target performance threshold, wherein the target performance parameters are determined according to the first performance parameters, and P is an integer which is greater than or equal to 1 and less than or equal to M;
and acquiring a storage resource set to be limited from the target storage resource set according to the P second performance parameters, wherein the storage resource to be limited and the second performance parameters have a one-to-one correspondence relationship.
In this embodiment, the flow control device may determine a target performance threshold according to the first performance parameter, then determine P second performance parameters from the M second performance parameters according to the target performance threshold, and further obtain a to-be-current-limited storage resource set from the target storage resource set according to the P second performance parameters, where M is an integer greater than or equal to 1, and P is an integer greater than or equal to 1 and less than or equal to M, and the to-be-current-limited storage resource and the second performance parameters have a one-to-one correspondence relationship. It should be understood that the present embodiment may be applied to daily traffic, where the daily traffic keeps continuously monitoring performance parameters, for example, a scene may be a live football game watched by multiple users at the same time on a video website, so that a plurality of users all use a large amount of traffic within a period of time, and at this time, the performance parameters corresponding to the traffic used by the plurality of users need to be acquired to perform traffic control, so as to ensure normal operation of a service.
For convenience of understanding, the first performance parameter is 200MB/s for illustration, and assuming that the head proportion is 80%, the target performance parameter is 80%, so in this embodiment, the target performance threshold is 200MB/s 80% to 160MB/s, and the target storage resource set may include storage resource a, storage resource B, storage resource C, storage resource D, and storage resource E, and the performance parameter corresponding to storage resource a is 60MB/s, the performance parameter corresponding to storage resource B is 20MB/s, the performance parameter corresponding to storage resource C is 30MB/s, the performance parameter corresponding to storage resource D is 40MB/s, and the performance parameter corresponding to storage resource E is 50MB/s, the storage resources a to E are arranged according to the performance parameters from large to small, and selecting the storage resource corresponding to the sum of the performance parameters of 80MB/s as the storage resource to be limited, and forming a storage resource set to be limited according to the storage resource A, the storage resource C, the storage resource D and the storage resource E because the storage resources are arranged from small to large and the sum of the performance parameters corresponding to the storage resource A, the storage resource C, the storage resource D and the storage resource E is 180 MB/s.
The embodiment of the present application provides another method for acquiring a to-be-limited storage resource set, which may determine a target performance parameter according to a first performance parameter, determine P second performance parameters from M second performance parameters according to the target performance threshold, and then acquire the to-be-limited storage resource set from the target storage resource set according to the P second performance parameters, where M is an integer greater than or equal to 1, and P is an integer greater than or equal to 1 and less than or equal to M. By the method, the storage resources meeting the target performance threshold are determined as the storage resources to be limited in the current through acquiring the performance parameters of the storage resources in the storage resource set, the storage resource set to be limited is generated, the storage resource set to be limited is determined in different manners in daily flow and burst flow, the flexibility and accuracy of determination of the storage resource set to be limited are improved, and therefore the feasibility of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in this embodiment of the present application, after performing flow control on the first current-limiting storage resource according to the first flow threshold, the method for controlling flow may further include:
determining a first remaining flow according to the first performance threshold and the first flow threshold;
if a second current limiting storage resource in the set of storage resources to be current limited belongs to a second service, acquiring a first distribution proportion corresponding to the second current limiting storage resource;
determining a second flow threshold corresponding to a second current-limiting storage resource according to the first residual flow and the first distribution proportion;
and controlling the flow of the second flow-limiting storage resource according to the second flow threshold.
In this embodiment, after the flow control device performs flow control on the first current-limiting storage resource according to the first flow threshold, the flow control device may further determine a first remaining flow according to the first performance threshold and the first flow threshold, when a second current-limiting storage resource in the set of storage resources to be current-limited belongs to the second service, obtain a first allocation proportion corresponding to the second current-limiting storage resource, determine a second flow threshold corresponding to the second current-limiting storage resource according to the obtained first remaining flow and the obtained first allocation proportion, and finally perform flow control on the second current-limiting storage resource according to the second flow threshold.
For convenience of understanding, it is described by taking the example that the set of storage resources to be limited in current includes storage resource a, storage resource B, and storage resource C, and the performance parameter corresponding to storage resource a is 120MB/s, the performance parameter corresponding to storage resource B is 60MB/s, and the performance parameter corresponding to storage resource C is 40MB/s, and assuming that the first performance threshold in this embodiment is 100MB/s and the first traffic threshold is 80MB/s, since the performance parameter corresponding to storage resource a is 120MB/s and storage resource a belongs to the first service, storage resource a may be determined as the first current-limiting storage resource in the foregoing manner, and then the storage resource a is controlled in current by using the first traffic threshold 80MB/s, and the performance parameter of storage resource a is maintained at 80MB/s, since the first traffic threshold 80MB/s has been used in the first performance threshold 100MB/s for performing the current-limiting Flow control, and thus the first remaining flow, is 20MB/s difference between the first performance threshold and the first flow threshold.
And then judging other current-limiting storage resources in the current-limiting storage resource set, and if the storage resources B and C belong to a second service, wherein the second service is a second important service, and a volume corresponding to the second important service is recorded in a soft white list. The soft white list includes a mapping relationship between volume identifiers and flow values. Assuming that the performance parameters corresponding to the storage resource B and the storage resource C are both smaller than the first flow threshold of 80MB/s, obtaining a first allocation ratio corresponding to the storage resource B and the storage resource C, where the first allocation ratio is a ratio of the performance parameters corresponding to the storage resource B and the storage resource C, that is, 60 MB/s: 40MB/s 3: 2, the first residual flow rate of 20MB/s is divided into 3 parts according to a first distribution ratio: 2 are allocated to storage resource B and storage resource C, the traffic threshold for storage resource B is 12MB/s and the traffic threshold for storage resource C is 8 MB/s. Then, the performance parameter of the storage resource B is maintained at the corresponding flow threshold value of 12MB/s, and the performance parameter of the storage resource C is maintained at the corresponding flow threshold value of 8 MB/s.
In another example, it is illustrated that the set of storage resources to be limited includes storage resource a, storage resource B, and storage resource C, and the performance parameter corresponding to storage resource a is 120MB/s, the performance parameter corresponding to storage resource B is 100MB/s, and the performance parameter corresponding to storage resource C is 20MB/s, and assuming that the first performance threshold in this embodiment is 100MB/s and the first traffic threshold is 40MB/s, since the performance parameter corresponding to storage resource a is 120MB/s and storage resource a belongs to the first service, storage resource a may be determined as the first limited storage resource in the foregoing manner, and then flow control is performed on storage resource a with first traffic threshold of 40MB/s, and the performance parameter of storage resource a is maintained at 40MB/s, since first traffic threshold of 40MB/s has been used in first performance threshold of 100MB/s The flow is controlled so that the first remaining flow is 60MB/s difference between the first performance threshold and the first flow threshold.
Then, judging other current-limiting storage resources in the current-limiting storage resource set, if judging that the storage resource B and the storage resource C both belong to the second service, the corresponding performance parameter of the storage resource B is 100MB/s, which is equal to the first performance threshold of 100MB/s, and belongs to the burst traffic, but because the storage resource B and the storage resource C both belong to the second service, similarly to the above, obtaining a first allocation proportion corresponding to the storage resource B and the storage resource C, where the first allocation proportion is a proportion of the corresponding performance parameters of the storage resource B and the storage resource C, that is, 100 MB/s: 20MB/s 5: 1, the first residual flow rate of 60MB/s is divided into 5 parts according to a first distribution ratio: 1 are allocated to storage resource B and storage resource C, so the traffic threshold for storage resource B is 50MB/s, while the traffic threshold for storage resource C is 10 MB/s. Then, the performance parameter of the storage resource B is maintained at the corresponding flow threshold value of 50MB/s, and the performance parameter of the storage resource C is maintained at the corresponding flow threshold value of 10 MB/s.
Secondly, another method for controlling flow is provided in this embodiment, after the first flow-limiting storage resource is controlled according to the first flow threshold, a first remaining flow may be determined according to the first performance threshold and the first flow threshold, when a second flow-limiting storage resource in the set of storage resources to be limited belongs to a second service, a first allocation proportion corresponding to the second flow-limiting storage resource is obtained, a second flow threshold corresponding to the second flow-limiting storage resource is determined according to the obtained first remaining flow and the obtained first allocation proportion, and finally, the second flow control may be performed on the second flow-limiting storage resource according to the second flow threshold. Through the above manner, after the first current-limiting storage resource is subjected to flow control, the remaining current-limiting storage resources are distributed according to the distribution proportion for the first remaining flow, and flow control is performed according to the corresponding threshold value, so that different services are guaranteed to be subjected to flow control through different threshold values, flow distinguishing control of important services and common services is completed, normal operation of both the important services and the common services is guaranteed, and feasibility of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in this embodiment of the present application, after performing flow control on the first current-limiting storage resource according to the first flow threshold, the method for controlling flow may further include:
determining a first remaining flow according to the first performance threshold and the first flow threshold;
if a second current limiting storage resource in the set of storage resources to be current limited belongs to a second service, acquiring a first distribution proportion corresponding to the second current limiting storage resource;
determining a second flow threshold corresponding to a second current-limiting storage resource according to the first residual flow and the first distribution proportion;
calculating to obtain a flow difference value according to the second flow threshold and a third flow threshold, wherein the third flow threshold is a flow threshold corresponding to the second service;
and controlling the flow of the second current-limiting storage resource according to the flow difference value.
In this embodiment, after the flow control device performs flow control on the first limited storage resource according to the first flow threshold, the flow control device may further determine a first remaining flow according to the first performance threshold and the first flow threshold, when a second current limiting storage resource in the set of storage resources to be current limited belongs to a second service, a first allocation proportion corresponding to the second current limiting storage resource is obtained, and determining a second flow threshold corresponding to a second flow-limiting storage resource according to the obtained first residual flow and the first distribution proportion, then, a traffic threshold corresponding to the second service may also be obtained, and the traffic threshold is determined as a third traffic threshold, and then calculating to obtain a flow difference value according to the obtained second flow threshold value and the third flow threshold value, and finally controlling the flow of the second flow-limiting storage resource according to the flow difference value.
For convenience of understanding, it is described that the set of storage resources to be limited in current includes a storage resource a, a storage resource B, a storage resource C, and a storage resource D, and a performance parameter corresponding to the storage resource a is 120MB/s, a performance parameter corresponding to the storage resource B is 100MB/s, a performance parameter corresponding to the storage resource C is 10MB/s, and a performance parameter corresponding to the storage resource D is 10MB/s, assuming that in this embodiment, the first performance threshold is 100MB/s and the first flow threshold is 40MB/s, since the performance parameter corresponding to the storage resource a is 120MB/s and the storage resource a belongs to the first service, the storage resource a may be determined as the first current-limiting storage resource in the foregoing manner, and then the storage resource a is controlled in current by the first flow threshold of 40MB/s, the performance parameter of the storage resource a is maintained at 40MB/s, and since the flow rate control is already performed using the first flow rate threshold 40MB/s in the first performance threshold 100MB/s, the first remaining flow rate is the difference of 60MB/s between the first performance threshold and the first flow rate threshold.
Then, judging other current-limiting storage resources in the current-limiting storage resource set, if judging that the storage resource B belongs to the second service, although the performance parameter corresponding to the storage resource B is 100MB/s, which is equal to the first performance threshold value of 100MB/s, and belongs to the burst traffic, because the storage resource B belongs to the second service, similarly to the foregoing, obtaining a first allocation proportion corresponding to the storage resource B, the storage resource C, and the storage resource D, where the first allocation proportion is a proportion of the performance parameters corresponding to the storage resource B, the storage resource C, and the storage resource D, that is, 100 MB/s: 10 MB/s: 10 MB/s-10: 1: 1, according to the first dispensing ratio 10: 1: the 1 may take the second traffic threshold corresponding to the acquired storage resource B as 50MB/s, and take the traffic threshold corresponding to the second service as 30MB/s as an example for explanation, that is, the third traffic threshold is 30MB/s, and a traffic difference between the second traffic threshold 50MB/s and the third traffic threshold 30MB/s is 20MB/s through calculation, so that the storage resource B may be controlled according to the traffic difference 20 MB/s.
In another example, it is illustrated that the set of storage resources to be limited includes a storage resource a, a storage resource B, a storage resource C, and a storage resource D, and a performance parameter corresponding to the storage resource a is 120MB/s, a performance parameter corresponding to the storage resource B is 60MB/s, a performance parameter corresponding to the storage resource C is 20MB/s, a performance parameter corresponding to the storage resource D is 20MB/s, in this embodiment, the first performance threshold is 100MB/s, and the first flow threshold is 80MB/s, since the performance parameter corresponding to the storage resource a is 120MB/s, and the storage resource a belongs to the first service, the storage resource a may be determined as the first limited storage resource in the foregoing manner, and then the storage resource a is controlled by the first flow threshold 80MB/s, the performance parameter of the storage resource a is maintained at 80MB/s, and since the flow control has been performed using the first flow threshold of 80MB/s in the first performance threshold of 100MB/s, the first remaining flow is the difference of 20MB/s between the first performance threshold and the first flow threshold.
Then, other current-limiting storage resources in the current-limiting storage resource set are judged, if it is judged that the storage resource B belongs to the second service and the performance parameter corresponding to the storage resource B is smaller than the first traffic threshold value of 80MB/s, it can be determined that the storage resource B is the second current-limiting storage resource, and then a first allocation proportion corresponding to the storage resource B, the storage resource C, and the storage resource D can be obtained, where the first allocation proportion is a proportion of the performance parameters corresponding to the storage resource B, the storage resource C, and the storage resource D, that is, 60: 20: 20-3: 1: 1, according to the first distribution ratio being 3: 1: 1, it can be illustrated that the second traffic threshold corresponding to the obtained storage resource B is 12MB/s, and the traffic threshold corresponding to the second service is 30MB/s, that is, the third traffic threshold is 30MB/s, and the second traffic threshold 12MB/s is smaller than the third traffic threshold 30MB/s, so that the storage resource B does not need to be controlled, and the first performance threshold 100MB/s is that the storage resource a is already maintained by using the first traffic threshold 80MB/s, so that the available performance parameters of the storage resource B, the storage resource C, and the storage resource D are 20MB/s, and the traffic difference between the available second traffic threshold 12MB/s and the third traffic threshold 30MB/s is 18MB/s, and the traffic difference is 18MB/s is smaller than 20MB/s, therefore, the flow of the storage resource B can be controlled according to the flow difference value of 18 MB/s.
Secondly, another method for controlling flow is provided in this embodiment, after the first current-limiting storage resource is controlled according to the first flow threshold, a first remaining flow may be determined according to the first performance threshold and the first flow threshold, when a second current-limiting storage resource in the set of storage resources to be limited belongs to a second service, a first allocation proportion corresponding to the second current-limiting storage resource is obtained, a second flow threshold corresponding to the second current-limiting storage resource is determined according to the first remaining flow and the first allocation proportion, a flow difference value is calculated according to the second flow threshold and the flow threshold corresponding to the second service, and finally, the second current-limiting storage resource is controlled according to the flow difference value. Through the mode, after the first current-limiting storage resource is subjected to flow control, the first residual flow is redistributed, the flow demand of important services is preferentially met, the flow demand of common services is guaranteed, the problem that the common services cannot run due to the flow control is avoided, and the feasibility of the flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in the embodiment of the present application, the controlling flow of the second current-limiting storage resource according to the flow difference may include;
if the flow difference value is within a first flow range, controlling the flow of the second current-limiting storage resource according to a third flow threshold, wherein the first flow range is a range which is larger than or equal to the first flow value and smaller than or equal to the second flow value, and the first flow value is smaller than the second flow value;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, determining a second allocation proportion corresponding to the third current-limiting storage resource according to a first allocation proportion corresponding to the second current-limiting storage resource;
determining a flow threshold corresponding to the third current-limiting storage resource according to the first residual flow and the second distribution proportion;
and controlling the flow of the third current-limiting storage resource according to the flow threshold corresponding to the third current-limiting storage resource.
In this embodiment, after obtaining the flow difference, the flow control device may first determine a first flow range, where the first flow range is a range greater than or equal to the first flow value and less than or equal to the second flow value, where the first flow value is less than the second flow value, and when the obtained flow difference is within the first flow range, perform flow control on the second current-limiting storage resource according to a third flow threshold, and then, when a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, determine a second allocation proportion corresponding to the third current-limiting storage resource according to the first allocation proportion corresponding to the second current-limiting storage resource, then determine a flow threshold corresponding to the third current-limiting storage resource according to the first remaining flow and the second allocation proportion, and finally determine a flow threshold corresponding to the third current-limiting storage resource according to the flow threshold corresponding to the third current-limiting storage resource, and carrying out flow control on the third flow-limiting storage resource.
For convenience of understanding, it is described that the storage resource set to be limited includes a storage resource a, a storage resource B, and a storage resource C as an example, and a performance parameter corresponding to the storage resource a is 120MB/s, a performance parameter corresponding to the storage resource B is 100MB/s, a performance parameter corresponding to the storage resource C is 20MB/s, in this embodiment, the first performance threshold is 100MB/s, and the first traffic threshold is 40MB/s, the storage resource a is controlled by the first traffic threshold 40MB/s, the performance parameter of the storage resource a is maintained at 40MB/s, and the first remaining traffic is a difference between the first performance threshold and the first traffic threshold of 60 MB/s.
It can be understood that, since the performance parameter 100MB/s corresponding to the storage resource B is equal to the first performance threshold 100MB/s and belongs to the burst traffic, when the storage resource B belongs to the second service, the first allocation ratio 100MB/s corresponding to the storage resource B and the storage resource C is obtained: 20MB/s 5: 2, according to the first distribution ratio 5: 2 may obtain that the second traffic threshold corresponding to the storage resource B is 50MB/s, the performance parameter 100MB/s of the storage resource B may be maintained at the second traffic threshold of 50 MB/s.
Further, in this embodiment, a traffic threshold corresponding to the second service is taken as an example for explanation, a traffic difference between a second traffic threshold of 50MB/s and a third traffic threshold of 30MB/s obtained through calculation is-20 MB/s, and it is assumed that the first traffic value is-100 MB/s and the second traffic value is 0MB/s for further explanation, it should be understood that the first traffic value and the second traffic value may also be other values in practical application, and a specific value should be flexibly determined by combining with an actual situation. Since the obtained traffic difference is-20 MB/s, is greater than the first traffic value by-100 MB/s, and is less than the second traffic value by 0MB/s, and belongs to the first traffic range (i.e., is greater than or equal to-100 MB/s, and is less than or equal to 0MB/s), when the storage resource C belongs to the third service, the storage resource C is the third current-limited storage resource, then the first allocation ratio 5: 2 determine a second allocation fraction 2/7 corresponding to the third current limited storage resource. Based on the first remaining flow rate of 60MB/s and the second allocation ratio 2/7, it may be determined that the flow threshold corresponding to the third current-limited storage resource is about 17MB/s, and then the flow of the third current-limited storage resource may be controlled according to the flow threshold corresponding to the third current-limited storage resource of 17MB/s, that is, the performance parameter of 20MB/s of the storage resource C is maintained at the flow threshold of 17 MB/s.
The embodiment of the present application provides another flow control method, where when a flow difference is within a first flow range, the flow control is performed on a second current-limiting storage resource according to a third flow threshold, and then, when a third current-limiting storage resource in a to-be-limited storage resource set belongs to a third service, a second allocation proportion corresponding to the third current-limiting storage resource is determined according to a first allocation proportion corresponding to the second current-limiting storage resource, a flow threshold corresponding to the third current-limiting storage resource is determined according to the first remaining flow and the second allocation proportion, and finally, the flow control is performed on the third current-limiting storage resource according to a flow threshold corresponding to the third current-limiting storage resource. By the above mode, after the first residual flow is redistributed, the flow demand of the common service can be met, the problem that the common service cannot run due to flow control is avoided, and the feasibility of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in the embodiment of the present application, the controlling flow of the second current-limiting storage resource according to the flow difference may include;
if the flow difference value is within a second flow range, controlling the flow of the second current-limiting storage resource according to a third flow threshold, wherein the second flow range is a range smaller than or equal to the first flow value;
determining a second residual flow according to the first residual flow and a third flow threshold;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, acquiring a third allocation proportion corresponding to the third current-limiting storage resource;
determining a fourth flow threshold according to the second residual flow and the third distribution proportion, wherein the fourth flow threshold is a flow threshold corresponding to the third flow-limiting storage resource;
and controlling the flow of the third flow-limiting storage resource according to the fourth flow threshold.
In this embodiment, after obtaining the flow difference, the flow control device may first determine a second flow range, where the second flow range is a range smaller than or equal to the first flow value, and when the flow difference is within the second flow range, then the second flow limiting storage resource is controlled according to the third flow threshold value, and then the second residual flow is determined according to the first residual flow and the third flow threshold value, secondly, when a third current limiting storage resource in the set of storage resources to be current limited belongs to a third service, a third distribution proportion corresponding to the third current limiting storage resource is obtained, and determining a flow threshold corresponding to the third flow-limiting storage resource according to the second residual flow and the third distribution proportion, wherein the flow threshold corresponding to the third flow-limiting storage resource is a fourth flow threshold, and finally, controlling the flow of the third flow-limiting storage resource according to the fourth flow threshold.
For convenience of understanding, it is described that the storage resource set to be limited includes a storage resource a, a storage resource B, a storage resource C, and a storage resource D, and a performance parameter corresponding to the storage resource a is 120MB/s, a performance parameter corresponding to the storage resource B is 100MB/s, a performance parameter corresponding to the storage resource C is 10MB/s, a performance parameter corresponding to the storage resource D is 10MB/s, in this embodiment, the first performance threshold is 100MB/s, and the first traffic threshold is 40MB/s, the storage resource a is controlled by the first traffic threshold 40MB/s, the performance parameter of the storage resource a is maintained at 40MB/s, and the first remaining traffic is a difference between the first performance threshold and the first traffic threshold of 60 MB/s.
It can be understood that, since the performance parameter 100MB/s corresponding to the storage resource B is equal to the first performance threshold 100MB/s, the burst traffic belongs to, but when the storage resource B belongs to the second service, the first allocation ratio 100MB/s corresponding to the storage resource B and the storage resource C is obtained: 10 MB/s: 10 MB/s-10: 1: 1, according to the first dispensing ratio 10: 1: 1 may acquire that the second traffic threshold corresponding to the storage resource B is 50MB/s, and may maintain the performance parameter 100MB/s of the storage resource B at the second traffic threshold of 50 MB/s.
Further, in this embodiment, a traffic threshold corresponding to the second service is taken as an example for explanation, a traffic difference between a second traffic threshold of 50MB/s and a third traffic threshold of 150MB/s obtained through calculation is-100 MB/s, and it should be understood that the first traffic value and the second traffic value may also be other values in practical application, and a specific value should be flexibly determined by combining with an actual situation, assuming that the first traffic value is-100 MB/s and the second traffic value is 0MB/s for further explanation. Since the aforementioned resulting flow differential is-100 MB/s, is equal to the first flow value-100 MB/s, falls within the second flow range (i.e., is less than or equal to-100 MB/s),
since the first performance threshold is 100MB/s, the storage resource a is already controlled by using the first traffic threshold of 40MB/s, and the storage resource B is also controlled by using the second traffic threshold of 50MB/s, the second remaining traffic is 10MB/s, when the storage resource C and the storage resource D both belong to the third service, the storage resource C and the storage resource D are the third current-limited storage resources, according to the first allocation ratio of 10: 1: 1, it can be known that the third allocation ratio corresponding to the storage resource C and the storage resource D is 1: 1, so that the flow rate can be adjusted according to a second residual flow of 10MB/s and a third distribution ratio of 1: the method comprises the steps of 1, determining a fourth flow threshold, namely the fourth flow threshold corresponding to a storage resource C is 5MB/s, the fourth flow threshold corresponding to a storage resource D is 5MB/s, and then carrying out flow control on the storage resource C and the storage resource D according to the fourth flow threshold, specifically, maintaining the performance parameter of the storage resource C to be 5MB/s, and maintaining the performance parameter of the storage resource D to be 5 MB/s.
The embodiment of the present application provides another flow control method, where if the flow difference is within the second flow range, the second flow-limiting storage resource is controlled according to a third flow threshold, the second remaining flow is determined according to the first remaining flow and the third flow threshold, when a third flow-limiting storage resource in the to-be-limited storage resource set belongs to a third service, a third allocation proportion corresponding to the third flow-limiting storage resource is obtained, a flow threshold corresponding to the third flow-limiting storage resource is determined according to the second remaining flow and the third allocation proportion, the flow threshold corresponding to the third flow-limiting storage resource is a fourth flow threshold, and finally, the third flow-limiting storage resource is controlled according to the fourth flow threshold. By the above mode, after the first residual flow is redistributed, the flow demand of the common service can be met, the problem that the common service cannot run due to flow control is avoided, and the feasibility of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in the embodiment of the present application, the controlling flow of the second current-limiting storage resource according to the flow difference may include;
if the flow difference value is within a third flow range, determining a third residual flow according to the first residual flow and a second flow threshold, wherein the third flow range is a range which is larger than or equal to the second flow value;
determining an allocable flow threshold according to the third residual flow and a fourth allocation proportion, wherein the allocable flow threshold is larger than the second flow threshold and smaller than or equal to the third flow threshold, and the fourth allocation proportion is smaller than or equal to the allocation proportion threshold;
and controlling the flow of the third current-limiting storage resource according to the allocable flow threshold.
In this embodiment, after obtaining the flow difference, the flow control device may first determine a third flow range, where the third flow range is a range greater than the second flow value, and when the flow difference is within the third flow range, determine a third remaining flow according to the first remaining flow and the second flow threshold, then determine a distributable flow threshold according to the third remaining flow and a fourth distribution proportion, where the distributable flow threshold is greater than the second flow threshold and less than or equal to the third flow threshold, and the fourth distribution proportion is less than or equal to the distribution proportion threshold, and finally perform flow control on the third current-limiting storage resource according to the distributable flow threshold.
For convenience of understanding, it is described that the storage resource set to be limited includes a storage resource a, a storage resource B, a storage resource C, and a storage resource D as an example, and a performance parameter corresponding to the storage resource a is 120MB/s, a performance parameter corresponding to the storage resource B is 100MB/s, a performance parameter corresponding to the storage resource C is 10MB/s, a performance parameter corresponding to the storage resource D is 10MB/s, in this embodiment, the first performance threshold is 100MB/s, and the first traffic threshold is 40MB/s, the storage resource a is controlled by the first traffic threshold 40MB/s, the performance parameter of the storage resource a is maintained at 40MB/s, and the first remaining traffic is a difference between the first performance threshold and the first traffic threshold of 60 MB/s.
It can be understood that, since the performance parameter 100MB/s corresponding to the storage resource B is equal to the first performance threshold 100MB/s, the burst traffic belongs to, but when the storage resource B belongs to the second service, the first allocation ratio 100MB/s corresponding to the storage resource B and the storage resource C is obtained: 10 MB/s: 10 MB/s-10: 1: 1, according to the first dispensing ratio 10: 1: 1 may acquire that the second traffic threshold corresponding to the storage resource B is 50MB/s, and may maintain the performance parameter 100MB/s of the storage resource B at the second traffic threshold of 50 MB/s.
Further, in this embodiment, a traffic threshold corresponding to the second service is taken as an example for explanation, a traffic difference between the second traffic threshold 50MB/s and the third traffic threshold 50MB/s obtained through calculation is 0MB/s, and then, the first traffic value is taken as-100 MB/s, and the second traffic value is taken as an example for further explanation, it should be understood that the first traffic value and the second traffic value may also be other values in practical application, and a specific value should be flexibly determined by combining with an actual situation. Since the aforementioned resulting flow difference is 0MB/s, equal to the second flow value 0MB/s, falls within the third flow range (i.e., greater than or equal to 0MB/s),
since the first performance threshold is 100MB/s, the storage resource a is already controlled by using the first traffic threshold of 40MB/s, and the storage resource B is also controlled by using the second traffic threshold of 50MB/s, the third remaining traffic is 10MB/s, when the performance parameter required by the storage resource B is 52MB/s, taking the fourth allocation proportion of 20% as an example, the storage resource B may be subdivided by 2MB/s, where the third remaining traffic is 20% of 10MB/s, and it should be understood that, in practical application, the fourth allocation proportion is a value greater than or equal to 20%, and is not limited herein. Further, the flow rate of the storage resource C and the storage resource D can be further divided into 8MB/s, and according to the first allocation ratio 10: 1: 1, it can be known that the third allocation ratio corresponding to the storage resource C and the storage resource D is 1: 1, the performance parameter of storage resource C can therefore be maintained to 4MB/s, and the performance parameter of storage resource D can be maintained to 4 MB/s.
And thirdly, if the flow difference value is within a third flow range, determining a third residual flow according to the first residual flow and a second flow threshold, determining an allocable flow threshold according to the third residual flow and a fourth allocation proportion, and finally performing flow control on a third flow-limiting storage resource according to the allocable flow threshold. By the above mode, after the first residual flow is redistributed, the flow demand of the common service can be met, the problem that the common service cannot run due to flow control is avoided, and the feasibility of flow control is improved.
Optionally, on the basis of each embodiment corresponding to fig. 4, in an optional embodiment of the method for controlling flow provided in this embodiment of the present application, after performing flow control on the first current-limiting storage resource according to the first flow threshold, the method for controlling flow further includes:
acquiring performance parameters of a target storage resource set in a target time period;
and if the performance parameter in the target time period is smaller than the first performance parameter, stopping flow control of the storage resources in the target storage resource set.
In this embodiment, after the flow control device performs flow control on the first current-limiting storage resource according to the first flow threshold, the performance parameter of the target storage resource set in the target time period may also be obtained, and when the performance parameter in the target time period is smaller than the first performance parameter, the flow control device stops performing flow control on the storage resource in the target storage resource set.
For convenience of understanding, it is described by taking an example that the target storage resource set includes a storage resource a, a storage resource B and a storage resource C, and the traffic threshold corresponding to the storage resource a is 60MB/s, the traffic threshold corresponding to the storage resource B is 30MB/s, and the traffic threshold corresponding to the storage resource C is 10MB/s, assuming that the target time period is 1 minute, in the target time period, the sum of the performance parameters corresponding to the storage resource a, the storage resource B and the storage resource C is 80MB/s, and the first performance parameter corresponding to the target storage resource set is 100MB/s, and the performance parameter 80MB/s in the target time period is smaller than the first performance parameter 100MB/s, the flow control of storage resource a, storage resource B, and storage resource C may then be stopped. It should be understood that the target time period is taken as one minute in the present embodiment for understanding the present solution, and the specific target time period should be determined flexibly according to the actual situation.
The embodiment of the application provides a method for stopping flow control, which stops flow control of storage resources in a target storage resource set when a performance parameter of the target storage resource set in a target time period is smaller than a first performance parameter. Through the above manner, after the flow control is performed, the flow of the storage resource is maintained, and the situation that the flow exceeds the threshold does not occur, which indicates that the accurate flow control is performed, so that after the performance parameter of the target storage resource set is smaller than the first performance threshold in the target time period, the flow control can be stopped, the normal flow supply can be replied, and the accuracy of the flow control is improved.
Referring now to fig. 5, the flow control device 200 of the present application will be described in detail, wherein fig. 5 is a schematic view of an embodiment of the flow control device of the present application, and includes:
an obtaining module 201, configured to obtain a first performance parameter corresponding to a target storage resource set, where the target storage resource set includes M storage resources, and M is an integer greater than or equal to 1;
the obtaining module 201 is further configured to obtain M second performance parameters corresponding to the target storage resource set if the first performance parameter obtained by the obtaining module is greater than or equal to the first performance threshold, where the second performance parameters and the storage resources have a one-to-one correspondence relationship;
a determining module 202, configured to determine a storage resource set to be current-limited from a target storage resource set according to the M second performance parameters acquired by the acquiring module, where the storage resource set to be current-limited includes P storage resources to be current-limited, and P is an integer greater than or equal to 1 and smaller than M;
the control module 203 is configured to, if a first current-limiting storage resource in the to-be-current-limiting storage resource set determined by the determining module belongs to a first service, perform flow control on the first current-limiting storage resource according to a first flow threshold, where the first flow threshold is a flow threshold corresponding to the first service.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the obtaining module 201 is further configured to obtain a second performance parameter corresponding to a target server, where the target server includes at least one storage resource set, and the at least one storage resource set includes a target storage resource set;
the obtaining module 201 is further configured to, if the second performance parameter is greater than or equal to the second performance threshold, perform a step of obtaining the first performance parameter corresponding to the target storage resource set.
Optionally, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application, the flow control device 200 further includes a calculating module 204;
the obtaining module 201 is further configured to obtain performance parameters corresponding to the target storage resource set at X times in a first period, where X is an integer greater than or equal to 1;
the calculating module 204 is configured to calculate to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X times;
the calculating module 204 is further configured to calculate a first performance threshold according to the first average value and the first standard deviation.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the obtaining module 201 is further configured to obtain performance parameters corresponding to the target storage resource set at X times in a first period, where X is an integer greater than or equal to 1;
the calculating module 204 is further configured to calculate a first average value and a first standard deviation according to the performance parameters corresponding to the X times;
the calculating module 204 is further configured to calculate a first to-be-determined performance threshold according to the first average value and the first standard deviation.
The obtaining module 201 is further configured to obtain performance parameters corresponding to Y times of the target storage resource set in a second period, where Y is an integer greater than or equal to 1, and the second period is smaller than the first period;
the calculating module 204 is further configured to calculate a second average value and a second standard deviation according to the performance parameters corresponding to the Y moments;
the calculating module 204 is further configured to calculate a second performance threshold to be determined according to the second average value and the second standard deviation;
the determining module 202 is further configured to determine the second performance threshold to be determined as the first performance threshold if the variation amplitude between the first performance threshold to be determined and the second performance threshold to be determined is greater than or equal to the amplitude threshold.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
a determining module 202, configured to determine N second performance parameters from M second performance parameters according to a target performance threshold, where the target performance parameter is determined according to the first performance parameter, and N is an integer greater than or equal to 1 and less than or equal to M;
acquiring a resource set to be selected from the target storage resource set according to the N second performance parameters, wherein the resource set to be selected comprises the N resources to be selected, and the resources to be selected and the second performance parameters have one-to-one correspondence;
and determining a storage resource set to be limited from the resource set to be selected according to a third performance threshold corresponding to each second performance parameter in the N second performance parameters.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
a determining module 202, configured to determine P second performance parameters from M second performance parameters according to a target performance threshold, where the target performance parameter is determined according to the first performance parameter, and P is an integer greater than or equal to 1 and less than or equal to M;
and acquiring a storage resource set to be limited from the target storage resource set according to the P second performance parameters, wherein the storage resource to be limited and the second performance parameters have a one-to-one correspondence relationship.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the determining module 202 is further configured to determine a first remaining flow according to the first performance threshold and the first flow threshold;
the obtaining module 201 is further configured to obtain a first allocation ratio corresponding to a second current-limiting storage resource if the second current-limiting storage resource in the set of to-be-current-limiting storage resources belongs to a second service;
the determining module 202 is further configured to determine a second flow threshold corresponding to the second current-limiting storage resource according to the first remaining flow and the first allocation ratio;
the control module 203 is further configured to perform flow control on the second current-limiting storage resource according to the second flow threshold.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the determining module 202 is further configured to determine a first remaining flow according to the first performance threshold and the first flow threshold;
the obtaining module 201 is further configured to obtain a first allocation ratio corresponding to a second current-limiting storage resource if the second current-limiting storage resource in the set of to-be-current-limiting storage resources belongs to a second service;
the determining module 202 is further configured to determine a second flow threshold corresponding to the second current-limiting storage resource according to the first remaining flow and the first allocation ratio;
the calculating module 204 is further configured to calculate a traffic difference according to a second traffic threshold and a third traffic threshold, where the third traffic threshold is a traffic threshold corresponding to the second service;
the control module 203 is further configured to perform flow control on the second current-limiting storage resource according to the flow difference.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the control module 203 is specifically configured to perform flow control on the second current-limiting storage resource according to a third flow threshold if the flow difference is within a first flow range, where the first flow range is greater than or equal to the first flow value and less than or equal to the second flow value, and the first flow value is less than the second flow value;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, determining a second allocation proportion corresponding to the third current-limiting storage resource according to a first allocation proportion corresponding to the second current-limiting storage resource;
determining a flow threshold corresponding to the third current-limiting storage resource according to the first residual flow and the second distribution proportion;
and controlling the flow of the third current-limiting storage resource according to the flow threshold corresponding to the third current-limiting storage resource.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the control module 203 is specifically configured to perform flow control on the second current-limiting storage resource according to a third flow threshold if the flow difference is within a second flow range, where the second flow range is a range smaller than or equal to the first flow value;
determining a second residual flow according to the first residual flow and a third flow threshold;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, acquiring a third allocation proportion corresponding to the third current-limiting storage resource;
determining a fourth flow threshold according to the second residual flow and the third distribution proportion, wherein the fourth flow threshold is a flow threshold corresponding to the third flow-limiting storage resource;
and controlling the flow of the third flow-limiting storage resource according to the fourth flow threshold.
Alternatively, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application,
the control module 203 is specifically configured to determine a third remaining flow according to the first remaining flow and the second flow threshold if the flow difference is within a third flow range, where the third flow range is a range greater than or equal to the second flow value;
determining an allocable flow threshold according to the third residual flow and a fourth allocation proportion, wherein the allocable flow threshold is larger than the second flow threshold and smaller than or equal to the third flow threshold, and the fourth allocation proportion is smaller than or equal to the allocation proportion threshold;
and controlling the flow of the third current-limiting storage resource according to the allocable flow threshold.
Optionally, on the basis of the embodiment corresponding to fig. 5, in another embodiment of the flow control device 200 provided in the embodiment of the present application, the flow control device 200 further includes a stopping module 205;
the obtaining module 201 is further configured to obtain a performance parameter of the target storage resource set in the target time period;
a stopping module 205, configured to stop performing flow control on the storage resources in the target storage resource set if the performance parameter in the target time period is smaller than the first performance parameter.
It should be understood that, taking the example that the annotation information verification apparatus and the category determination apparatus are deployed in a server as an example, please refer to fig. 6, where fig. 6 is a schematic diagram of an embodiment of a server in the present application, and as shown in the figure, the server 300 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 322 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the server 300.
The server 300 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341, such as a Windows ServerTM,MacOSXTM,UnixTM,LinuxTM,FreeBSDTMAnd so on.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 6.
In the embodiment of the present application, the CPU322 included in the server is configured to execute the embodiments corresponding to fig. 4.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (13)

1. A method of flow control, comprising:
acquiring a first performance parameter corresponding to a target storage resource set, wherein the target storage resource set comprises M storage resources, and M is an integer greater than or equal to 1;
if the first performance parameter is greater than or equal to a first performance threshold, acquiring M second performance parameters corresponding to the target storage resource set, wherein the second performance parameters and the storage resources have a one-to-one correspondence relationship;
determining a storage resource set to be limited in current from the target storage resource set according to the M second performance parameters, wherein the storage resource set to be limited in current comprises P storage resources to be limited in current, and P is an integer which is greater than or equal to 1 and smaller than M;
if a first current-limiting storage resource in the set of storage resources to be current-limited belongs to a first service, performing flow control on the first current-limiting storage resource according to a first flow threshold, wherein the first flow threshold is a flow threshold corresponding to the first service, and the first service is an important service;
determining a first remaining flow rate according to the first performance threshold and the first flow rate threshold;
if a second current limiting storage resource in the set of storage resources to be current limited belongs to a second service, acquiring a first allocation proportion corresponding to the second current limiting storage resource, wherein the second service is a second important service;
determining a second flow threshold corresponding to the second current limiting storage resource according to the first residual flow and the first distribution proportion;
calculating to obtain a flow difference value according to the second flow threshold and a third flow threshold, wherein the third flow threshold is a flow threshold corresponding to the second service;
and controlling the flow of the second current-limiting storage resource according to the flow difference.
2. The method according to claim 1, wherein before the obtaining the first performance parameter corresponding to the target storage resource set, the method further comprises:
acquiring a second performance parameter corresponding to a target server, wherein the target server comprises at least one storage resource set, and the at least one storage resource set comprises the target storage resource set;
and if the second performance parameter is greater than or equal to a second performance threshold, executing the step of obtaining the first performance parameter corresponding to the target storage resource set.
3. The method of claim 1, further comprising:
acquiring performance parameters corresponding to the target storage resource set at X moments in a first period, wherein X is an integer greater than or equal to 1;
calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
and calculating to obtain the first performance threshold according to the first average value and the first standard deviation.
4. The method of claim 1, further comprising:
acquiring performance parameters corresponding to the target storage resource set at X moments in a first period, wherein X is an integer greater than or equal to 1;
calculating to obtain a first average value and a first standard deviation according to the performance parameters corresponding to the X moments;
calculating to obtain a first performance threshold to be judged according to the first average value and the first standard deviation;
acquiring performance parameters corresponding to Y moments of the target storage resource set in a second period, wherein Y is an integer greater than or equal to 1, and the second period is smaller than the first period;
calculating to obtain a second average value and a second standard deviation according to the performance parameters corresponding to the Y moments;
calculating to obtain a second performance threshold to be judged according to the second average value and the second standard deviation;
and if the variation amplitude between the first performance threshold to be determined and the second performance threshold to be determined is larger than or equal to an amplitude threshold, determining the second performance threshold to be determined as the first performance threshold.
5. The method according to any one of claims 1 to 4, wherein the determining, from the target set of storage resources, a set of storage resources to be throttled according to the M second performance parameters comprises:
determining N second performance parameters from the M second performance parameters according to a target performance threshold, wherein the target performance threshold is determined according to the first performance parameter, and N is an integer which is greater than or equal to 1 and less than or equal to M;
acquiring a resource set to be selected from the target storage resource set according to the N second performance parameters, wherein the resource set to be selected comprises N resources to be selected, and the resources to be selected and the second performance parameters have a one-to-one correspondence relationship;
and determining the storage resource set to be limited from the resource set to be selected according to a third performance threshold corresponding to each second performance parameter in the N second performance parameters.
6. The method according to any one of claims 1 to 4, wherein the determining, from the target set of storage resources, a set of storage resources to be throttled according to the M second performance parameters comprises:
determining P second performance parameters from the M second performance parameters according to a target performance threshold, wherein the target performance threshold is determined according to the first performance parameter, and P is an integer which is greater than or equal to 1 and less than or equal to M;
and acquiring the storage resource set to be limited from the target storage resource set according to the P second performance parameters, wherein the storage resources to be limited and the second performance parameters have a one-to-one correspondence relationship.
7. The method of claim 1, wherein said controlling the flow of the second current limited storage resource based on the flow differential comprises;
if the flow difference value is within a first flow range, performing flow control on the second current-limiting storage resource according to the third flow threshold, wherein the first flow range is a range which is greater than or equal to a first flow value and less than or equal to a second flow value, and the first flow value is less than the second flow value;
if a third current-limiting storage resource in the set of storage resources to be current-limited belongs to a third service, determining a second allocation proportion corresponding to the third current-limiting storage resource according to a first allocation proportion corresponding to the second current-limiting storage resource;
determining a flow threshold corresponding to the third current limiting storage resource according to the first remaining flow and the second allocation proportion;
and controlling the flow of the third current-limiting storage resource according to the flow threshold corresponding to the third current-limiting storage resource.
8. The method of claim 1, wherein said controlling the flow of the second current limited storage resource based on the flow differential comprises;
if the flow difference value is within a second flow range, performing flow control on the second current-limiting storage resource according to the third flow threshold, wherein the second flow range is a range smaller than or equal to the first flow value;
determining a second residual flow according to the first residual flow and the third flow threshold;
if a third current limiting storage resource in the set of storage resources to be current limited belongs to a third service, acquiring a third distribution proportion corresponding to the third current limiting storage resource;
determining a fourth flow threshold according to the second remaining flow and the third distribution proportion, wherein the fourth flow threshold is a flow threshold corresponding to the third flow-limiting storage resource;
and controlling the flow of the third current-limiting storage resource according to the fourth flow threshold.
9. The method of claim 1, wherein said controlling the flow of the second current limited storage resource based on the flow differential comprises;
if the flow difference value is within a third flow range, determining a third residual flow according to the first residual flow and the second flow threshold, wherein the third flow range is a range which is larger than or equal to a second flow value;
determining an allocable flow threshold according to the third residual flow and a fourth allocation proportion, wherein the allocable flow threshold is larger than the second flow threshold and smaller than or equal to the third flow threshold, and the fourth allocation proportion is smaller than or equal to an allocation proportion threshold;
and carrying out flow control on the third flow limiting storage resource according to the distributable flow threshold.
10. The method of claim 1, wherein after said controlling the first throttled storage resource to a first traffic threshold, the method further comprises:
acquiring performance parameters of the target storage resource set in a target time period;
and if the performance parameter in the target time period is smaller than the first performance parameter, stopping flow control of the storage resources in the target storage resource set.
11. A flow control device, comprising:
an obtaining module, configured to obtain a first performance parameter corresponding to a target storage resource set, where the target storage resource set includes M storage resources, and M is an integer greater than or equal to 1;
the obtaining module is further configured to obtain M second performance parameters corresponding to the target storage resource set if the first performance parameter obtained by the obtaining module is greater than or equal to a first performance threshold, where the second performance parameters and the storage resources have a one-to-one correspondence relationship;
a determining module, configured to determine a storage resource set to be limited in current from the target storage resource set according to the M second performance parameters acquired by the acquiring module, where the storage resource set to be limited includes P storage resources to be limited in current, and P is an integer greater than or equal to 1 and smaller than M;
a control module, configured to, if a first current-limiting storage resource in the set of storage resources to be current-limited determined by the determining module belongs to a first service, perform flow control on the first current-limiting storage resource according to a first flow threshold, where the first flow threshold is a flow threshold corresponding to the first service, and the first service is an important service;
the determining module is further used for determining a first residual flow according to the first performance threshold and the first flow threshold;
the acquisition module is further configured to acquire a first allocation proportion corresponding to a second current-limiting storage resource if the second current-limiting storage resource in the set of to-be-current-limiting storage resources belongs to a second service, where the second service is a next-important service;
the determining module is further configured to determine a second flow threshold corresponding to the second current-limiting storage resource according to the first remaining flow and the first allocation ratio;
the calculating module is further configured to calculate a traffic difference according to a second traffic threshold and a third traffic threshold, where the third traffic threshold is a traffic threshold corresponding to the second service;
and the control module is also used for controlling the flow of the second current-limiting storage resource according to the flow difference value.
12. A server, comprising: a memory, a transceiver, a processor, and a bus system;
wherein the memory is used for storing programs;
the processor is configured to execute a program in the memory, including performing the method of any of claims 1 to 10;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
13. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 10.
CN201911415718.6A 2019-12-31 2019-12-31 Flow control method, related device, equipment and storage medium Active CN111131063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415718.6A CN111131063B (en) 2019-12-31 2019-12-31 Flow control method, related device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415718.6A CN111131063B (en) 2019-12-31 2019-12-31 Flow control method, related device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111131063A CN111131063A (en) 2020-05-08
CN111131063B true CN111131063B (en) 2022-03-25

Family

ID=70506736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415718.6A Active CN111131063B (en) 2019-12-31 2019-12-31 Flow control method, related device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111131063B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765811B (en) * 2020-06-05 2024-04-16 腾讯科技(深圳)有限公司 Flow control method, device, equipment and storage medium
CN112165436B (en) * 2020-10-15 2024-02-20 腾讯科技(深圳)有限公司 Flow control method, device and system
CN112398747A (en) * 2020-11-03 2021-02-23 深圳壹账通智能科技有限公司 Current limiting method and device, computer equipment and storage medium
CN113014671B (en) * 2021-04-01 2021-11-23 湖南机械之家信息科技有限公司 Cloud service resource sharing method and resource sharing platform applied to big data analysis
CN113822492A (en) * 2021-10-11 2021-12-21 国网山东省电力公司滨州市滨城区供电公司 Short-term power load prediction method and device and readable storage medium
CN115951725B (en) * 2023-02-03 2023-11-21 广州港股份有限公司 Method and system for controlling discharging flow of mechanized horizontal warehouse

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162716A (en) * 2015-07-28 2015-12-16 上海华为技术有限公司 Flow control method and apparatus under NFV configuration
CN109474542B (en) * 2018-10-24 2022-05-13 平安科技(深圳)有限公司 Message push request flow control method, device and medium based on business rules
CN109558295B (en) * 2018-11-15 2022-05-24 新华三信息安全技术有限公司 Performance index abnormality detection method and device
CN110113269B (en) * 2019-04-28 2022-10-04 平安科技(深圳)有限公司 Flow control method based on middleware and related device

Also Published As

Publication number Publication date
CN111131063A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111131063B (en) Flow control method, related device, equipment and storage medium
US20170336998A1 (en) Method and system for sharing storage resource
US10949103B2 (en) Native storage quality of service for virtual machines
US9037505B2 (en) Mechanisms for executing a process in a cloud computing environment
US8943270B2 (en) Storage system, storage control method and storage control program
US20160092108A1 (en) Quality of Service Implementation in a Networked Storage System with Hierarchical Schedulers
US20110196968A1 (en) Computer system, resource management server for computer system, and resource management method for computer system
US20110307901A1 (en) System and method for integrating capacity planning and workload management
US20140040895A1 (en) Electronic device and method for allocating resources for virtual machines
US20120203999A1 (en) Implementing optimal storage tier configurations for a workload in a dynamic storage tiering system
AU2010319840A1 (en) Allocating storage memory based on future use estimates
CN104011683A (en) Virtual machine management program, method and device
US20120166825A1 (en) Controlling the Power Consumption of Computers
JP6730522B2 (en) System and method for allocating input/output bandwidth in storage system
CN112311590B (en) Cloud service lease optimization method, device, equipment and medium
US9037758B1 (en) Dynamic virtual machine (VM) input-output per second (IOPS) control based on application IO profiling and VM IO usage trend analysis
CN104424118A (en) Hotspot file self-adaption copy method and system
JP6394313B2 (en) Storage management device, storage management method, and storage management program
US20170222886A1 (en) Metering storage usage
IL301738A (en) Predictive block storage size provisioning for cloud storage volumes
CN109144689B (en) Task scheduling method, device and computer program product
US8909877B2 (en) Dynamic real storage usage control
EP3761175B1 (en) Method and apparatus for managing application program
CN110865768B (en) Write cache resource allocation method, device, equipment and storage medium
CN113438232A (en) Method and device for determining data authorization form, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant