CN109660400B - Flow control configuration method and system - Google Patents

Flow control configuration method and system Download PDF

Info

Publication number
CN109660400B
CN109660400B CN201811583119.0A CN201811583119A CN109660400B CN 109660400 B CN109660400 B CN 109660400B CN 201811583119 A CN201811583119 A CN 201811583119A CN 109660400 B CN109660400 B CN 109660400B
Authority
CN
China
Prior art keywords
flow control
quota
service
server cluster
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811583119.0A
Other languages
Chinese (zh)
Other versions
CN109660400A (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.)
Sipic Technology Co Ltd
Original Assignee
Sipic Technology 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 Sipic Technology Co Ltd filed Critical Sipic Technology Co Ltd
Priority to CN201811583119.0A priority Critical patent/CN109660400B/en
Publication of CN109660400A publication Critical patent/CN109660400A/en
Application granted granted Critical
Publication of CN109660400B publication Critical patent/CN109660400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The embodiment of the invention provides a flow control configuration method. The method comprises the following steps: deploying a flow control client in each business system; the flow control client and the flow control server cluster synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization; monitoring the etcd distributed storage cluster, responding to the update of the flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster; the flow control client responds to the input of the service requests of all the service systems, determines the demand quota of the service requests, and the flow control client makes flow control decision through the flow control server cluster according to the demand quota so as to pull the quota to the flow control server cluster. The embodiment of the invention also provides a flow control configuration system. The embodiment of the invention monitors the etcd configuration through the flow control server, improves the real-time performance of the system for arranging and processing the flow control, lightens the task of the flow control server cluster, and ensures the stability of the operation of the whole system.

Description

Flow control configuration method and system
Technical Field
The present invention relates to the field of flow control, and in particular, to a flow control configuration method and system.
Background
"flow control" is short for "flow control". The flow control technology is divided into two types: one is that the flow control is added into the service as a complete functional module, and the service realizes the flow control function by calling a module interface; the other is that the flow control is used as a single service, and the service requests the flow control service to realize the flow control function.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art:
if the flow control function module is used as a complete flow control function module, the module needs to be introduced into each service requiring flow control, and if the flow control function module needs to be updated or repaired, batch updating is needed, which is more tedious.
As a separate flow control service, the defect of being a complete flow control module can be avoided; however, each request needs to query the flow control service, which obviously affects the efficiency, and the flow control service also faces a great pressure.
Since the same service information is not guaranteed to be used for flow control between service services, the specific implementation of flow control needs to be related to services, so that: if the flow control module is used as a complete flow control module, the multiplexing cannot be obtained for a heterogeneous system. It can be cumbersome when updates and modifications are needed. If the flow control service is deployed, when the service is required to receive the request, the flow control service is inquired about the flow state of the current service to complete the flow limiting function.
Disclosure of Invention
In order to solve at least the problems that the use of a complete flow control module in the prior art requires the introduction of the module into each service requiring flow control, so that the later maintenance is complicated, and the flow control service needs to be queried every time the flow control request is made as an independent flow control service, thereby affecting the efficiency.
In a first aspect, an embodiment of the present invention provides a flow control configuration method, including:
deploying a flow control client in each business system;
the flow control client and the flow control server cluster synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
monitoring the etcd distributed storage cluster, responding to the update of the flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
the flow control client responds to the input of the service request of each service system, determines the demand quota of the service request, and performs flow control decision through the flow control server cluster according to the demand quota so as to pull quota to the flow control server cluster.
In a second aspect, an embodiment of the present invention provides a flow control configuration system, including:
the client deployment program module is used for deploying the flow control client in each business system;
the initialization program module is used for the flow control client and the flow control server cluster to synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
the flow control configuration acquisition program module is used for monitoring the etcd distributed storage cluster, responding to the update of flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
and the quota pulling program module is used for responding to the input of the service request of each service system by the flow control client, determining the demand quota of the service request, and performing flow control decision through the flow control server cluster by the flow control client according to the demand quota so as to pull the quota to the flow control server cluster.
In a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the steps of the flow control configuration method of any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the steps of the flow control configuration method according to any embodiment of the present invention.
The embodiment of the invention has the beneficial effects that: the flow control server monitors the etcd configuration, and when the configuration is changed, the configuration can be immediately effective, so that the real-time performance of the system for arranging and processing the flow control is improved. Meanwhile, the flow control client determines that the required quota is pulled to the flow control server cluster, so that the tasks of the flow control server cluster are reduced, the flow distribution among all the services is more reasonable and relatively uniform, and the operation stability of the whole system is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a flow control configuration method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a flow control configuration system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a flow control configuration method according to an embodiment of the present invention, which includes the following steps:
s11: deploying a flow control client in each business system;
s12: the flow control client and the flow control server cluster synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
s13: monitoring the etcd distributed storage cluster, responding to the update of the flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
s14: the flow control client responds to the input of the service request of each service system, determines the demand quota of the service request, and performs flow control decision through the flow control server cluster according to the demand quota so as to pull quota to the flow control server cluster.
In this embodiment, the flow control function is deployed as a separate service. Then the business service carries out flow control work by pulling quota information to the local. Special processing can be performed according to the scene of the service.
For step S11, a flow control client is deployed in each business system, where the flow control client may be included in the program that needs to perform flow limiting or deployed on the same machine as the program. The flow control client side queries the specified flow control rule by combining information such as dimension indexes (including information transmitted by the program and load information of the machine) and the like through calling a flow control client side interface, transmits the flow control rule to the flow control server side, and requests a flow quota to the local. And requesting the flow to pass according to the flow quota.
For step S12, the cluster of the flow control service end and the flow control client both use etcd to store the configuration information. Wherein the etcd is a distributed and consistent KV (Key-Value Key Value) storage system for shared configuration and service discovery. etcd uses the Raft protocol to maintain consistency of the state of each node within the cluster. In brief, an etcd cluster is a distributed system, a plurality of nodes communicate with each other to form an integral external service, each node stores complete data, and the data maintained by each node is guaranteed to be consistent through a Raft protocol. Each etcd node maintains a state machine and at most one active master node exists at any time. The main node processes all write operations from the client side, and the changes of the write operations to the state machine are reliably synchronized to other nodes through the Raft protocol. Due to the distributed characteristic of the etcd and the characteristic of providing data monitoring, the modification of the configuration can be directly fed back to the flow control server side cluster and the flow control client side in real time, so that the configuration is effective and the service does not need to be restarted.
For step S13, configuring a flow control configuration information console to modify configuration information, and responding to update of flow control configuration information in the etcd distributed storage cluster, where the flow control service end cluster is started, and reads updated flow control configuration information from the etcd to perform initialization flow control configuration to provide service, and the flow control client starts with a service system and reads updated flow control configuration information from the etcd to initialize.
For step S14, the flow control client responds to the input of service request traffic of each service system, where the request includes a parameter index of the request traffic, for example, service system parameters may be used, and information such as IP that is not related to the service may also be used. And the flow control client performs flow control decision through the flow control server cluster according to the required quota, for example, determining how much quota is required, attaching class parameters of a service system and load information of the local machine, and pulling the quota to the flow control server cluster.
According to the embodiment, the etcd configuration is monitored through the flow control service end, and the configuration can be immediately effective when changed, so that the real-time performance of the system for arranging and processing the flow control is improved. Meanwhile, the flow control client determines that the required quota is pulled to the flow control server cluster, so that the tasks of the flow control server cluster are reduced, the flow distribution among all the services is more reasonable and relatively uniform, and the operation stability of the whole system is ensured.
As an implementation manner, in this embodiment, the flow control client determines a demand quota of each service request in response to an input of a number of service requests of each service system, and performing, by the flow control client, a flow control decision through the flow control server cluster according to the demand quota includes:
the flow control client checks the local flow control quota information;
and if the local flow control quota information does not meet the requirement quota, sending the local load information of the flow control client and the requirement quota to the flow control server cluster so as to pull the quota.
In this embodiment, the flow control client may first check that the local flow control quota is insufficient, and if the local flow control quota information does not satisfy the demand quota, send the local load information of the flow control client and the demand quota to the flow control server cluster to pull the quota.
According to the embodiment, only when the local flow control quota information does not meet the quota requirement, the local load information of the flow control client and the requirement quota are sent to the flow control server cluster, and if the local flow control quota is enough, the flow control server cluster is not disturbed, so that the efficiency of the flow control quota is improved.
As an implementation manner, in this embodiment, after sending the local load information of the flow control client and the demand quota to the flow control server cluster to pull a quota, the method further includes:
verifying whether the pull quota meets a quota requirement of the service request;
when the quota requirement of the service request is met, giving a response to the service system;
and when the quota requirement of the service request is not met, rejecting the request of the service system.
In this embodiment, since the available quota of the flow control server cluster is also limited, even if the flow control client sends the local load information and the demand quota to the flow control server cluster, the pulled quota cannot necessarily meet the quota demand of the service request, and when the quota demand of the service request is met, the service system is given a response; and when the quota requirement of the service request is not met, rejecting the request of the service system.
According to the embodiment, the quota has a certain upper limit, the service request cannot be completely met, and when the quota requirement of the service request is not met, the request of the service system is rejected, so that the stability of the system is ensured.
As an embodiment, the input of the flow control client in response to the service request of each service system includes:
the service request is input to the service system through websocket connection, and the number of times of reference of the service system is increased by 1 in response to the input of the service request, wherein the initial number of times of reference of the service system is 0;
when the websocket connection is disconnected, subtracting 1 from the number of references to the service system;
and when the reference times are 0, returning the pulled quota to the flow control server cluster.
In this embodiment, since most of the service scenarios are websocket long connections, it is possible to do something while creating and disconnecting connections: when the connection is established, the service cannot inquire quota information locally, requests the flow control server side cluster to pull quota, stores quota information locally and adds a reference count. And when the connection is disconnected, the reference count of the service in the local quota information is reduced by 1, and if the reference count is 0, the quota information is returned to the flow control service again. If the service inquires quota information locally when the connection is established, only the reference count needs to be added.
According to the embodiment, the dynamic quota is realized by returning the quota requested by the flow control client in time.
Fig. 2 is a schematic structural diagram of a flow control configuration system according to an embodiment of the present invention, which can execute the flow control configuration method according to any of the above embodiments and is configured in a terminal.
The present embodiment provides a flow control configuration system, including: a client deployment program module 11, an initialization program module 12, a flow control configuration acquisition program module 13 and a quota pull program module 14.
The client deployment program module 11 is used for deploying a flow control client in each service system; the initialization program module 12 is used for the stream control client and the stream control server cluster to synchronously acquire stream control configuration information from the etcd distributed storage cluster for initialization; the flow control configuration acquiring program module 13 is configured to monitor the etcd distributed storage cluster, and in response to updating of flow control configuration information in the etcd distributed storage cluster, the flow control client and the flow control server cluster acquire an updated flow control configuration; the quota pull program module 14 is configured to, by the flow control client, respond to an input of a service request of each service system, determine a demand quota of the service request, and the flow control client performs a flow control decision through the flow control server cluster according to the demand quota, so as to pull a quota to the flow control server cluster.
Further, the quota pull program module is configured to:
the flow control client checks the local flow control quota information;
and if the local flow control quota information does not meet the requirement quota, sending the local load information of the flow control client and the requirement quota to the flow control server cluster so as to pull the quota.
Further, the quota pull program module is further configured to:
verifying whether the pull quota meets a quota requirement of the service request;
when the quota requirement of the service request is met, giving a response to the service system;
and when the quota requirement of the service request is not met, rejecting the request of the service system.
Further, the quota pull program module is configured to:
the service request is input to the service system through websocket connection, and the number of times of reference of the service system is increased by 1 in response to the input of the service request, wherein the initial number of times of reference of the service system is 0;
when the websocket connection is disconnected, subtracting 1 from the number of references to the service system;
and when the reference times are 0, returning the pulled quota to the flow control server cluster.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the flow control configuration method in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
deploying a flow control client in each business system;
the flow control client and the flow control server cluster synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
monitoring the etcd distributed storage cluster, responding to the update of the flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
the flow control client responds to the input of the service request of each service system, determines the demand quota of the service request, and performs flow control decision through the flow control server cluster according to the demand quota so as to pull quota to the flow control server cluster.
As a non-volatile computer readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the methods of testing software in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium that, when executed by a processor, perform a flow control configuration method in any of the method embodiments described above.
The non-volatile computer-readable storage medium may 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 use of a device of test software, and the like. Further, the non-volatile computer-readable storage medium 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 embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the means for testing software 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.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the steps of the flow control configuration method of any of the embodiments of the present invention.
The client of the embodiment of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones, multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as tablet computers.
(3) Portable entertainment devices such devices may display and play multimedia content. The devices comprise audio and video players, handheld game consoles, electronic books, intelligent toys and portable vehicle-mounted navigation devices.
(4) Other electronic devices with fluidic configuration functions.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of flow control configuration, comprising:
deploying a flow control client in each business system;
the flow control client and the flow control server cluster synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
monitoring the etcd distributed storage cluster, responding to the update of the flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
the flow control client responds to the input of the service request of each service system, determines the demand quota of the service request, and performs flow control decision through the flow control server cluster according to the demand quota so as to pull quota to the flow control server cluster.
2. The method of claim 1, wherein the flow control client determines a demand quota of the service request in response to an input of a number of service requests of each service system, and performing a flow control decision by the flow control client through the flow control server cluster according to the demand quota comprises:
the flow control client checks the local flow control quota information;
and if the local flow control quota information does not meet the requirement quota, sending the local load information of the flow control client and the requirement quota to the flow control server cluster so as to pull the quota.
3. The method of claim 2, wherein after sending the flow control client local load information and the demand quota to the flow control server cluster to pull a quota, the method further comprises:
verifying whether the pull quota meets a quota requirement of the service request;
when the quota requirement of the service request is met, giving a response to the service system;
and when the quota requirement of the service request is not met, rejecting the request of the service system.
4. The method of claim 1, wherein the flow control client responding to the input of each service system service request comprises:
the service request is input to the service system through websocket connection, and the number of times of reference of the service system is increased by 1 in response to the input of the service request, wherein the initial number of times of reference of the service system is 0;
when the websocket connection is disconnected, subtracting 1 from the number of references to the service system;
and when the reference times are 0, returning the pulled quota to the flow control server cluster.
5. A fluidic configuration system comprising:
the client deployment program module is used for deploying the flow control client in each business system;
the initialization program module is used for the flow control client and the flow control server cluster to synchronously acquire flow control configuration information from the etcd distributed storage cluster for initialization;
the flow control configuration acquisition program module is used for monitoring the etcd distributed storage cluster, responding to the update of flow control configuration information in the etcd distributed storage cluster, and acquiring the updated flow control configuration by the flow control client and the flow control server cluster;
and the quota pulling program module is used for responding to the input of the service request of each service system by the flow control client, determining the demand quota of the service request, and performing flow control decision through the flow control server cluster by the flow control client according to the demand quota so as to pull the quota to the flow control server cluster.
6. The system of claim 5, wherein the quota-pulling program module is to:
the flow control client checks the local flow control quota information;
and if the local flow control quota information does not meet the requirement quota, sending the local load information of the flow control client and the requirement quota to the flow control server cluster so as to pull the quota.
7. The system of claim 6, wherein the quota-pulling program module is further to:
verifying whether the pull quota meets a quota requirement of the service request;
when the quota requirement of the service request is met, giving a response to the service system;
and when the quota requirement of the service request is not met, rejecting the request of the service system.
8. The system of claim 5, wherein the quota-pulling program module is to:
the service request is input to the service system through websocket connection, and the number of times of reference of the service system is increased by 1 in response to the input of the service request, wherein the initial number of times of reference of the service system is 0;
when the websocket connection is disconnected, subtracting 1 from the number of references to the service system;
and when the reference times are 0, returning the pulled quota to the flow control server cluster.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any of claims 1-4.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201811583119.0A 2018-12-24 2018-12-24 Flow control configuration method and system Active CN109660400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811583119.0A CN109660400B (en) 2018-12-24 2018-12-24 Flow control configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811583119.0A CN109660400B (en) 2018-12-24 2018-12-24 Flow control configuration method and system

Publications (2)

Publication Number Publication Date
CN109660400A CN109660400A (en) 2019-04-19
CN109660400B true CN109660400B (en) 2021-06-25

Family

ID=66116408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811583119.0A Active CN109660400B (en) 2018-12-24 2018-12-24 Flow control configuration method and system

Country Status (1)

Country Link
CN (1) CN109660400B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112217844B (en) * 2019-07-10 2022-05-10 腾讯科技(深圳)有限公司 Request forwarding method and device and Internet system
CN110460676B (en) * 2019-08-22 2022-03-25 腾讯科技(深圳)有限公司 Request quantity control method and device, storage medium and computer equipment
CN111026529B (en) * 2019-11-26 2023-08-01 蚂蚁财富(上海)金融信息服务有限公司 Task stopping method and device of distributed task processing system
CN113126958B (en) * 2019-12-31 2022-07-08 思必驰科技股份有限公司 Decision scheduling customization method and system based on information flow
CN111586043B (en) * 2020-05-07 2022-08-19 广东培正学院 Operation and maintenance management system for computer equipment
CN113301075B (en) * 2020-05-18 2022-09-13 阿里巴巴集团控股有限公司 Flow control method, distributed system, device and storage medium
CN113992586B (en) * 2020-07-10 2023-11-24 腾讯科技(深圳)有限公司 Flow control method, flow control device, computer equipment and storage medium
CN112087395B (en) * 2020-08-28 2022-06-24 浪潮云信息技术股份公司 Service type hierarchical flow control method
CN113938429A (en) * 2021-09-07 2022-01-14 南京星云数字技术有限公司 Flow control method, flow control device and computer readable storage medium
CN115460086B (en) * 2022-08-18 2024-01-30 北京永辉科技有限公司 Real-time protection system, method and computer readable storage medium for distributed middleware
CN116668372B (en) * 2023-08-01 2023-11-03 腾讯科技(深圳)有限公司 Flow control method and related device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175065A (en) * 2004-05-20 2008-05-07 安徽现代电视技术有限公司 Stream media network computer and its method for implementing stream media function
CN101958842A (en) * 2010-10-28 2011-01-26 神州数码网络(北京)有限公司 Flow control method based on user
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
CN102045403A (en) * 2010-12-29 2011-05-04 成都市华为赛门铁克科技有限公司 Method, device and system for processing data of distributed network
CN103052088A (en) * 2011-10-13 2013-04-17 风网科技(北京)有限公司 Flow calculating system and method
CN104065586A (en) * 2013-03-19 2014-09-24 阿里巴巴集团控股有限公司 Flow control method and device
CN104580305A (en) * 2013-10-18 2015-04-29 腾讯科技(深圳)有限公司 Network uploading scheduling method and system, network bandwidth detection method, client and servers
CN105208121A (en) * 2015-09-23 2015-12-30 深圳市深信服电子科技有限公司 File access flow control method and system based on distributed file system
US9258203B1 (en) * 2006-09-29 2016-02-09 Amazon Technologies, Inc. Monitoring computer performance metrics utilizing baseline performance metric filtering
CN105553872A (en) * 2015-12-25 2016-05-04 浪潮(北京)电子信息产业有限公司 Multipath data traffic load equalizing method
CN108924880A (en) * 2018-07-06 2018-11-30 弗兰威尔信息科技(苏州)有限公司 It is a kind of can automatic flow cutting transfer flow distributing system and its distribution method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175065A (en) * 2004-05-20 2008-05-07 安徽现代电视技术有限公司 Stream media network computer and its method for implementing stream media function
US9258203B1 (en) * 2006-09-29 2016-02-09 Amazon Technologies, Inc. Monitoring computer performance metrics utilizing baseline performance metric filtering
CN101958842A (en) * 2010-10-28 2011-01-26 神州数码网络(北京)有限公司 Flow control method based on user
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
CN102045403A (en) * 2010-12-29 2011-05-04 成都市华为赛门铁克科技有限公司 Method, device and system for processing data of distributed network
CN103052088A (en) * 2011-10-13 2013-04-17 风网科技(北京)有限公司 Flow calculating system and method
CN104065586A (en) * 2013-03-19 2014-09-24 阿里巴巴集团控股有限公司 Flow control method and device
CN104580305A (en) * 2013-10-18 2015-04-29 腾讯科技(深圳)有限公司 Network uploading scheduling method and system, network bandwidth detection method, client and servers
CN105208121A (en) * 2015-09-23 2015-12-30 深圳市深信服电子科技有限公司 File access flow control method and system based on distributed file system
CN105553872A (en) * 2015-12-25 2016-05-04 浪潮(北京)电子信息产业有限公司 Multipath data traffic load equalizing method
CN108924880A (en) * 2018-07-06 2018-11-30 弗兰威尔信息科技(苏州)有限公司 It is a kind of can automatic flow cutting transfer flow distributing system and its distribution method

Also Published As

Publication number Publication date
CN109660400A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN109660400B (en) Flow control configuration method and system
US20170163479A1 (en) Method, Device and System of Renewing Terminal Configuration In a Memcached System
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN103176790A (en) Application releasing method and application releasing system
US11575592B2 (en) Message processing method and apparatus, control-plane device, and computer storage medium
CN104199957A (en) Redis universal agent implementation method
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN112839067B (en) Data synchronization method and device
CN111611091A (en) Service calling method, device and medium for business object
CN112350873A (en) Application service information processing method, application service calling method, device and system
CN111953785A (en) Data transmission method, system and server
CN106411713B (en) State notification method and server
CN111010429A (en) Method and system for managing equipment running state based on platform of Internet of things
CN112235378B (en) Data updating method and device, storage medium and electronic equipment
CN112328413B (en) Application service calling method, device and system
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN111767558B (en) Data access monitoring method, device and system
CN113132293B (en) Attack detection method and device and public honeypot system
CN109104472B (en) Block chain network networking method, device, equipment and computer readable storage medium
CN116389454A (en) Data downloading system
CN109842497B (en) Configuration updating method and device of DNS (Domain name Server), terminal equipment and configuration updating system
CN114968617B (en) API conversion system, access request processing method thereof, electronic equipment and medium
CN112905338B (en) Automatic computing resource allocation method and device
CN105933352B (en) Method of data synchronization, client and system between client-based server

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
CB02 Change of applicant information

Address after: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: AI SPEECH Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant