Flow control method, device, electronic device and storage medium

By determining the scheduling target and the number of allocation requests based on the historical scheduling and current status information of CDN nodes, the problem of uneven traffic in CDN node scheduling is solved, and service performance and resource utilization efficiency are improved.

CN115515188BActive Publication Date: 2024-10-25BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211060811.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2024-10-25
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

Existing CDN node scheduling methods may lead to uneven traffic distribution, resulting in nodes being overwhelmed or idle, and resulting in poor service performance.

Method used

Based on the scheduling policy execution results and current status information of each node in the network in the historical scheduling cycle, the control objectives of the node in the current scheduling cycle are determined, including the total number of requests allowed and the source filtering probability, and the allowed requests are allocated within the current scheduling cycle. Number of requests and control access requests to avoid the problem of too large or too small traffic in a short period of time.

Benefits of technology

It effectively avoids the problem of excessive node traffic in a short period of time and waste of resources at other times, improves service performance, and ensures node stability and full utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115515188B_ABST
    Figure CN115515188B_ABST
Patent Text Reader

Abstract

The present disclosure is about a flow control method, device, electronic device and storage medium, the method comprising: determining the control target of each node in the current scheduling cycle according to the execution result of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, the control target including the total number of requests allowed and the source filtering probability; determining the number of requests allowed for each node in each sub-cycle of the current scheduling cycle according to the total number of requests allowed for each node, the current scheduling cycle including multiple sub-cycles; when receiving an access request in the current scheduling cycle, determining the target source of the access request, and controlling the access request according to the number of requests allowed for each node in the current sub-cycle and the source filtering probability corresponding to each node and the target source. The present disclosure can avoid the problem of excessive traffic of accessing nodes in a short period of time and improve service performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a flow control method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of 5G (5th Generation Mobile Communication Technology) and edge computing, more and more devices with storage and computing capabilities are connected to the network. The storage, computing and bandwidth capabilities of these devices are often idle for a long time. In order to make full use of these resources and reduce resource waste, and to reduce storage computing and bandwidth costs, a large number (millions) of nodes have been added to CDN (Content Delivery Network). However, the stability and service capabilities of these nodes are far behind those of the IDC (Internet Data Center) devices used by traditional CDNs. How to schedule these nodes to provide CDN services that are no weaker than traditional IDC nodes is a problem that needs to be solved.

[0003] In the related art, one way to schedule these nodes is to find all cache hit nodes each time a visit is made, exclude nodes that are already highly loaded, sort the remaining nodes according to the quality of the resources, take the top 20 and return them to the access end, so that the access end can freely choose any node for actual downloading. Another way is to provide a capacity score for each node based on its bandwidth throughput and load capacity, and normalize the score as a scheduling probability. After any request is stored in the node, it is decided whether to schedule it to this node based on the scheduling probability. However, both methods may result in uneven traffic distribution, resulting in nodes being overwhelmed (i.e., traffic exceeds the maximum traffic) or idle, and poor service performance. Summary of the invention

[0004] The present disclosure provides a flow control method, device, electronic device and storage medium to at least solve the problem of poor service performance in related technologies. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a flow control method, including:

[0006] Determine the control target of each node in the current scheduling cycle according to the execution result of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, wherein the control target includes the total number of requests allowed and the source filtering probability;

[0007] Determine, according to the total allowed request times of each node, the allowed request times of each node in each sub-period in the current scheduling period, wherein the current scheduling period includes a plurality of the sub-periods;

[0008] When an access request is received within the current scheduling period, the target source of the access request is determined, and the access request is controlled based on the number of allowed requests for each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

[0009] Optionally, determining the control target of each node in the current scheduling period according to the execution result of the scheduling strategy of each node in the network in the historical scheduling period and the current state information of each node includes:

[0010] Determine the abnormality index of each node according to the execution result of the scheduling strategy of each node in the historical scheduling period and the current state information of each node;

[0011] Determine the total number of requests allowed for each node in the current scheduling period according to the abnormality index of each node and the control target of each node in the historical scheduling period;

[0012] The source filtering probability of each node in the current scheduling period is determined according to the historical bandwidth utilization rate and the historical source filtering probability of each node for each source in the historical scheduling period.

[0013] Optionally, determining the source filtering probability of each node in the current scheduling period according to the historical bandwidth utilization rate and historical source filtering probability of each node for each source in the historical scheduling period includes:

[0014] According to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period, a change law curve of the source filtering probability of each node relative to the bandwidth utilization is determined, wherein in the change law curve, the source filtering probability gradually converges with the increase of the bandwidth utilization;

[0015] According to the transformation law curve of each of the nodes and the current bandwidth utilization rate of each of the nodes, the source filtering probability of each of the nodes in the current scheduling period is determined.

[0016] Optionally, determining the allowed number of requests of each node in each sub-period in the current scheduling period according to the allowed total number of requests of each node includes:

[0017] Determining the expected number of requests of each node in each sub-period in the current scheduling period according to the total number of requests allowed for each node;

[0018] According to the expected number of requests of each node in each sub-period in the current scheduling period, the allowed number of requests of each node in each sub-period in the current scheduling period is determined.

[0019] Optionally, determining the allowed number of requests of each node in each sub-period in the current scheduling period according to the expected number of requests of each node in each sub-period in the current scheduling period includes:

[0020] For each node, the expected number of requests of the node in each sub-period in the current scheduling period is determined as the allowed number of requests of the node in each sub-period in the current scheduling period.

[0021] Optionally, determining the allowed number of requests of each node in each sub-period in the current scheduling period according to the expected number of requests of each node in each sub-period in the current scheduling period includes:

[0022] For each node, obtain the number of scheduled requests of the node in the historical sub-period within the current scheduling period;

[0023] The product of the expected number of requests of the node in each sub-period in the current scheduling period and the number of the historical sub-periods is determined as the total expected number of requests of all the historical sub-periods, and the difference between the total expected number of requests and the scheduled number of requests is determined as the request number compensation value of the node in the current sub-period;

[0024] The sum of the expected request number and the request number compensation value is determined as the allowed request number of the node in the current sub-period.

[0025] Optionally, the access request is controlled according to the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source, including:

[0026] Determine at least one of the nodes storing the file requested by the access request as a node to be scheduled;

[0027] For each of the nodes to be scheduled, obtaining the number of scheduling requests of the node to be scheduled in the current sub-period;

[0028] If the number of scheduling requests is less than the number of allowed requests, controlling the access request according to the source filtering probability corresponding to the target source in the node to be scheduled;

[0029] If the number of scheduling requests is equal to the number of allowed requests, the node to be scheduled is rejected as the target node of the access request.

[0030] Optionally, controlling the access request according to a source filtering probability corresponding to the target source in the node to be scheduled includes:

[0031] Generate random numbers within a preset range;

[0032] If the random number is less than or equal to the random number threshold, the node to be scheduled is used as the target node of the access request; if the random number is greater than the random number threshold, the node to be scheduled is rejected as the target node of the access request; wherein the random number threshold is determined based on the preset range and the source filtering probability corresponding to the target source.

[0033] According to a second aspect of an embodiment of the present disclosure, there is provided a flow control device, comprising:

[0034] A control target determination module is configured to determine the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, wherein the control target includes the total number of requests allowed and the source filtering probability;

[0035] A request number determination module is configured to determine the allowed request number of each node in each sub-period in the current scheduling period according to the allowed total request number of each node, wherein the current scheduling period includes a plurality of sub-periods;

[0036] The access control module is configured to determine the target source of the access request when it is received within the current scheduling period, and control the access request based on the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

[0037] Optionally, the control target determination module includes:

[0038] An abnormality indicator determination unit is configured to determine an abnormality indicator of each of the nodes according to an execution result of a scheduling strategy of each of the nodes in the historical scheduling period and current state information of each of the nodes;

[0039] A total request number determination unit is configured to determine the total number of requests allowed for each node in the current scheduling period according to the abnormality index of each node and the control target of each node in the historical scheduling period;

[0040] The filtering probability determination unit is configured to determine the source filtering probability of each node in the current scheduling period according to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period.

[0041] Optionally, the filtering probability determination unit is configured to execute:

[0042] According to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period, a change law curve of the source filtering probability of each node relative to the bandwidth utilization is determined, wherein in the change law curve, the source filtering probability gradually converges with the increase of the bandwidth utilization;

[0043] According to the transformation law curve of each of the nodes and the current bandwidth utilization rate of each of the nodes, the source filtering probability of each of the nodes in the current scheduling period is determined.

[0044] Optionally, the request number determination module includes:

[0045] An expected request number determination unit is configured to determine the expected request number of each node in each sub-period in the current scheduling period according to the total allowed request number of each node;

[0046] The allowed request number determination unit is configured to determine the allowed request number of each node in each sub-period of the current scheduling period according to the expected request number of each node in each sub-period of the current scheduling period.

[0047] Optionally, the allowed request number determining unit is configured to execute:

[0048] For each node, the expected number of requests of the node in each sub-period in the current scheduling period is determined as the allowed number of requests of the node in each sub-period in the current scheduling period.

[0049] Optionally, the allowed request number determining unit is configured to execute:

[0050] For each node, obtain the number of scheduled requests of the node in the historical sub-period within the current scheduling period;

[0051] The product of the expected number of requests of the node in each sub-period in the current scheduling period and the number of the historical sub-periods is determined as the total expected number of requests of all the historical sub-periods, and the difference between the total expected number of requests and the scheduled number of requests is determined as the request number compensation value of the node in the current sub-period;

[0052] The sum of the expected request number and the request number compensation value is determined as the allowed request number of the node in the current sub-period.

[0053] Optionally, the access control module includes:

[0054] A node-to-be-scheduled determining unit, configured to determine at least one of the nodes storing the file requested by the access request as a node to be scheduled;

[0055] A scheduling request number determining unit is configured to execute, for each of the nodes to be scheduled, obtaining the scheduling request number of the node to be scheduled in the current sub-period;

[0056] A first access control unit is configured to control the access request according to a source filtering probability corresponding to the target source in the node to be scheduled if the number of scheduling requests is less than the allowed number of requests;

[0057] The second access control unit is configured to refuse to use the node to be scheduled as a target node of the access request if the number of scheduling requests is equal to the number of allowed requests.

[0058] Optionally, the first access control unit includes:

[0059] A random number generation subunit, configured to generate a random number within a preset range;

[0060] The access control subunit is configured to execute: if the random number is less than or equal to a random number threshold, the node to be scheduled is used as the target node of the access request; if the random number is greater than the random number threshold, the node to be scheduled is rejected as the target node of the access request; wherein the random number threshold is determined based on the preset range and the source filtering probability corresponding to the target source.

[0061] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0062] processor;

[0063] a memory for storing instructions executable by the processor;

[0064] The processor is configured to execute the instructions to implement the flow control method as described in the first aspect.

[0065] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the flow control method as described in the first aspect.

[0066] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program or computer instructions, wherein when the computer program or computer instructions are executed by a processor, the flow control method described in the first aspect is implemented.

[0067] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0068] The disclosed embodiment determines the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategies of each node in the network in the historical scheduling cycle and the current state information of each node, determines the allowed request number of each node in each sub-cycle in the current scheduling cycle according to the total allowed request number of each node, determines the target source of the access request when an access request is received in the current scheduling cycle, controls the access request according to the allowed request number of each node in the current sub-cycle and the source filtering probability corresponding to the target source, and controls the access request according to the allowed request number of each node in the current sub-cycle and the source filtering probability corresponding to the target source. Since the total allowed request number in the current scheduling cycle is allocated to each sub-cycle, the access request is controlled based on the allowed request number of the sub-cycle and the source filtering probability, which can avoid the problem of excessive traffic to the access node in a short period of time and less access traffic at other times, thereby improving service performance.

[0069] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0071] Figure 1 is a flow chart of a flow control method according to an exemplary embodiment;

[0072] Figure 2 is a schematic diagram of a curve showing a change rule of source filtering probability of a node for different sources in an embodiment of the present disclosure;

[0073] Figure 3 is a block diagram of a flow control device according to an exemplary embodiment;

[0074] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0075] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0076] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0077] In the related art, the first method relies on the load reporting of the node. The frequency of node reporting is limited, and it is easy for the node to explode (i.e., the traffic exceeds the maximum traffic) between two reports, and it is also easy for the next cycle to drop to the bottom and waste after high load. In addition, if the reporting frequency is too high, it will also bring great performance burden to the scheduling end and loss of the service capacity of the node itself. In the second method, the probability can only guarantee the mathematical expectation, that is, the average value is how many requests are scheduled, how much traffic is generated, and how much CPU / IO and other resources are consumed. When the node is too small or the deviation is too large, the node is easy to be exploded or idle. For example, for one thousand requests, there is a one thousandth probability that the mathematical expectation is that the node serves a request, but in fact there is a 36.7% probability that no request is served, a 36.8% probability of serving a request, and a 26.5% probability of serving more than one request. The node is likely to explode or idle. It can be seen that both methods have the problem of nodes being exploded or idle, which affects service performance. In order to solve this problem, the present disclosure provides the following technical solutions.

[0078] Figure 1 is a flow chart of a flow control method according to an exemplary embodiment. The flow control method can be applied to control the flow of accessing a node in a CDN network. The flow control method can be executed by an electronic device such as a server. The electronic device can be a scheduling control device in a CDN network, such as Figure 1 As shown, the following steps are included.

[0079] In step S11, the control target of each node in the current scheduling cycle is determined according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node. The control target includes the total number of requests allowed and the source filtering probability.

[0080] The current status information of each node may include information such as the current load information and current heartbeat information of the corresponding node. The network may be a CDN network, and the node may be a tiny node with simple storage and computing capabilities in the CDN network, such as a router or other device. The execution result of the node in the historical scheduling cycle may include information such as the total number of requests allowed by the node in the historical scheduling cycle.

[0081] At the beginning of the current scheduling cycle, each node in the CDN network reports the current status information to the scheduling control device in the CDN network. After receiving the current status information reported by each node, the scheduling control device combines the execution results of the scheduling strategy of each node in the historical scheduling cycle to determine the total number of requests allowed for each node in the current scheduling cycle and the source filtering probability, and obtains the control target of each node in the current scheduling cycle. Among them, the total number of requests allowed is the overall control of the number of requests for a single node, that is, the upper limit of the number of requests in a scheduling cycle. The source filtering probability of a node is the filtering probability of whether the request from the corresponding source is scheduled to the node. The source can be divided according to the province, such as a source can be a specific province. Of course, the source can also be divided in other ways. When a node can provide services for access requests from multiple sources, the source filtering probability of the node can be expressed in the form of a set.

[0082] In step S12, the allowed request times of each node in each sub-period in the current scheduling period are determined according to the allowed total request times of each node, and the current scheduling period includes a plurality of the sub-periods.

[0083] Traffic pulse refers to the phenomenon that the traffic is too large in a short period of time within a scheduling cycle, while the traffic is low at other times within the scheduling cycle. For example, assuming the scheduling cycle is 5 seconds, the total number of requests allowed is 100, but 200 unfiltered requests arrive in the first second. If 100 requests are taken for access, the node network card will be overwhelmed in the first second, and there will be no request access to the node in the next four seconds, resulting in a waste of resources. This phenomenon is called traffic pulse.

[0084] In order to avoid the problem of traffic pulses, the current scheduling cycle can be divided into multiple sub-cycles, and the total number of requests allowed for each node can be allocated to each sub-cycle within the current scheduling cycle, so that access requests can be processed in each sub-cycle, thereby avoiding the problem of nodes being blown up due to traffic pulses in a short period of time and no traffic in the subsequent time resulting in waste of resources.

[0085] In step S13, when an access request is received within the current scheduling period, the target source of the access request is determined, and the access request is controlled based on the number of allowed requests for each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

[0086] When controlling access requests, actual access requests are processed according to the control objectives, and the control objectives are achieved within the possible scope. In terms of traffic convergence and pulse prevention, when controlling access requests, it is necessary to ensure that the limit on the number of allowed requests and the filtering probability of each source are followed to ensure traffic convergence, that is, to give priority to satisfying access requests from sources with the lowest filtering probability.

[0087] When an access request is received within the current scheduling cycle, the target source of the access request can be obtained from the access request, and the file identifier requested by the access request can be obtained. Based on the file identifier, the file identifier is queried from the file storage index. When the file identifier is queried, the node identifier corresponding to the file identifier is obtained in the file storage index. Based on the allowed number of requests for the nodes corresponding to each node identifier in the current sub-cycle and the source filtering probability corresponding to the target source, the access request is controlled, that is, the node to be accessed by the access request is determined from each node identifier, so that the total number of requests for the node to be accessed in the current sub-cycle does not exceed the allowed number of requests, and the probability of the access request from the target source does not exceed the source filtering probability.

[0088] The flow control method provided by this exemplary embodiment determines the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current status information of each node, determines the allowed request number of each node in each sub-cycle in the current scheduling cycle according to the total allowed request number of each node, and when an access request is received in the current scheduling cycle, determines the target source of the access request, and controls the access request according to the allowed request number of each node in the current sub-cycle and the source filtering probability corresponding to the target source. Since the total allowed request number in the current scheduling cycle is allocated to each sub-cycle, and then based on the allowed request number of the sub-cycle and the source filtering probability, the access request is controlled, which can avoid the problem of excessive traffic to the access node in a short period of time and less access traffic at other times, thereby improving service performance.

[0089] In an exemplary embodiment, the control target of each node in the current scheduling cycle is determined based on the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current status information of each node, including: determining the abnormal index of each node according to the execution results of the scheduling strategy of each node in the historical scheduling cycle and the current status information of each node; determining the total number of requests allowed for each node in the current scheduling cycle according to the abnormal index of each node and the control target of each node in the historical scheduling cycle; determining the source filtering probability of each node in the current scheduling cycle according to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling cycle.

[0090] When a node stores each file, it stores it in shards. The size of each shard is fixed. Therefore, the size of shards requested from different sources is fixed. Normal access requires that a shard be downloaded within a scheduling cycle. Therefore, the bandwidth difference caused by requests from different sources is negligible. Therefore, the initial total number of requests allowed for each node can be determined based on the maximum uplink bandwidth of the node, the time interval of a scheduling cycle, the size of a single shard, and the initial expected running volume ratio. That is, the initial total number of requests allowed for each node is calculated according to the following formula: k_all0 = init_percent*max_upload_bw*interval_dispatch / single_request_bw

[0091] Among them, init_percent is the initial expected running volume ratio, max_upload_bw is the maximum uplink bandwidth of the node, interval_dispatch is the time interval of a scheduling cycle, and single_request_bw is the size of a single shard. From this, we can roughly estimate the initial total number of allowed requests, that is, roughly estimate how many requests a node needs to achieve the ideal device utilization. The initial total number of allowed requests of a node is the total number of allowed requests of a node in the first scheduling cycle.

[0092] When determining the control targets of other scheduling cycles of each node after the first scheduling cycle, the abnormal indicators of each node can be determined first according to the execution results of the scheduling strategies of each node in the historical scheduling cycle and the current status information of each node. The current status information of each node may include current heartbeat information, CPU, IO, retransmission rate, abnormal status code, current network card uplink bandwidth, current application layer uplink bandwidth, node rejection number, mixed running, soft interrupt number and other information. The abnormal indicators are shown in Table 1. External disabling can be an abnormal indicator given by artificially discovered problems; dialing failure means that the access request of the simulated user cannot be responded normally, and it needs to be disabled; download speed disabling means that the download speed of the node is lower than the download speed threshold during the historical scheduling cycle, and it needs to be disabled; reporting frequency abnormal disabling means that the frequency of the node reporting status information is abnormal, and it needs to be disabled; information abnormal disabling means that the current status information reported by the node is abnormal, and it needs to be disabled; version disabling means that the node program version installed on the node is not supported by the scheduling control device, and it needs to be disabled; storage abnormal disabling means that there is a problem with the node storage and data cannot be written normally, and it needs to be disabled; heartbeat loss disabling means that the heartbeat information of the node is not received, and it needs to be disabled; node mixed running disabling means that the committed resources provided by the node cannot be achieved in actual use, and there is a problem of using the committed resources with other service parties, which needs to be disabled; custom configuration disabling means that the node does not meet some Custom rules need to be disabled; background bandwidth disabling refers to resource consumption generated by other service providers (i.e. not the current service provider, the current service provider is the service provider that provides the above access request), which needs to be disabled; clock anomaly disabling refers to the timestamp in the current status information reported by the node, which is inconsistent with the local time and differs too much, so it needs to be disabled; business quality disabling refers to abnormal business indicators and needs to be disabled; IO demotion refers to read and write problems, which requires demotion; CPU demotion refers to the CPU occupancy that is not as expected and requires demotion; bandwidth exceeding expectations demotion refers to bandwidth exceeding expected bandwidth and requires demotion; read latency demotion refers to large read latency and requires demotion; write latency demotion refers to large write latency and requires demotion; retransmission rate demotion refers to the node's retransmission rate being too high, such as exceeding the retransmission rate threshold, which requires demotion; quality frequent fluctuation demotion refers to the quality of the execution results of the node's scheduling strategy within the historical scheduling cycle being unstable and fluctuating, and requires demotion.

[0093] Table 1 Abnormal indicators

[0094] Abnormal indicator number Abnormal reason Abnormal indicator number Abnormal reason 1 External Disable 13 Clock exception disabled 2 Disable if dial test fails 14 Quality of Service Disable 3 Download speed disabled 15 IO downgrade 4 Report frequency abnormality disabled 16 CPU downgrade 5 Information exception disabled 17 Bandwidth exceeds expectations and the rank is downgraded 6 Version Disabled 18 Read latency downgrade 7 Storage exception disabled 19 Write delay demotion 8 Heartbeat loss disable 20 Retransmission rate downgrade 9 Heart rate abnormality disabled 21 Frequent quality fluctuations will lead to demotion 10 Node mixed running disabled 11 Custom configuration disabled 12 Background bandwidth disabled

[0095] The request number deletion information corresponding to each abnormal indicator can be pre-stored, and the request number deletion information is used to delete the total allowed request number of the historical scheduling period to obtain the total allowed request number of the current scheduling period. The request number deletion information can be the deletion number or the deletion ratio. The deletion number can be the increase number or the deletion number. The deletion ratio is to delete the total allowed request number of the historical scheduling period by the corresponding deletion ratio. The deletion ratio needs to be determined based on the total allowed request number of the historical scheduling period. The number of adjustments to the corresponding deletion ratio is determined. For example, the total allowed request number of the historical scheduling period is 100, and the deletion ratio of an abnormal indicator is -10%, then the deletion number corresponding to the abnormal indicator is 10, and there are no other abnormal indicators, then it can be determined that the scheduling number of the current scheduling period is 90. After determining the abnormal indicators of each node, the total number of requests allowed for the corresponding node in the historical scheduling cycle can be increased or decreased based on the abnormal indicators of each node and the request number adjustment information corresponding to each abnormal indicator to obtain the total number of requests allowed for each node in the current scheduling cycle. That is, if there is an abnormal indicator, the total number of requests allowed for the previous scheduling cycle is reduced based on the request number deletion information corresponding to the abnormal indicator to obtain the total number of requests allowed for the current scheduling cycle. If there is no abnormal indicator, the total number of requests allowed for the previous scheduling cycle can be increased by a certain number of times to obtain the total number of requests allowed for the current scheduling cycle.

[0096] When determining the source filtering probability of a node in the current scheduling cycle, the historical bandwidth utilization and historical source filtering probability of the node for the corresponding source in the historical scheduling cycle can be fitted to achieve the purpose of converging the source filtering probability with the increase of bandwidth utilization. Based on the fitting results, the source filtering probability of the node in the current scheduling cycle can be determined. When there are multiple sources, the filtering probability of each source is calculated separately in the above-mentioned manner to obtain the source filtering probability of the node for each source in the current scheduling cycle.

[0097] For the division of the total number of requests allowed for a node among various sources, we can prioritize the scheduling of sources with better quality based on the execution results of the historical scheduling cycles of each source and the global resource demand calculation, and allocate them according to the source filtering probability. For example, the total number of requests allowed for a node is 100. Assuming that this node is a Guangdong Telecom node, based on the execution results of the historical scheduling cycles, it is estimated that the node is expected to have 50 Guangdong Telecom requests, 30 Guangxi Telecom requests, and 30 Jiangxi Telecom requests. In this case, it is easy to calculate that all requests from Guangdong and Guangxi sources need to be satisfied, and requests from Jiangxi sources can be controlled according to the source filtering probability corresponding to Jiangxi.

[0098] By determining the abnormal index of each node based on the execution results and current status information of each node in the historical scheduling cycle, and then based on the abnormal index of each node and the control target of the historical scheduling cycle, the total number of requests allowed for each node in the current scheduling cycle can be accurately determined, and then when the traffic is controlled based on the total number of requests allowed, the situation where the access traffic exceeds the maximum traffic of the node can be avoided; and based on the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling cycle, the determined source filtering probability can converge with the increase of bandwidth utilization, and then the traffic of the corresponding source can be controlled based on the source filtering probability, so that the traffic can reach the purpose of convergence, thereby further improving the node service performance.

[0099] On the basis of the above technical solution, the source filtering probability of each node in the current scheduling period is determined according to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period, including: determining the change law curve of the source filtering probability of each node relative to the bandwidth utilization according to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period, wherein, in the transformation law curve, the source filtering probability gradually converges with the increase of bandwidth utilization; determining the source filtering probability of each node in the current scheduling period according to the transformation law curve of each node and the current bandwidth utilization of each node.

[0100] The natural growth model of species capacity in a fixed environment can be expressed as follows:

[0101]

[0102] Among them, f 0 is the initial number of species, K is the maximum value allowed by the environment, and r is a parameter that measures how fast the curve changes. This model is often used in machine learning as a natural mapping between a real number space and the (0,1) interval.

[0103] In the scenario of scheduling small nodes in the CDN network, the natural growth model can be used to represent the curve of the probability of a node not being scheduled as the bandwidth utilization increases. The probability range is [0,1], so K = 1. Then, the curve of the probability of a node not being scheduled as the bandwidth utilization increases is expressed as follows:

[0104]

[0105] Among them, P represents the source filtering probability, P 0 It represents the initial source filtering probability, bw_usage represents the bandwidth utilization of the node, and r is a parameter to measure how fast the curve changes.

[0106] The above formula can be used to obtain the curve of source filtering probability changing with the increase of bandwidth utilization, that is, the change law curve, which is expressed as follows:

[0107]

[0108] The r in the above formula is an adjustment parameter. For different sources, the value of r is different, so as to ensure that access requests from sources with better quality are scheduled preferentially.

[0109] For a node, for each source, according to the historical bandwidth utilization (bw_usage1, bw_usage2, ..., bw_usagem) and historical source filtering probability (P1, P2, ..., Pm) of the node for the source in the historical scheduling period, the change law curve of the source filtering probability of the node relative to the bandwidth utilization is fitted to determine the adjustment parameter r in the above formula, thereby obtaining the change law curve of the source filtering probability of the node for the source relative to the bandwidth utilization; then, the current bandwidth utilization of the node is substituted into the above formula, and the source filtering probability of the node for the source in the current scheduling period can be determined. For the first scheduling period, the source filtering probability is the above initial source filtering probability. For the second scheduling period, the historical bandwidth utilization and historical source filtering probability corresponding to the first scheduling period can be used to determine the adjustment parameter r, thereby obtaining the source filtering probability of the node in the second scheduling period. The source filtering probability of subsequent scheduling periods is determined according to the above method to determine the adjustment parameter r, so that in the obtained change law curve, the source filtering probability gradually converges with the increase of bandwidth utilization. Thus, the current bandwidth utilization is substituted into the above formula to obtain the source filtering probability in the current scheduling period. For each node, the source filtering probability of the node in the current scheduling period can be determined in the above manner for each source.

[0110] Figure 2 is a schematic diagram of a curve showing the changing rule of the filtering probability of a node for different sources in an embodiment of the present disclosure, such as Figure 2 As shown, each curve represents the changing trend of a corresponding source. For each source, the source filtering probability gradually decreases with the increase of bandwidth utilization, that is, the source filtering probability reaches convergence. In this way, when controlling the traffic of the node, the traffic of the corresponding source accessing the node can converge with the increase of the bandwidth utilization of the node.

[0111] By predicting the source filtering probability of each node for different sources in the current scheduling cycle based on the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling cycle, the access request for each source can be controlled so that the traffic of the corresponding source converges with the increase of bandwidth utilization, thereby improving the service performance of the node.

[0112] In an exemplary embodiment, the method of determining the allowed number of requests of each node in each sub-period in the current scheduling period based on the allowed total number of requests of each node includes: determining the expected number of requests of each node in each sub-period in the current scheduling period based on the allowed total number of requests of each node; determining the allowed number of requests of each node in each sub-period in the current scheduling period based on the expected number of requests of each node in each sub-period in the current scheduling period.

[0113] Divide the time interval of the current scheduling cycle by the time interval of a sub-cycle to get the number of sub-cycles in the current scheduling cycle, and then the number of sub-cycles. Evenly distribute the total number of requests allowed for each node to each sub-cycle, and you can get the expected number of requests for each node in each sub-cycle in the current scheduling cycle. For example, the time interval of the current scheduling cycle is interval_dispatch, the total number of requests allowed is k_all, and the time interval of a sub-cycle is interval_execute. Then the number of sub-cycles in the current scheduling cycle is interval_dispatch / interval_execute, and the expected number of times for each sub-cycle can be k_all*interval_execute / interval_dispatch. If this value is not an integer, it is rounded up to the expected number of requests.

[0114] After obtaining the expected number of requests for each node in each sub-cycle in the current scheduling cycle, the expected number of requests can be used as the allowed number of requests for each sub-cycle, or the allowed number of requests for each sub-cycle can be determined based on the expected number of requests and the number of scheduled requests in the current scheduling cycle.

[0115] By determining the allowed number of requests for each node in each sub-cycle based on the expected number of requests for each node in each sub-cycle, the total allowed number of requests in the current scheduling cycle can be distributed to each sub-cycle, thereby avoiding the occurrence of traffic pulses and improving node service performance.

[0116] In an exemplary embodiment, the allowed number of requests for each node in each sub-period in the current scheduling period is determined based on the expected number of requests for each node in each sub-period in the current scheduling period, including: for each node, determining the expected number of requests for each sub-period in the current scheduling period as the allowed number of requests for each sub-period in the current scheduling period.

[0117] For each node, the expected number of requests of the node in each sub-cycle in the current scheduling cycle can be determined as the allowed number of requests of the node in each sub-cycle in the current scheduling cycle, so that the total allowed number of requests in the current scheduling cycle can be distributed to each sub-cycle to avoid the problem of traffic pulses.

[0118] In another exemplary embodiment, the method of determining the allowed number of requests of each node in each sub-period of the current scheduling period based on the expected number of requests of each node in each sub-period of the current scheduling period includes: for each node, obtaining the scheduled number of requests of the node in the historical sub-period of the current scheduling period; determining the product of the expected number of requests of the node in each sub-period of the current scheduling period and the number of historical sub-periods as the total expected number of requests of all the historical sub-periods, and determining the difference between the total expected number of requests and the scheduled number of requests as the request number compensation value of the node in the current sub-period; and determining the sum of the expected number of requests and the request number compensation value as the allowed number of requests of the node in the current sub-period.

[0119] The number of scheduled requests of a node in a historical sub-period in the current scheduling period refers to the actual number of scheduling requests of the node in all the historical sub-periods that have passed in the current scheduling period.

[0120] The expected number of requests for a sub-cycle can be determined as the allowed number of requests for the first sub-cycle in the current scheduling cycle. When determining the allowed number of requests for subsequent sub-cycles, the scheduled number of requests and the expected number of requests for the sub-cycles that have passed in the current scheduling cycle (i.e., the historical sub-cycles) can be combined to compensate for the number of requests for the current sub-cycle (the sub-cycle for which the allowed number of requests is currently determined) to obtain the allowed number of requests for the current sub-cycle.

[0121] Assuming that the number of scheduled requests of the node in the historical sub-cycle in the current scheduling cycle is k_done, and the number of sub-cycles that have passed is interval_done, then the current expected scheduling number, that is, the total expected request number of all historical sub-cycles, k_want, is interval_done*k_all*interval_execute / interval_dispatch, where interval_dispatch is the time interval of the current scheduling cycle, and interval_execute is the time interval of a sub-cycle; it can be seen that the current total expected request number is equal to the number of scheduled requests. The difference is k_want-k_done, which is the request number compensation value of the node in the current sub-period. The value may be positive or negative, indicating different directions that need to be compensated. If the value is positive, it is rounded down as the request number compensation value. If the value is negative, it is rounded up as the request number compensation value. After rounding, the request number compensation value k_offset is obtained; and then the allowed number of requests in the current sub-period is the sum of the expected number of requests and the request number compensation value, that is, the allowed number of requests in the current sub-period k_now=k_all*interval_execute / interval_dispatch+k_offset.

[0122] The request number compensation value of the current sub-cycle is determined by the scheduled request number and the expected request number of the historical sub-cycle, and then the expected request number of the current sub-cycle is compensated to obtain the allowed request number of the current sub-cycle. The allowed request number of the sub-cycle determined in this way can make full use of the node's resources and avoid resource waste.

[0123] In an exemplary embodiment, the access request is controlled based on the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source, including: determining at least one of the nodes storing the file requested by the access request as a node to be scheduled; for each node to be scheduled, obtaining the number of scheduling requests of the node to be scheduled in the current sub-period; if the number of scheduling requests is less than the number of allowed requests, controlling the access request based on the source filtering probability corresponding to the target source in the node to be scheduled; if the number of scheduling requests is equal to the number of allowed requests, refusing to use the node to be scheduled as the target node of the access request.

[0124] The number of scheduling requests of the node to be scheduled in the current sub-cycle is the number of times the node to be scheduled has been scheduled in the current sub-cycle.

[0125] Query at least one node storing the file requested by the access request from the file storage index, and use the queried node as the node to be scheduled. For each node to be scheduled, determine whether the node to be scheduled is the target node of the access request. First, obtain the number of scheduling requests of the node to be scheduled in the current sub-period, and determine whether the number of scheduling requests is less than the number of allowed requests of the node to be scheduled in the current sub-period; if the number of scheduling requests is less than the number of allowed requests, the access request can be further controlled according to the source filtering probability corresponding to the target source in the node to be scheduled. If the current access request satisfies the source filtering probability less than the node to be scheduled, the node to be scheduled can be determined as the target node of the access request. If the current access request does not satisfy the source filtering probability less than the node to be scheduled, the node to be scheduled is rejected as the target node of the access request; if the number of scheduling requests is equal to the number of allowed requests, the node to be scheduled is rejected as the target node of the access request. After determining the target node of the access request, the target node can be returned to the request end of the access request, and the request end can display the node identification of each target node, so that the user can select one of the nodes to download the file.

[0126] By combining the number of allowed requests in the current sub-period and the source filtering probability to control the access requests received in the current sub-period, it is possible to avoid excessive traffic in a short period of time, achieve the purpose of traffic convergence, and further improve the service performance of the node.

[0127] On the basis of the above technical solution, the access request is controlled according to the source filtering probability corresponding to the target source in the node to be scheduled, including: generating a random number within a preset range; if the random number is less than a random number threshold, the node to be scheduled is used as the target node of the access request; if the random number is greater than the random number threshold, the node to be scheduled is refused to be used as the target node of the access request; wherein the random number threshold is determined based on the preset range and the source filtering probability corresponding to the target source.

[0128] When the number of scheduling requests of the node to be scheduled is less than the number of allowed requests, the access request is controlled by whether the generated random number meets the requirements of the source filtering probability, that is, a random number within a preset range is generated, and the random number is compared with the random number threshold. If the random number is less than or equal to the random number threshold, the node to be scheduled is used as the target node of the access request. If the random number is greater than the random number threshold, the node to be scheduled is rejected as the target node of the access request. For example, if the source filtering probability is 5% and the preset range is 1 to 10000, then the random number threshold is 500. If the generated random number is 300, the node to be scheduled is used as the target node of the access request. If the generated random number is 1000, the node to be scheduled is rejected as the target node of the access request.

[0129] When access requests are controlled by filtering probability at the source, whether the node to be scheduled is the target node of the access request is determined based on the comparison result between the generated random number and the random number threshold. Since random numbers are generated only when the number of scheduling requests is less than the number of allowed requests and the source filtering probability is less than 1, compared with the situation in the related art where traffic control is completely based on probability, the number of random number generation is reduced, which can reduce the requirements for random seeds and scheduling control equipment performance.

[0130] Figure 3 is a block diagram of a flow control device according to an exemplary embodiment. Figure 2 The flow control device includes a control target determination module 31, a request number determination module 32 and an access control module 33.

[0131] The control target determination module 31 is configured to determine the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, wherein the control target includes the total number of requests allowed and the source filtering probability;

[0132] The request number determination module 32 is configured to determine the allowed request number of each node in each sub-period in the current scheduling period according to the allowed total request number of each node, and the current scheduling period includes multiple sub-periods;

[0133] The access control module 33 is configured to determine the target source of the access request when it is received in the current scheduling period, and control the access request based on the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

[0134] Optionally, the control target determination module includes:

[0135] An abnormality indicator determination unit is configured to determine an abnormality indicator of each of the nodes according to an execution result of a scheduling strategy of each of the nodes in the historical scheduling period and current state information of each of the nodes;

[0136] A total request number determination unit is configured to determine the total allowed request number of each node in the current scheduling period according to the abnormality index of each node and the control target of each node in the historical scheduling period;

[0137] The filtering probability determination unit is configured to determine the source filtering probability of each node in the current scheduling period according to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period.

[0138] Optionally, the filtering probability determination unit is configured to execute:

[0139] According to the historical bandwidth utilization and historical source filtering probability of each node for each source in the historical scheduling period, a change law curve of the source filtering probability of each node relative to the bandwidth utilization is determined, wherein in the change law curve, the source filtering probability gradually converges with the increase of the bandwidth utilization;

[0140] According to the transformation law curve of each of the nodes and the current bandwidth utilization rate of each of the nodes, the source filtering probability of each of the nodes in the current scheduling period is determined.

[0141] Optionally, the request number determination module includes:

[0142] An expected request number determination unit is configured to determine the expected request number of each node in each sub-period in the current scheduling period according to the total allowed request number of each node;

[0143] The allowed request number determination unit is configured to determine the allowed request number of each node in each sub-period of the current scheduling period according to the expected request number of each node in each sub-period of the current scheduling period.

[0144] Optionally, the allowed request number determining unit is configured to execute:

[0145] For each node, the expected number of requests of the node in each sub-period in the current scheduling period is determined as the allowed number of requests of the node in each sub-period in the current scheduling period.

[0146] Optionally, the allowed request number determining unit is configured to execute:

[0147] For each node, obtain the number of scheduled requests of the node in the historical sub-period within the current scheduling period;

[0148] The product of the expected number of requests of the node in each sub-period in the current scheduling period and the number of the historical sub-periods is determined as the total expected number of requests of all the historical sub-periods, and the difference between the total expected number of requests and the scheduled number of requests is determined as the request number compensation value of the node in the current sub-period;

[0149] The sum of the expected request number and the request number compensation value is determined as the allowed request number of the node in the current sub-period.

[0150] Optionally, the access control module includes:

[0151] A node-to-be-scheduled determining unit, configured to determine at least one of the nodes storing the file requested by the access request as a node to be scheduled;

[0152] A scheduling request number determining unit is configured to execute, for each of the nodes to be scheduled, obtaining the scheduling request number of the node to be scheduled in the current sub-period;

[0153] A first access control unit is configured to control the access request according to a source filtering probability corresponding to the target source in the node to be scheduled if the number of scheduling requests is less than the allowed number of requests;

[0154] The second access control unit is configured to refuse to use the node to be scheduled as a target node of the access request if the number of scheduling requests is equal to the number of allowed requests.

[0155] Optionally, the first access control unit includes:

[0156] A random number generation subunit, configured to generate a random number within a preset range;

[0157] The access control subunit is configured to execute: if the random number is less than or equal to a random number threshold, the node to be scheduled is used as the target node of the access request; if the random number is greater than the random number threshold, the node to be scheduled is rejected as the target node of the access request; wherein the random number threshold is determined based on the preset range and the source filtering probability corresponding to the target source.

[0158] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0159] Figure 4 4 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 400 may be provided as a server. Figure 4 , the electronic device 400 includes a processing component 422, which further includes one or more processors, and a memory resource represented by a memory 432 for storing instructions, such as applications, that can be executed by the processing component 422. The application stored in the memory 432 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 422 is configured to execute instructions to perform the above-mentioned flow control method.

[0160] The electronic device 400 may also include a power supply component 426 configured to perform power management of the electronic device 400, a wired or wireless network interface 450 configured to connect the electronic device 400 to a network, and an input / output (I / O) interface 458. The electronic device 400 may operate based on an operating system stored in the memory 432, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0161] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 432 including instructions, and the above instructions can be executed by the processing component 422 of the electronic device 400 to complete the above flow control method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0162] In an exemplary embodiment, a computer program product is also provided, including a computer program or a computer instruction, wherein the computer program or the computer instruction implements the above-mentioned flow control method when executed by a processor.

[0163] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0164] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A flow control method, It is characterized in that include: Determine the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, wherein the control target includes the total number of requests allowed and the source filtering probability; Determine, according to the total allowed request times of each node, the allowed request times of each node in each sub-period in the current scheduling period, wherein the current scheduling period includes a plurality of the sub-periods; When an access request is received within the current scheduling period, the target source of the access request is determined, and the access request is controlled based on the number of allowed requests for each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

2. The method according to claim 1, It is characterized in that Determining the control target of each node in the current scheduling period according to the execution result of the scheduling strategy of each node in the network in the historical scheduling period and the current state information of each node includes: Determine the abnormality index of each node according to the execution result of the scheduling strategy of each node in the historical scheduling period and the current state information of each node; Determine the total number of requests allowed for each node in the current scheduling period according to the abnormality index of each node and the control target of each node in the historical scheduling period; The source filtering probability of each node in the current scheduling period is determined according to the historical bandwidth utilization rate and the historical source filtering probability of each node for each source in the historical scheduling period.

3. The method according to claim 2, It is characterized in that Determining the source filtering probability of each node in the current scheduling period according to the historical bandwidth utilization rate and the historical source filtering probability of each node for each source in the historical scheduling period includes: Determine a change law curve of the source filtering probability of each node relative to the bandwidth utilization rate according to the historical bandwidth utilization rate and the historical source filtering probability of each node in the historical scheduling period, wherein in the change law curve, the source filtering probability gradually converges with the increase of the bandwidth utilization rate; According to the change rule curve of each node and the current bandwidth utilization rate of each node, the source filtering probability of each node in the current scheduling period is determined.

4. The method according to claim 1, It is characterized in that The determining, according to the total allowed request times of each node, the allowed request times of each node in each sub-period in the current scheduling period includes: Determining the expected number of requests of each node in each sub-period in the current scheduling period according to the total number of requests allowed for each node; According to the expected number of requests of each node in each sub-period in the current scheduling period, the allowed number of requests of each node in each sub-period in the current scheduling period is determined.

5. The method according to claim 4, It is characterized in that The determining, according to the expected number of requests of each node in each sub-period in the current scheduling period, the allowed number of requests of each node in each sub-period in the current scheduling period includes: For each node, the expected number of requests of the node in each sub-period in the current scheduling period is determined as the allowed number of requests of the node in each sub-period in the current scheduling period.

6. The method according to claim 4, It is characterized in that The determining, according to the expected number of requests of each node in each sub-period in the current scheduling period, the allowed number of requests of each node in each sub-period in the current scheduling period includes: For each node, obtain the number of scheduled requests of the node in the historical sub-period within the current scheduling period; The product of the expected number of requests of the node in each sub-period in the current scheduling period and the number of the historical sub-periods is determined as the total expected number of requests of all the historical sub-periods, and the difference between the total expected number of requests and the scheduled number of requests is determined as the request number compensation value of the node in the current sub-period; The sum of the expected request number and the request number compensation value is determined as the allowed request number of the node in the current sub-period.

7. The method according to claim 1, It is characterized in that The access request is controlled according to the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source, including: Determine at least one of the nodes storing the file requested by the access request as a node to be scheduled; For each of the nodes to be scheduled, obtaining the number of scheduling requests of the node to be scheduled in the current sub-period; If the number of scheduling requests is less than the number of allowed requests, controlling the access request according to the source filtering probability corresponding to the target source in the node to be scheduled; If the number of scheduling requests is equal to the number of allowed requests, the node to be scheduled is rejected as the target node of the access request.

8. The method according to claim 7, It is characterized in that Controlling the access request according to the source filtering probability corresponding to the target source in the node to be scheduled includes: Generate random numbers within a preset range; If the random number is less than or equal to the random number threshold, the node to be scheduled is used as the target node of the access request; if the random number is greater than the random number threshold, the node to be scheduled is rejected as the target node of the access request; wherein the random number threshold is determined based on the preset range and the source filtering probability corresponding to the target source.

9. A flow control device, It is characterized in that include: A control target determination module is configured to determine the control target of each node in the current scheduling cycle according to the execution results of the scheduling strategy of each node in the network in the historical scheduling cycle and the current state information of each node, wherein the control target includes the total number of requests allowed and the source filtering probability; A request number determination module is configured to determine the allowed request number of each node in each sub-period in the current scheduling period according to the allowed total request number of each node, wherein the current scheduling period includes a plurality of sub-periods; The access control module is configured to determine the target source of the access request when it is received within the current scheduling period, and control the access request based on the number of allowed requests of each node in the current sub-period and the source filtering probability corresponding to each node and the target source.

10. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the flow control method according to any one of claims 1 to 8.

11. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the flow control method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Flow control method and device, electronic device and storage medium

    CN110166371A

  • File access request scheduling method and device, electronic equipment and storage medium

    CN113315836A

  • Method and apparatus for scheduling memory access request, device and storage medium

    US20210208819A1

  • Node data deployment method, deployment node, system and medium

    WO2021088351A1