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

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

Info

Publication number
CN112671659A
CN112671659A CN202011495667.5A CN202011495667A CN112671659A CN 112671659 A CN112671659 A CN 112671659A CN 202011495667 A CN202011495667 A CN 202011495667A CN 112671659 A CN112671659 A CN 112671659A
Authority
CN
China
Prior art keywords
target
ratio
release
target operation
release ratio
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.)
Granted
Application number
CN202011495667.5A
Other languages
Chinese (zh)
Other versions
CN112671659B (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.)
Jiangsu Yunmanman Information Technology Co ltd
Original Assignee
Jiangsu Manyun Logistics Information 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 Jiangsu Manyun Logistics Information Co ltd filed Critical Jiangsu Manyun Logistics Information Co ltd
Priority to CN202011495667.5A priority Critical patent/CN112671659B/en
Publication of CN112671659A publication Critical patent/CN112671659A/en
Application granted granted Critical
Publication of CN112671659B publication Critical patent/CN112671659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a flow control method, a flow control device, flow control equipment and a storage medium, wherein the method comprises the following steps: responding to a target operation request triggered by a client, and acquiring a target release ratio, wherein the target release ratio represents the proportion of a server responding to the target operation; determining whether the operation is a response target operation according to the target release ratio; and if the response target operation is determined, providing the service corresponding to the target operation request for the client. Whether the service corresponding to the target operation request is provided for the client is judged according to the target release ratio, so that the client of the server responding to the service corresponding to the target operation is selected from all the clients triggering the target operation request according to the target release ratio, the service corresponding to the target operation request is provided for the client, the bandwidth occupied by the service corresponding to the target operation request is reduced while the target operation request is responded, the content distribution network use cost of the server is further reduced, and the cost is reduced.

Description

Flow control method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to information flow technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling flow.
Background
With the development of information flow technology, Content Delivery networks (CDNs for short) are widely used.
When some data is updated, the user accesses the updated data in the content distribution network for updating through the interface provided by the server after receiving the update notification. When a large number of users are updated through the interface provided by the server, the bandwidth provided by the server will increase dramatically in a short time. The increase in bandwidth will greatly increase the content distribution network usage cost of the server, resulting in a substantial increase in update costs.
Disclosure of Invention
The invention provides a flow control method, a flow control device, flow control equipment and a storage medium, which are used for reasonably controlling the bandwidth allocation of a content distribution network and reducing the updating cost.
In a first aspect, an embodiment of the present invention provides a flow control method, applied to a server, including:
responding to a target operation request triggered by a client, and acquiring a target release ratio, wherein the target release ratio represents the proportion of a server responding to the target operation;
determining whether the operation is a response target operation according to the target release ratio;
and if the response target operation is determined, providing the service corresponding to the target operation request for the client.
In a second aspect, an embodiment of the present invention further provides a flow control device, which is applied to a server, and includes:
the receiving module is used for receiving a target operation request triggered by a client;
the acquisition module is used for responding to a target operation request triggered by the client and acquiring a target release ratio, wherein the target release ratio represents the proportion of the server responding to the target operation;
the determining module is used for determining whether the operation is a response target operation according to the target release ratio;
and the response module is used for providing the service corresponding to the target operation request for the client if the response target operation is determined.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the flow control method according to the embodiment of the present application.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the flow control method according to the embodiments of the present application.
The flow control method provided by the embodiment of the invention can respond to a target operation request triggered by a client to obtain a target release ratio, wherein the target release ratio represents the proportion of a server responding to the target operation; determining whether the operation is a response target operation according to the target release ratio; and if the response target operation is determined, providing the service corresponding to the target operation request for the client. Whether the service corresponding to the target operation request is provided for the client is judged according to the target release ratio, so that the client of the server responding to the service corresponding to the target operation is selected from all the clients triggering the target operation request according to the target release ratio, the service corresponding to the target operation request is provided for the client, the bandwidth occupied by the service corresponding to the target operation request is reduced while the target operation request is responded, the content distribution network use cost of the server is further reduced, and the cost is reduced.
Drawings
Fig. 1 is a flowchart of a flow control method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural view of a flow control device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in the third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a flow control method according to an embodiment of the present invention, where this embodiment is applicable to a case where a server provides a content distribution network service for a client, and the method may be executed by the server, and specifically includes the following steps:
and step 110, responding to a target operation request triggered by the client, and acquiring a target discharge ratio.
The target release ratio represents the proportion of the server responding to the target operation, and the value of the ratio is greater than 0 and less than 1. The target operation can be a downloading operation of the application upgrading package, a downloading operation of the application installation package and the like. When the application version is updated, the application upgrade package is stored in the content distribution network. The server may provide a link for acquiring the application upgrade package for the client, and when the user clicks the link through the client, a target operation request for accessing the application upgrade package in the content distribution network through an interface provided by the server and downloading the application upgrade package is triggered. Taking the android system as an example, the format of the application upgrade package is ". apk".
The target release ratio may be preconfigured, and the preconfigured ratio value may be used as the target release ratio.
In one implementation, a target dump ratio value may be determined based on a flow threshold. The traffic threshold may be determined based on acceptable content distribution network usage charges. The target release ratio is adjusted by configuring the flow threshold. The higher the flow threshold, the greater the value of the target release ratio.
Optionally, a first release ratio is determined according to the flow threshold, the data size of the target data, and the average query rate per second of the interface, and the first release ratio is used as the target release ratio.
And determining the number of clients capable of simultaneously downloading the target data according to the flow threshold and the data volume of the target data. Specifically, the number of clients may be obtained by dividing the traffic threshold by the data size of the target data.
A first scalar ratio is determined based on the number of clients and the average query per second (Queries-per-second)) of the interfaces. Specifically, the number of clients is divided by the average query rate per second of the interface to obtain a first release ratio.
The above embodiment can adjust the target release rate by configuring the flow threshold, thereby improving the usability. When the target release quantity ratio is changed, the bandwidth occupied by the target operation is changed, and the use cost of the content distribution network is further changed.
Further, in implementing the above embodiment, an expected discharge time may be determined based on the flow threshold value on the basis of using the flow threshold value, and the expected discharge time is used as the current limiting time period. And after the expected discharge time, canceling the current limitation, and determining whether the operation is the response target operation according to the target discharge ratio without acquiring the target discharge ratio by the server. And after the expected release time, if a target operation request triggered by the client is received, the server provides a service corresponding to the target operation request for the client.
Optionally, the expected release time is determined according to the traffic threshold, the data volume of the target data, and the total amount of the clients.
And determining the number of clients capable of simultaneously downloading the target data according to the flow threshold and the data volume of the target data. Specifically, the number of clients may be obtained by dividing the traffic threshold by the data size of the target data.
And determining the expected release time according to the number of the clients and the total amount of the clients. Specifically, the total amount of clients may be divided by the number of clients to obtain the expected pay time. The total number of clients is the number of clients expected to trigger the target operation request within a certain time period.
And when the target operation is received for the first time, starting timing to obtain a timing result. When the timing result reaches the expected discharge time, the target discharge ratio is configured to be 1.
When a target operation request is received for the first time, timing is started. The timing results are incremented in seconds. And when the timing result changes, judging whether the timing result is larger than the expected discharge time. If the timing result is larger than the expected discharge time, the timing result reaches the expected discharge time, and the target discharge ratio is configured to be 1. The target placement ratio is configured to 1 to indicate that current limit is cancelled.
The implementation method can realize the current limiting in the expected discharge time and screen the target operation requests triggered by a plurality of clients. And canceling the flow limitation outside the expected discharge time, and providing the service corresponding to the target operation request for the client.
In another implementation, the target release ratio value may be determined based on time. The target release ratio is gradually increased over time until the target release ratio is increased to 1.
Optionally, first, the expected release time is determined according to the traffic threshold, the upgrade packet data amount, and the total client amount.
And determining the number of clients capable of simultaneously downloading the target data according to the flow threshold and the data volume of the target data. Specifically, the number of clients may be obtained by dividing the traffic threshold by the data size of the target data. And determining the expected release time according to the number of the clients and the total amount of the clients. Specifically, the total amount of clients may be divided by the number of clients to obtain the expected pay time. The total number of clients is the number of clients expected to trigger the target operation request within a certain time period.
And then, determining the remaining time of the released volume according to the expected released volume time and a preset time interval, wherein the remaining time of the released volume is the time obtained by the expected released volume time in a descending manner according to the preset time interval.
And taking the preset lofting time as an initial value of the lofting residual time. And taking the initial value of the left time of the volume as the initial value, and decreasing according to a preset time interval.
And finally, according to a preset time interval, determining a second discharge ratio according to the reciprocal of the discharge remaining time, and taking the second discharge ratio as a target discharge ratio.
The preset time interval may be 1 second, and the remaining play time is decremented by 1 per second until the remaining play time is 1. The remaining shot time is in seconds. And taking the reciprocal of the remaining time of the volume as a second volume ratio. For example, if the play remaining time is 600 seconds, the second play ratio is 1/600.
Alternatively, the play amount remaining Time may be determined based on a Time To Live (TTL) value of the REDIS command. When the application is updated, a critical time-to-live value, such as 10 hours, is newly established in REDIS. The time to live value is reduced by 1 per second. The time to live value may be used as the amount remaining time.
Through the embodiment, the target discharge ratio can be gradually increased along with the time, so that the current limitation is lighter and lighter until the current limitation fails. And more diversified flow control is realized.
Further, in implementing the above embodiment, it is found that the target operation request number of the client side responding in the initial stage is smaller when the target dump ratio value is determined based on time. Based on this, taking the second release ratio as the target release ratio can be implemented by the following way:
determining a second amplification ratio initial value according to the first amplification ratio and the first ratio, taking the second amplification ratio initial value as a target amplification ratio, and enabling the first ratio to be larger than 0 and smaller than 1; and when the second release ratio is larger than the initial value of the second release ratio, taking the second release ratio as the target release ratio.
And multiplying the first release ratio by the first ratio to obtain a second release ratio initial value. The first ratio may be 1/2.
Through the above embodiment, the second release ratio initial value can be used as the initial value of the second release ratio, and the release degree corresponding to the second release ratio initial value is greater than the second release ratio at the initial stage, so that relatively high client response quantity can be ensured, and the response speed of the target operation is further provided.
Further, in the implementation of the foregoing embodiment, it is found that the effect of limiting the current cannot be achieved by determining that the target discharge ratio is larger than the target operation request number of the client that is responded in the initial stage based on the time. Based on this, taking the second release ratio as the target release ratio can be implemented by the following way:
determining a second release ratio threshold according to the first release ratio and a second ratio, wherein the second ratio is greater than 1; and when the second release ratio is larger than the second release ratio threshold, taking the second release ratio threshold as the target release ratio.
The second ratio may be 1.5. And multiplying the first release ratio by a second ratio to obtain a second release ratio threshold. And when the second release ratio is larger than the second release ratio initial value, judging whether the second release ratio is larger than a second release ratio threshold value. And if so, taking the second release ratio threshold value as the target release ratio. And if the target release quantity ratio is smaller than the second release quantity ratio, the second release quantity ratio is used as the target release quantity ratio.
Through the implementation mode, when the second release ratio is larger than the second release ratio threshold, the second release ratio threshold is used as the target release ratio, and the second release ratio threshold can control the bandwidth responding to the target operation within a certain range, so that the use cost of the content distribution network is controlled.
And step 120, determining whether the operation is a response target operation according to the target release ratio.
Optionally, a random number is generated, where the random number is greater than 0 and smaller than 1; and if the random number is smaller than the target release ratio, determining to respond to the target operation.
A random number greater than 0 and less than 1 is generated. And judging whether the random number is smaller than the target release ratio. And if the random number is smaller than the target release ratio, determining to respond to the target operation. Step 130 is performed. And if the random number is larger than or equal to the target release ratio, determining to cancel the response target operation.
And step 130, if the response target operation is determined, providing the service corresponding to the target operation request for the client.
And associating the service corresponding to the target operation request with the target operation. Assuming that the target operation is update package downloading, the server provides the client with downloading information of the update package so that the user acquires the update package based on the downloading information.
And step 140, if the target operation is determined not to be responded, feeding back a service busy message to the client.
And if the server determines not to respond to the target operation, the server feeds back a service busy message to the client. The client prompts the user that the updating fails. The user may trigger the target operation request again after a certain time.
The flow control method provided by the embodiment of the invention can respond to a target operation request triggered by a client to obtain a target release ratio, wherein the target release ratio represents the proportion of a server responding to the target operation; determining whether the operation is a response target operation according to the target release ratio; and if the response target operation is determined, providing the service corresponding to the target operation request for the client. Whether the service corresponding to the target operation request is provided for the client is judged according to the target release ratio, so that the client of the server responding to the service corresponding to the target operation is selected from all the clients triggering the target operation request according to the target release ratio, the service corresponding to the target operation request is provided for the client, the bandwidth occupied by the service corresponding to the target operation request is reduced while the target operation request is responded, the content distribution network use cost of the server is further reduced, and the cost is reduced.
Example two
Fig. 2 is a schematic structural diagram of a flow control device according to a second embodiment of the present invention, where this embodiment is applicable to a case where a server provides a content distribution network service for a client, and the flow control device may be executed by the server, and includes: a receiving module 210, an obtaining module 220, a determining module 230, and a responding module 240.
A receiving module 210, configured to receive a target operation request triggered by a client;
an obtaining module 220, configured to obtain a target release ratio in response to a target operation request triggered by a client, where the target release ratio indicates a ratio of a server to respond to a target operation;
a determining module 230, configured to determine whether the target operation is a response target operation according to the target release ratio;
and the response module 240 is configured to provide a service corresponding to the target operation request for the client if the response target operation is determined.
On the basis of the foregoing embodiment, the obtaining module 220 is configured to:
and determining a first release ratio according to the flow threshold, the data volume of the target data and the average query rate per second of the interface, and taking the first release ratio as the target release ratio.
On the basis of the foregoing embodiment, the obtaining module 220 is configured to:
determining expected release time according to the flow threshold, the data volume of the target data and the total amount of the client;
when the target operation is received for the first time, starting timing to obtain a timing result;
when the timing result reaches the expected discharge time, the target discharge ratio is configured to be 1.
On the basis of the foregoing embodiment, the obtaining module 220 is configured to:
determining expected release time according to the flow threshold, the upgrade packet data quantity and the total quantity of the client;
determining the remaining time of the released volume according to the expected released volume time and a preset time interval, wherein the remaining time of the released volume is the time obtained by decreasing the expected released volume time according to the preset time interval;
and according to a preset time interval, determining a second discharge ratio according to the reciprocal of the remaining discharge time, and taking the second discharge ratio as a target discharge ratio.
On the basis of the foregoing embodiment, the obtaining module 220 is configured to:
determining a second amplification ratio initial value according to the first amplification ratio and the first ratio, taking the second amplification ratio initial value as a target amplification ratio, and enabling the first ratio to be larger than 0 and smaller than 1;
and when the second release ratio is larger than the initial value of the second release ratio, taking the second release ratio as the target release ratio.
On the basis of the foregoing embodiment, the obtaining module 220 is configured to:
determining a second release ratio threshold according to the first release ratio and a second ratio, wherein the second ratio is greater than 1;
and when the second release ratio is larger than the second release ratio threshold, taking the second release ratio threshold as the target release ratio.
On the basis of the above embodiment, the determining module 230 is configured to:
generating a random number, wherein the random number is more than 0 and less than 1;
and if the random number is smaller than the target release ratio, determining to respond to the target operation.
In the flow control device provided in the embodiment of the present invention, the receiving module 210 receives a target operation request triggered by a client, and the obtaining module 220 obtains a target release ratio in response to the target operation request triggered by the client, where the target release ratio indicates a ratio of a server responding to a target operation; the determining module 230 determines whether the target operation is a response target operation according to the target release ratio; if the response target operation is determined, the response module 240 provides the service corresponding to the target operation request to the client. Whether the service corresponding to the target operation request is provided for the client is judged according to the target release ratio, so that the client of the server responding to the service corresponding to the target operation is selected from all the clients triggering the target operation request according to the target release ratio, the service corresponding to the target operation request is provided for the client, the bandwidth occupied by the service corresponding to the target operation request is reduced while the target operation request is responded, the content distribution network use cost of the server is further reduced, and the cost is reduced.
The flow control device provided by the embodiment of the invention can execute the flow control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer apparatus according to a third embodiment of the present invention, as shown in fig. 3, the computer apparatus includes a processor 30, a memory 31, an input device 32, and an output device 33; the number of processors 30 in the computer device may be one or more, and one processor 30 is taken as an example in fig. 3; the processor 30, the memory 31, the input device 32 and the output device 33 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 3.
The memory 31 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the flow control method in the embodiment of the present invention (for example, the receiving module 210, the obtaining module 220, the determining module 230, and the responding module 240 in the flow control device). The processor 30 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 31, that is, the flow control method described above is realized.
The memory 31 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 31 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 31 may further include memory located remotely from processor 30, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 32 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 33 may include a display device such as a display screen.
Example four
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for controlling traffic, the method including:
responding to a target operation request triggered by a client, and acquiring a target release ratio, wherein the target release ratio represents the proportion of a server responding to the target operation;
determining whether the operation is a response target operation according to the target release ratio;
and if the response target operation is determined, providing the service corresponding to the target operation request for the client.
On the basis of the above embodiment, obtaining the target release ratio includes:
and determining a first release ratio according to the flow threshold, the data volume of the target data and the average query rate per second of the interface, and taking the first release ratio as the target release ratio.
On the basis of the above embodiment, obtaining the target release ratio includes:
determining expected release time according to the flow threshold, the data volume of the target data and the total amount of the client;
when the target operation is received for the first time, starting timing to obtain a timing result;
when the timing result reaches the expected discharge time, the target discharge ratio is configured to be 1.
On the basis of the above embodiment, obtaining the target release ratio includes:
determining expected release time according to the flow threshold, the upgrade packet data quantity and the total quantity of the client;
determining the remaining time of the released volume according to the expected released volume time and a preset time interval, wherein the remaining time of the released volume is the time obtained by decreasing the expected released volume time according to the preset time interval;
and according to a preset time interval, determining a second discharge ratio according to the reciprocal of the remaining discharge time, and taking the second discharge ratio as a target discharge ratio.
On the basis of the above embodiment, taking the second release ratio as the target release ratio includes:
determining a second amplification ratio initial value according to the first amplification ratio and the first ratio, taking the second amplification ratio initial value as a target amplification ratio, and enabling the first ratio to be larger than 0 and smaller than 1;
and when the second release ratio is larger than the initial value of the second release ratio, taking the second release ratio as the target release ratio.
On the basis of the above embodiment, taking the second release ratio as the target release ratio includes:
determining a second release ratio threshold according to the first release ratio and a second ratio, wherein the second ratio is greater than 1;
and when the second release ratio is larger than the second release ratio threshold, taking the second release ratio threshold as the target release ratio.
On the basis of the above embodiment, determining whether the operation is a response target operation according to the target release amount ratio includes:
generating a random number, wherein the random number is more than 0 and less than 1;
and if the random number is smaller than the target release ratio, determining to respond to the target operation.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the flow control method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present invention.
It should be noted that, in the embodiment of the flow control device, the included units and modules are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A flow control method is applied to a server and comprises the following steps:
responding to a target operation request triggered by a client, and acquiring a target release ratio, wherein the target release ratio represents the ratio of the server responding to the target operation;
determining whether the target operation is responded according to the target release ratio;
and if the target operation is determined to be responded, providing the service corresponding to the target operation request for the client.
2. The method of claim 1, wherein obtaining the target placement ratio value comprises:
and determining a first release ratio according to the flow threshold, the data volume of the target data and the average query rate per second of the interface, and taking the first release ratio as the target release ratio.
3. The method of claim 2, wherein obtaining the target placement ratio value comprises:
determining expected discharge time according to the flow threshold, the data volume of the target data and the total amount of the client;
when the target operation is received for the first time, starting timing to obtain a timing result;
when the timing result reaches the expected discharge time, the target discharge ratio is configured to be 1.
4. The method of claim 2, wherein obtaining the target placement ratio value comprises:
determining expected release time according to the flow threshold, the upgrade packet data quantity and the total quantity of the clients;
determining the remaining time of the released volume according to the expected released volume time and a preset time interval, wherein the remaining time of the released volume is the time obtained by the expected released volume time in a descending manner according to the preset time interval;
and according to the preset time interval, determining a second discharge ratio according to the reciprocal of the discharge remaining time, and taking the second discharge ratio as a target discharge ratio.
5. The method of claim 4, wherein the using the second release ratio value as a target release ratio value comprises:
determining a second amplification ratio initial value according to the first amplification ratio and a first ratio, taking the second amplification ratio initial value as a target amplification ratio, and enabling the first ratio to be larger than 0 and smaller than 1;
and when the second release ratio is larger than the initial value of the second release ratio, taking the second release ratio as a target release ratio.
6. The method of claim 4, wherein the using the second release ratio value as a target release ratio value comprises:
determining a second release ratio threshold according to the first release ratio and a second ratio, wherein the second ratio is greater than 1;
and when the second release ratio is larger than the second release ratio threshold, taking the second release ratio threshold as a target release ratio.
7. The method of claim 1, wherein said determining whether to respond to the target operation based on the target placement ratio value comprises:
generating a random number, wherein the random number is more than 0 and less than 1;
and if the random number is smaller than the target release ratio, determining to respond to the target operation.
8. A flow control device applied to a server comprises:
the receiving module is used for receiving a target operation request triggered by a client;
the acquisition module is used for responding to a target operation request triggered by a client and acquiring a target release ratio, wherein the target release ratio represents the ratio of the server responding to the target operation;
the determining module is used for determining whether the target operation is responded according to the target release ratio;
and the response module is used for providing the service corresponding to the target operation request for the client if the target operation is determined to be responded.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the flow control method according to any one of claims 1 to 7 when executing the program.
10. A storage medium containing computer executable instructions for performing the flow control method of any one of claims 1-7 when executed by a computer processor.
CN202011495667.5A 2020-12-17 2020-12-17 Flow control method, device, equipment and storage medium Active CN112671659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011495667.5A CN112671659B (en) 2020-12-17 2020-12-17 Flow control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011495667.5A CN112671659B (en) 2020-12-17 2020-12-17 Flow control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112671659A true CN112671659A (en) 2021-04-16
CN112671659B CN112671659B (en) 2022-08-05

Family

ID=75404806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011495667.5A Active CN112671659B (en) 2020-12-17 2020-12-17 Flow control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112671659B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265458A1 (en) * 2008-04-21 2009-10-22 Microsoft Corporation Dynamic server flow control in a hybrid peer-to-peer network
US9256506B1 (en) * 2012-06-04 2016-02-09 Google Inc. System and method for performing operations on target servers
CN111580961A (en) * 2020-04-28 2020-08-25 北京达佳互联信息技术有限公司 Access request processing method, device, server and storage medium
CN111835856A (en) * 2020-07-17 2020-10-27 北京百度网讯科技有限公司 File downloading method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265458A1 (en) * 2008-04-21 2009-10-22 Microsoft Corporation Dynamic server flow control in a hybrid peer-to-peer network
US9256506B1 (en) * 2012-06-04 2016-02-09 Google Inc. System and method for performing operations on target servers
CN111580961A (en) * 2020-04-28 2020-08-25 北京达佳互联信息技术有限公司 Access request processing method, device, server and storage medium
CN111835856A (en) * 2020-07-17 2020-10-27 北京百度网讯科技有限公司 File downloading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112671659B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN110262827B (en) Incremental updating method and device, storage medium and electronic equipment
EP2919440B1 (en) Advertisement processing method and device
CN102724308A (en) Software update method and software update system
US11146660B2 (en) Information packet download method for preventing high concurrency, electronic device and storage medium
CN104159231A (en) Method for optimizing background flow of client, and client
CN106708539B (en) Client updating method and device
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN105656810A (en) Method and device for updating application program
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN111083136B (en) Account resource management device and method and data acquisition system and method
CA2550879A1 (en) License distribution in a packet data network
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN105763616B (en) Resource downloading method and device
CN111970320B (en) Control method and device for OTA data packet issuing flow
CN112671659B (en) Flow control method, device, equipment and storage medium
JP7257554B2 (en) Model file distribution method, platform, system, terminal and readable storage medium
CN113079210A (en) Cross-region data automatic synchronization configuration method, terminal equipment and storage medium
CN109639533B (en) Method and system for testing regional scheduling strategy and terminal equipment
US20140173635A1 (en) System and method for adding local resources for use by a mobile agent object
EP3843361A1 (en) Resource configuration method and apparatus, and storage medium
CN111479137B (en) Method and device for providing line address, server and storage medium
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN112492091B (en) Application processing method and device, terminal and storage medium
CN109309848B (en) Bullet screen distribution method, device, equipment and storage medium based on retry mechanism
CN109327740B (en) Popularization application operation method of terminal, terminal and computer readable 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
CP01 Change in the name or title of a patent holder

Address after: 210012 4th floor, building 5, no.170-1, software Avenue, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee after: Jiangsu Yunmanman Information Technology Co.,Ltd.

Address before: 210012 4th floor, building 5, no.170-1, software Avenue, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee before: Jiangsu manyun Logistics Information Co.,Ltd.

CP01 Change in the name or title of a patent holder
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210416

Assignee: Nanjing Manyun Cold Chain Technology Co.,Ltd.

Assignor: Jiangsu Yunmanman Information Technology Co.,Ltd.

Contract record no.: X2023980040393

Denomination of invention: Flow control methods, devices, equipment, and storage media

Granted publication date: 20220805

License type: Common License

Record date: 20230824

EE01 Entry into force of recordation of patent licensing contract
CP02 Change in the address of a patent holder

Address after: 210012 3rd floor, building a, Wanbo Science Park, 66 Huashen Avenue, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee after: Jiangsu Yunmanman Information Technology Co.,Ltd.

Address before: 210012 4th floor, building 5, no.170-1, software Avenue, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee before: Jiangsu Yunmanman Information Technology Co.,Ltd.

CP02 Change in the address of a patent holder