CN113300966B - Flow control method, device, system and electronic equipment - Google Patents

Flow control method, device, system and electronic equipment Download PDF

Info

Publication number
CN113300966B
CN113300966B CN202010733489.9A CN202010733489A CN113300966B CN 113300966 B CN113300966 B CN 113300966B CN 202010733489 A CN202010733489 A CN 202010733489A CN 113300966 B CN113300966 B CN 113300966B
Authority
CN
China
Prior art keywords
flow control
node
abnormal
service
global
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
CN202010733489.9A
Other languages
Chinese (zh)
Other versions
CN113300966A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010733489.9A priority Critical patent/CN113300966B/en
Publication of CN113300966A publication Critical patent/CN113300966A/en
Application granted granted Critical
Publication of CN113300966B publication Critical patent/CN113300966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)

Abstract

The embodiment of the application provides a flow control method, which comprises the following steps: obtaining the number of service nodes and global flow control parameters in the distributed system; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; and providing the local flow control target parameters to the service node so that the service node can perform local flow control on the abnormal service node. According to the method, the local flow control target parameters are obtained through the number of the service nodes and the global flow control parameters, when the connection state or the data transmission state between the service nodes and the global flow control nodes in the distributed system is abnormal, the local flow control is carried out by using the local flow control target parameters aiming at the abnormal service nodes, and compared with the prior art, the method is easier to obtain the local flow control target parameters, and meanwhile, the obtained local flow control target parameters can maintain the global flow control stable.

Description

Flow control method, device, system and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to three flow control methods, devices and two flow control systems. And also relates to an electronic device and a computer storage medium corresponding to the flow control method.
Background
A distributed system (distributed system) is a software system built on top of a network in which a plurality of service nodes are provided to handle the tasks of various assistance. Flow control is required in a distributed system to enable individual service nodes to handle the tasks of each assistance normally. In general, each service node is connected to a global flow control node, and the global flow control node performs global flow control on each service node when the connection state between each service node and the global flow control node is in a normal connection state. But once a service node "loses" contact with a global flow control node, the service node can no longer be globally flow controlled by the global flow control node.
In the prior art, local flow control is directly started for the abnormal service node in the situation that a certain service node and a global flow control node cannot perform global flow control, and other service nodes which are normally connected with the global flow control node are still subjected to global flow control by the global flow control node. For a certain service node or a plurality of service nodes adopting local flow control, a local flow control threshold value needs to be set and selected, but the threshold value is difficult to select, and meanwhile, the selected local flow control threshold value is easy to cause unstable global flow control.
Disclosure of Invention
The embodiment of the application provides a flow control method, which is used for solving the problems that a local flow control threshold value is not easy to select and global flow control is easy to be unstable in the flow control method in the prior art.
The embodiment of the application provides a flow control method, which comprises the following steps:
Obtaining the number of service nodes and global flow control parameters in a distributed system, wherein the global flow control parameters are parameters used by the global flow control nodes in the distributed system for performing global flow control on the service nodes;
According to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
and providing the local flow control target parameter to the service node so that the service node can perform local flow control on the abnormal service node.
Optionally, the method further comprises:
Obtaining the number of the abnormal service nodes;
And if the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, sending out a command for carrying out local flow control to all the service nodes in the distributed system or sending out a command for carrying out local flow control to the service nodes with normal connection state and normal data transmission state with the global flow control node.
Optionally, the number of abnormal service nodes satisfies a condition for performing local flow control on all service nodes in the distributed system, including: the ratio of the number of the abnormal service nodes to the number of the service nodes meets a preset ratio threshold condition.
Optionally, the obtaining, according to the number of service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control on the abnormal service node includes:
The global flow control parameter and the number of the service nodes are made to be a quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
And confirming the quotient as a local flow control target parameter used for carrying out local flow control on the abnormal service node.
Optionally, each service node in the service nodes is correspondingly configured with a local flow control node, and the local flow control node is used for performing local flow control on the abnormal service node when the corresponding service node is confirmed to be the abnormal service node.
Optionally, the providing the local flow control target parameter to the service node, so that the service node performs local flow control on the abnormal service node, includes:
providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes;
And the local flow control node performs local flow control on the abnormal service node based on the local flow control target parameter.
Optionally, the obtaining, according to the number of service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control on the abnormal service node includes:
obtaining abnormal information of abnormal connection state or abnormal data transmission state between the abnormal service node and the global flow control node;
And based on the abnormal information, obtaining local flow control target parameters used for carrying out local flow control on the abnormal service nodes by utilizing the number of the service nodes and the global flow control parameters.
Optionally, after performing local flow control on the abnormal service node, if the connection state between the abnormal service node and the global flow control node is recovered to be normal and the data transmission state is recovered to be normal, an instruction for performing global flow control on the recovered service node is sent to the global flow control node.
Optionally, the service node with abnormal connection state with the global flow control node includes: and the service node with the connection state of the global flow control node being the disconnection state.
Optionally, the service node with abnormal data transmission state between the global flow control node includes: a service node with a normal connection state and an abnormal data transmission state between the service node and the global flow control node; or the service node with the connection state between the global flow control node and the data transmission state being an abnormal connection state.
Optionally, the service node with abnormal data transmission state between the global flow control node includes: and the service node with the data retransmission times exceeding the preset threshold times between the global flow control node and the service node.
Optionally, the method further comprises: if the data retransmission times between the abnormal service node and the global flow control node do not exceed the preset threshold times, the abnormal service node receives a global flow penalty decision sent by the global flow control node for the last time; and performing global flow control on the abnormal service node based on the global flow penalty decision.
The embodiment of the application further provides a flow control method, which comprises the following steps:
In a distributed system, obtaining the number of abnormal service nodes with abnormal connection states or abnormal data transmission states between the global flow control nodes, wherein the global flow control nodes are used for performing global flow control on the service nodes in the distributed system;
And if the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, sending out a command for carrying out local flow control to all the service nodes in the distributed system or sending out a command for carrying out local flow control to the service nodes with normal connection state and normal data transmission state with the global flow control node.
The embodiment of the application additionally provides a flow control method, which comprises the following steps:
Obtaining a connection state or a data transmission state between a service node and a global flow control node in a distributed system, wherein the global flow control node is a node for performing global flow control on the service node in the distributed system;
if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node;
and obtaining a local flow control target parameter provided by a service node management node, and carrying out local flow control on the abnormal service node by utilizing the local flow control target parameter.
An embodiment of the present application provides a flow control system, including: global flow control nodes, service nodes in the distributed system, service node management nodes;
the global flow control node is used for performing global flow control on the service node in the distributed system based on the global flow control parameter;
The service node management node is used for obtaining the number of the service nodes by connecting with the service nodes; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on an abnormal service node, and providing the local flow control target parameter for the service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
The service node is configured to obtain a connection state or a data transmission state between the service node and the global flow control node in the distributed system, and determine whether the connection state or the data transmission state is abnormal; if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node; and obtaining a local flow control target parameter provided by a service node management node, and carrying out local flow control on the abnormal service node by utilizing the local flow control target parameter.
The embodiment of the application further provides a flow control system, which comprises: a service node in the distributed system;
the service nodes in the distributed system are provided with flow control state machines; the flow control state machine is used for judging whether the connection state or the data transmission state between the service node and the global flow control node is abnormal; the global flow control node is a node for performing global flow control on a service node in the distributed system;
And the flow control state of the abnormal service node is set to be a local flow control state when the connection state between the service node and the global flow control node is abnormal or the data transmission state is abnormal; and when the data retransmission times in the data transmission state do not exceed the preset threshold times, setting the state of the abnormal service node to be a state for receiving the global flow penalty decision sent by the global flow control node last time.
An embodiment of the present application provides a flow control device, including:
A first parameter obtaining unit, configured to obtain the number of service nodes in a distributed system and a global flow control parameter, where the global flow control parameter is a parameter used by a global flow control node in the distributed system to perform global flow control on the service nodes;
A second parameter obtaining unit, configured to obtain, according to the number of service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control on an abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
And the providing unit is used for providing the local flow control target parameter to the service node so that the service node can perform local flow control on the abnormal service node.
The embodiment of the application further provides a flow control device, which comprises:
an abnormal service node number obtaining unit, configured to obtain, in a distributed system, the number of abnormal service nodes having an abnormal connection state or an abnormal data transmission state with a global traffic control node, where the global traffic control node is a node for performing global traffic control on service nodes in the distributed system;
And the local flow control instruction sending unit is used for sending out an instruction for carrying out local flow control to all the service nodes in the distributed system or sending out an instruction for carrying out local flow control to the service nodes with normal connection state and normal data transmission state between the service nodes and the global flow control node if the number of the abnormal service nodes meets the condition for carrying out local flow control to all the service nodes in the distributed system.
The embodiment of the application additionally provides a flow control device, which comprises:
the system comprises a state obtaining unit, a global flow control node and a state processing unit, wherein the state obtaining unit is used for obtaining a connection state or a data transmission state between a service node and the global flow control node in a distributed system, and the global flow control node is used for performing global flow control on the service node in the distributed system;
a confirmation unit, configured to confirm, as an abnormal service node, a service node having an abnormal connection state or an abnormal data transmission state with the global flow control node if the connection state or the data transmission state is abnormal;
And the local flow control unit is used for obtaining the local flow control target parameter provided by the service node management node and carrying out local flow control on the abnormal service node by utilizing the local flow control target parameter.
An embodiment of the present application provides an electronic device, including:
A processor;
And a memory for storing a computer program that is executed by the processor to perform the three flow control methods.
An embodiment of the present application provides a computer storage medium storing a computer program that is executed by a processor to perform the above three flow control methods.
Compared with the prior art, the application has the following advantages:
The embodiment of the application provides a flow control method, which comprises the following steps: obtaining the number of service nodes and global flow control parameters in a distributed system, wherein the global flow control parameters are parameters used by the global flow control nodes in the distributed system for performing global flow control on the service nodes; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node; and providing the local flow control target parameter to the service node so that the service node can perform local flow control on the abnormal service node. According to the method, the local flow control target parameters are obtained through the number of the service nodes and the global flow control parameters in the distributed system, and when the connection state or the data transmission state between the service nodes and the global flow control nodes in the distributed system is abnormal, the local flow control is performed by using the local flow control target parameters aiming at the abnormal service nodes.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a schematic application scenario diagram of a flow control method according to a first embodiment of the present application.
Fig. 2 is a flow chart of a flow control method according to a second embodiment of the present application.
Fig. 3 is a schematic diagram of a flow control state machine according to a second embodiment of the present application.
Fig. 4 is a flow chart of a flow control method according to a third embodiment of the present application.
Fig. 5 is a flowchart of a flow control method according to a fourth embodiment of the present application.
Fig. 6 is a schematic diagram of a flow control device according to a seventh embodiment of the present application.
Fig. 7 is a schematic diagram of a flow control device according to an eighth embodiment of the present application.
Fig. 8 is a schematic view of a flow control device according to a ninth embodiment of the present application.
Fig. 9 is a schematic diagram of a flow control electronic device according to a tenth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present application may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present application is not limited to the specific embodiments disclosed below.
In order to more clearly show the flow control method provided by the present application, an application scenario of the flow control method provided by the present application is introduced, which is a first embodiment of the present application. The flow control method provided by the application can be applied to the scene of flow control on a plurality of service nodes in a distributed system.
Multiple service nodes in a distributed system may refer to servers for serving multiple users, each serving a single user. For example, when a plurality of users commonly access the same website, a server is provided in advance for each of the plurality of users, and the server can provide access data for the users. In the process that users visit websites, the visit flow of all users needs to be limited so as to ensure that the servers of the websites can normally provide services for the users. In a distributed system, one flow value is set as a flow value that restricts access flows to all users. Assuming that ten users currently visit a website at the same time, the flow value of the website is 100M/S, and then the flow distributed to each service node is 10M/S.
Specifically, in the distributed system, a global flow control node is set to perform global flow control on a plurality of service nodes, so that the access flow values of the service nodes corresponding to all current access users are ensured to be the flow values. The flow value is a parameter used by the global flow control node to perform global flow control on the plurality of service nodes, i.e., a global flow control parameter. The global flow control node is a node for performing global flow control on a service node in the distributed system. Global flow control refers to flow control by a service node in a distributed system through a global flow control node. Fig. 1 is a schematic view of an application scenario of a flow control method of a distributed system, and fig. 1 can also illustrate a flow control system according to a fifth embodiment of the present application. In the distributed system, the global flow control node is respectively connected with a plurality of service nodes and can transmit data. In fig. 1, where there are ten service nodes, the global flow control node may be referred to as a proportional-integral-derivative controller. Of course, in the case where the global flow control node is normally connected to the service nodes and the data transmission is kept in a normal state, each service node can be subjected to global flow control by the global flow control node.
As shown in fig. 1, a service node management node is provided in the distributed system, where the service node management node is configured to manage a plurality of service nodes in the distributed system, and can obtain the number information of the service nodes in the distributed system in real time.
The distributed system is mainly used for obtaining the local flow control target parameters used for carrying out local flow control on abnormal service nodes when the connection state or the data transmission state between the service nodes and the global flow control nodes in the distributed system is abnormal according to the number of the service nodes and the global flow control parameters by setting the service node management nodes and obtaining the number information of the service nodes in the distributed system.
For example, when the service node 1 and the global flow control node in fig. 1 cannot normally perform data transmission, the service node 1 cannot perform global flow control through the global flow control node, and the service node performs local flow control on the service node 1. Specifically, each service node is configured with a local flow control node, where the local flow control node may refer to a local flow controller, so as to perform local flow control on the service node when the service node and the global flow control node cannot perform data transmission. Local flow control refers to flow control by a service node in a distributed system through a local flow control node.
When the local flow control node performs local flow control on the service node 1, it is necessary to perform local flow control based on the local flow control target parameter. The local flow control target parameter is a quotient of the global flow control parameter and a number of service nodes in the current distributed system. It should be noted that the local flow control target parameter may be obtained by the service node 1.
In the prior art, when a service node and a global flow control node cannot perform normal data transmission, a local flow control threshold needs to be set so that a local flow controller performs local flow control on the service node. Since the number of service nodes in a distributed system may change over time, it is difficult to select a local flow control threshold in this manner in the prior art in order to maintain the stability of the global flow control of the distributed system.
In the embodiment, the local flow control target parameters are obtained through the number of the service nodes and the global flow control parameters in the distributed system, and when the connection state or the data transmission state between one or some service nodes and the global flow control nodes in the distributed system is abnormal, the local flow control is performed by using the local flow control target parameters aiming at the abnormal service nodes.
It should be noted that this embodiment is only one embodiment of an application scenario, and this application scenario embodiment is provided for the purpose of facilitating understanding of the flow control method according to the embodiment of the present application, and is not intended to limit the flow control method according to the embodiment of the present application.
The application provides three flow control methods, devices, electronic equipment and computer storage media. The application also provides two flow control systems, and the following is a specific embodiment.
As shown in fig. 2, a flow chart of a flow control method according to a second embodiment of the present application is provided, and the method includes the following steps.
Step S201: the method comprises the steps of obtaining the number of service nodes and global flow control parameters in a distributed system, wherein the global flow control parameters are parameters used by the global flow control nodes in the distributed system for performing global flow control on the service nodes.
As a first step of the flow control method in this embodiment, the number of service nodes and the global flow control parameter in the distributed system are obtained, and the number of service nodes and the global flow control parameter in the distributed system are used for subsequently obtaining the local flow control target parameter. This embodiment is that the service node management node is the execution subject, and the execution subject of the following third embodiment is also the service node management node.
Before describing the flow control method in this embodiment, a flow control system will be described first. The flow control system includes: global flow control nodes, service nodes in the distributed system, service node management nodes.
And the global flow control node is used for performing global flow control on the service nodes in the distributed system based on the global flow control parameters. The global flow control node may be referred to as a proportional-integral-derivative controller. Specifically, the global flow control node realizes global flow control by connecting with a service node in the distributed system and transmitting data. The global flow control parameter is a parameter used by the global flow control node to perform global flow control on a service node in the distributed system.
The service node management node is used for obtaining the number of the service nodes by connecting with the service nodes; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on an abnormal service node, and providing the local flow control target parameter for the service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node.
The service node is used for obtaining a connection state or a data transmission state between the service node and the global flow control node in the distributed system and judging whether the connection state or the data transmission state is abnormal or not; if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node; and obtaining a local flow control target parameter provided by a service node management node, and carrying out local flow control on the abnormal service node by utilizing the local flow control target parameter.
Multiple service nodes in a distributed system may refer to servers for serving multiple users, each serving a single user. For example, when a plurality of users commonly access the same website, a server is provided in advance for each of the plurality of users, and the server can provide access data for the users. In the process that users visit websites, the visit flow of all users needs to be limited so as to ensure that the servers of the websites can normally provide services for the users. In a distributed system, one flow value is set as a flow value that restricts access flows to all users. The flow value is the global flow control parameter.
Specifically, each service node is configured with a local flow control node, where the local flow control node may refer to a local flow controller, so as to perform local flow control on the service node when the service node and the global flow control node cannot perform data transmission. Local flow control refers to flow control by a service node in a distributed system through a local flow control node.
In the above-described flow control system, it has been explained that the number of service nodes in the distributed system is obtained based on the service node management node, specifically, the service node management node obtains the number of service nodes by connecting with each service node.
When an abnormality occurs in the connection state or data transmission state between a certain service node and a global flow control node, local flow control is performed for the abnormal service node. In the above-described flow control system, it has been described that the local flow control node performs local flow control for the abnormal service node.
The abnormal connection state between the service node and the global flow control node comprises: the connection state between the service node and the global flow control node is a disconnected state.
An anomaly in a data transmission state between a service node and a global flow control node, comprising: the connection state between the service node and the global flow control node is a normal connection state, and the data transmission state is an abnormal state; or the connection state between the service node and the global flow control node is an abnormal connection state, and the data transmission state is an abnormal state.
Of course, before the local flow control is performed on the service node, in order to further ensure that the service node is actually "lost" to the global flow control node, but not a temporary connection abnormality caused by short-time network jitter, the number of data retransmission between the service node and the global flow control node is used as a criterion for determining that the service node is abnormally connected to the global flow control node, for example, the number of data retransmission may exceed a preset threshold number, and in this case, the service node may be used as the service node performing the local flow control, that is, the node may be identified as an abnormal service node. The data retransmission times are adopted as the judging standard for judging the abnormal connection between the service node and the global flow control node, and are caused by the abnormal temporary connection caused by short-time network jitter, so that the data retransmission times between the service node and the global flow control node are generally less, namely the service node is normally connected with the global flow control node again, and the data retransmission times required by the normal data transmission state do not exceed the preset threshold times. Assuming that a service node with a temporary connection abnormality caused by a short-time network jitter is defined as a "false abnormal service node", a service node with an abnormality in a connection state with a global flow control node or a data transmission state is defined as a "true abnormal service node", by setting the number of data retransmission times, the "false abnormal service node" can be distinguished from the "true abnormal service node", and local flow control is also performed for a service node with a temporary connection abnormality caused by a short-time network jitter as in the related art.
In order to identify a service node with a temporary connection abnormality caused by a short-time network jitter, a service node in a distributed system is provided with a flow control state machine, as shown in fig. 3, which is a schematic diagram of the flow control state machine, and the flow control state machine is used for dividing the service node into three states, namely: the traffic control state machine divides the states of the service nodes by obtaining the connection state or the data transmission state between the service nodes and the global traffic control node or whether the connection state or the data transmission state between the service nodes and the global traffic control node is abnormal, and if the connection state or the data transmission state between the service nodes and the global traffic control node is abnormal, the service nodes enter the local traffic control state; if the connection state or the data transmission state between the service node and the global flow control node is not abnormal and the temporary connection abnormality caused by network jitter does not occur, the service node is in the global flow control state; if the service node is abnormal in temporary connection with the global flow control node due to network jitter, the service node enters a transition state. For the service node entering the transition state, the service node receives the global flow penalty decision sent by the global flow control node for the last time, and performs global flow control on the service node based on the global flow penalty decision. Specifically, the global traffic penalty decision refers to a policy how the service node performs traffic control when the global decision cannot be obtained when the traffic control is performed in the distributed system. Global decisions refer to the delay of requests by each service node for a specified time, or the QPS quota for flow control, QPS being the query rate per second, is a measure of how much traffic a particular query server handles in a specified time. Specifically, the global decision is to calculate, by using the sum of the traffic reported by the service node every second as an input and through a PID algorithm, that the next second request needs to be delayed for a specified time before being executed.
After performing local flow control on the abnormal service node, if the connection state between the abnormal service node and the global flow control node is recovered to be normal and the data transmission state is recovered to be normal, the service node management node sends an instruction for performing global flow control on the recovered service node to the global flow control node.
In the above-described portion of the flow control system, the service node management node obtains the number of service nodes by connecting with the service nodes.
Meanwhile, the service node management node can also obtain the number of abnormal service nodes with abnormal connection states or data transmission states between the service node management node and the global flow control node, and if the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, the service node management node sends out a command for carrying out local flow control to all the service nodes in the distributed system or sends out a command for carrying out local flow control to the service nodes with normal connection states and normal data transmission states between the service node management node and the global flow control node.
The number of abnormal service nodes satisfying the condition that all service nodes in the distributed system perform local flow control may be: the ratio of the number of abnormal service nodes to the number of service nodes satisfies a preset ratio threshold condition. For example, if the number of service nodes is ten, if six service nodes are currently in the local flow control state, and the ratio threshold of the number of preset abnormal service nodes to the number of service nodes is 0.5, then all the ten service nodes enter the local flow control state.
Specifically, each service node in the service nodes may be configured with a local flow control node, where the local flow control node is configured to perform local flow control on an abnormal service node when an abnormal connection state or a data transmission state between the corresponding service node and the global flow control node occurs.
Step S202: according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node.
Specifically, as the local flow control target parameter used for local flow control for the abnormal service node according to the number of service nodes and the global flow control parameter, the following may be obtained:
first, the quotient between the global flow control parameter and the number of service nodes is obtained by multiplying the global flow control parameter and the number of service nodes.
And then, confirming the quotient obtained by calculation as a local flow control target parameter used for carrying out local flow control on the abnormal service node when the connection state or the data transmission state between the service node and the global flow control node in the distributed system is abnormal.
More specifically, according to the number of service nodes and the global flow control parameter, the local flow control target parameter used for performing local flow control on the abnormal service node is obtained, which may be:
First, a connection state or a data transmission state between a service node and a global flow control node in a distributed system is obtained.
And then, the service node judges whether the connection state or the data transmission state is abnormal, and the service node provides a judging result to the service node management node after judging. If the connection state or the data transmission state is abnormal, the service node management node obtains a local flow control target parameter used for carrying out local flow control on the abnormal service node according to the number of the service nodes and the global flow control parameter.
Step S203: and providing the local flow control target parameters to the service node so that the service node can perform local flow control on the abnormal service node.
After obtaining the local flow control target parameter, the service node management node provides the local flow control target parameter to the service node so that the service node can perform local flow control on the abnormal service node.
Specifically, the local flow control by the service node for the abnormal service node is described as follows.
Since each service node in the service nodes is correspondingly configured with a local flow control node, the local flow control node is used for performing local flow control on the abnormal service node when the corresponding service node is confirmed to be the abnormal service node.
Therefore, the service node management node provides the local flow control target parameter to the service node, so that the service node can perform local flow control on the abnormal service node, which may be:
first, the local flow control target parameter is provided to the local flow control node corresponding to the abnormal service node. And then, the local flow control node performs local flow control on the abnormal service node based on the local flow control target parameter.
Therefore, after the local flow control target parameter is obtained, the local flow control node can realize the local flow control on the abnormal service node.
The application obtains the local flow control target parameters through the number of the service nodes and the global flow control parameters in the distributed system, and when the connection state or the data transmission state between the service nodes and the global flow control nodes in the distributed system is abnormal, uses the local flow control target parameters to carry out local flow control on the abnormal service nodes.
A third embodiment of the present application provides another flow control method. Since this embodiment has been described in detail in the second embodiment, the description herein is relatively simple, and the relevant points will be referred to the description of the relevant portions of the second embodiment. The embodiments described below are merely illustrative. Fig. 4 is a flowchart of another flow control method according to the third embodiment of the present application, and is described below with reference to fig. 4.
A third embodiment of the present application provides a flow control method including the following steps.
Step S401: in the distributed system, the number of abnormal service nodes with abnormal connection states or abnormal data transmission states between the global flow control nodes is obtained, and the global flow control nodes are used for performing global flow control on the service nodes in the distributed system.
Step S402: if the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, an instruction for carrying out local flow control is sent to all the service nodes in the distributed system, or an instruction for carrying out local flow control is sent to the service nodes which are normal in connection state with the global flow control node and normal in data transmission state.
The fourth embodiment of the present application provides still another flow control method. Since this embodiment has been described in detail in the second embodiment, the description herein is relatively simple, and the execution subject of this embodiment is a service node. For the matters, reference is made to the explanation of the relevant portions of the second embodiment. The embodiments described below are merely illustrative. As shown in fig. 5, a flow chart of another flow control method according to a fourth embodiment of the present application is described below with reference to fig. 5.
A fourth embodiment of the present application provides a flow control method including the following steps.
Step S501: and obtaining a connection state or a data transmission state between a service node and a global flow control node in the distributed system, wherein the global flow control node is a node for performing global flow control on the service node in the distributed system.
Step S502: if the connection state is abnormal or the data transmission state is abnormal, the service node which is abnormal with the connection state or the data transmission state between the global flow control node and the service node is confirmed to be the abnormal service node.
Step S503: and obtaining the local flow control target parameters provided by the service node management node, and performing local flow control on the abnormal service node by utilizing the local flow control target parameters.
A fifth embodiment of the present application provides a flow control system. Since this embodiment has been described in detail in the second embodiment, the description herein is relatively simple, and the relevant points will be referred to the description of the relevant portions of the second embodiment. The embodiments described below are merely illustrative.
The present embodiment provides a flow control system including: global flow control nodes, service nodes in the distributed system, service node management nodes;
the global flow control node is used for performing global flow control on the service node in the distributed system based on the global flow control parameter;
The service node management node is used for obtaining the number of the service nodes by connecting with the service nodes; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on an abnormal service node, and providing the local flow control target parameter for the service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
The service node is configured to obtain a connection state or a data transmission state between the service node and the global flow control node in the distributed system, and determine whether the connection state or the data transmission state is abnormal; if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node; and obtaining a local flow control target parameter provided by a service node management node, and carrying out local flow control on the abnormal service node by utilizing the local flow control target parameter.
A sixth embodiment of the present application provides another flow control system. Since the relevant portions of this embodiment have been described in detail in the second embodiment, the description herein is relatively simple, and the relevant portions will be described with reference to the relevant portions of the second embodiment. The embodiments described below are merely illustrative.
The present embodiment provides a flow control system including: a service node in the distributed system;
the service nodes in the distributed system are provided with flow control state machines; the flow control state machine is used for judging whether the connection state or the data transmission state between the service node and the global flow control node is abnormal; the global flow control node is a node for performing global flow control on a service node in the distributed system;
And the flow control state of the abnormal service node is set to be a local flow control state when the connection state between the service node and the global flow control node is abnormal or the data transmission state is abnormal; and when the data retransmission times in the data transmission state do not exceed the preset threshold times, setting the state of the abnormal service node to be a state for receiving the global flow penalty decision sent by the global flow control node last time.
In the second embodiment described above, a flow control method is provided, and in response thereto, a seventh embodiment of the present application provides a flow control device. Fig. 6 is a schematic diagram of a flow control device according to a seventh embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The present embodiment provides a flow control device including:
a first parameter obtaining unit 601, configured to obtain the number of service nodes in a distributed system and a global flow control parameter, where the global flow control parameter is a parameter used by a global flow control node in the distributed system to perform global flow control on the service nodes;
a second parameter obtaining unit 602, configured to obtain, according to the number of service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control on an abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
And the providing unit 603 is configured to provide the local flow control target parameter to the service node, so that the service node performs local flow control on the abnormal service node.
Optionally, the method further comprises: the abnormal service node quantity obtaining unit and the instruction issuing unit; the abnormal service node number obtaining unit is used for obtaining the number of the abnormal service nodes;
And the instruction sending unit is used for sending out an instruction for performing local flow control to all the service nodes in the distributed system or sending out an instruction for performing local flow control to the service nodes with normal connection state and normal data transmission state between the service nodes and the global flow control node if the number of the abnormal service nodes meets the condition for performing local flow control to all the service nodes in the distributed system.
Optionally, the number of abnormal service nodes satisfies a condition for performing local flow control on all service nodes in the distributed system, including: the ratio of the number of the abnormal service nodes to the number of the service nodes meets a preset ratio threshold condition.
Optionally, the second parameter obtaining unit is specifically configured to:
The global flow control parameter and the number of the service nodes are made to be a quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
And confirming the quotient as a local flow control target parameter used for carrying out local flow control on the abnormal service node.
Optionally, each service node in the service nodes is correspondingly configured with a local flow control node, and the local flow control node is used for performing local flow control on the abnormal service node when the corresponding service node is confirmed to be the abnormal service node.
Optionally, the providing unit is specifically configured to:
providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes;
And the local flow control node performs local flow control on the abnormal service node based on the local flow control target parameter.
Optionally, the second parameter obtaining unit is specifically configured to: obtaining abnormal information of abnormal connection state or abnormal data transmission state between the abnormal service node and the global flow control node;
And based on the abnormal information, obtaining local flow control target parameters used for carrying out local flow control on the abnormal service nodes by utilizing the number of the service nodes and the global flow control parameters.
Optionally, the method further comprises: a recovery unit; the recovery unit is specifically configured to: after the local flow control is performed on the abnormal service node, if the connection state between the abnormal service node and the global flow control node is recovered to be normal and the data transmission state is recovered to be normal, a command for performing global flow control on the recovered service node is sent to the global flow control node.
Optionally, the service node with abnormal connection state with the global flow control node includes: and the service node with the connection state of the global flow control node being the disconnection state.
Optionally, the service node with abnormal data transmission state between the global flow control node includes: a service node with a normal connection state and an abnormal data transmission state between the service node and the global flow control node; or the service node with the connection state between the global flow control node and the data transmission state being an abnormal connection state.
Optionally, the service node with abnormal data transmission state between the global flow control node includes: and the service node with the data retransmission times exceeding the preset threshold times between the global flow control node and the service node.
Optionally, the system further comprises a penalty decision unit; the punishment decision unit is specifically configured to: if the data retransmission times between the abnormal service node and the global flow control node do not exceed the preset threshold times, the abnormal service node receives a global flow penalty decision sent by the global flow control node for the last time; and performing global flow control on the abnormal service node based on the global flow penalty decision.
In the third embodiment described above, a flow control method is provided, and in response thereto, an eighth embodiment of the present application provides a flow control device. Fig. 7 is a schematic diagram of a flow control device according to an eighth embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The present embodiment provides a flow control device including:
An abnormal service node number obtaining unit 701, configured to obtain, in a distributed system, the number of abnormal service nodes having an abnormal connection state or an abnormal data transmission state with a global traffic control node, where the global traffic control node is a node for performing global traffic control on service nodes in the distributed system;
And the local flow control instruction sending unit 702 is configured to send an instruction for performing local flow control to all service nodes in the distributed system, or send an instruction for performing local flow control to a service node with normal connection state and normal data transmission state with the global flow control node, if the number of the abnormal service nodes meets the condition for performing local flow control to all service nodes in the distributed system.
In the fourth embodiment described above, there is provided a flow control method, and in correspondence thereto, a ninth embodiment of the present application provides a flow control device. Fig. 8 is a schematic view of a flow control device according to a ninth embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The present embodiment provides a flow control device including:
A state obtaining unit 801, configured to obtain a connection state or a data transmission state between a service node and a global flow control node in a distributed system, where the global flow control node is a node for performing global flow control on the service node in the distributed system;
A confirmation unit 802, configured to confirm, as an abnormal service node, a service node having an abnormal connection state or an abnormal data transmission state with the global flow control node if the connection state or the data transmission state is abnormal;
The local flow control unit 803 is configured to obtain a local flow control target parameter provided by a service node management node, and perform local flow control on the abnormal service node by using the local flow control target parameter.
The tenth embodiment of the present application also provides an electronic device corresponding to the methods of the second to fourth embodiments of the present application. Fig. 9 is a schematic diagram of an electronic device according to a tenth embodiment of the present application, as shown in fig. 9.
The electronic device includes:
a processor 901; and
A memory 902 for storing a computer program to be executed by a processor for performing the methods described in the second to fourth embodiments.
The eleventh embodiment of the present application also provides a storage medium storing a computer program that is executed by a processor to perform the methods described in the second to fourth embodiments, corresponding to the methods of the second to fourth embodiments.
While the application has been described in terms of preferred embodiments, it is not intended to be limiting, but rather, it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the application as defined by the appended claims.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
1. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
2. It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (21)

1. A flow control method, comprising:
Obtaining the number of service nodes and global flow control parameters in a distributed system, wherein the global flow control parameters are parameters used by the global flow control nodes in the distributed system for performing global flow control on the service nodes;
According to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
Providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes so that the local flow control nodes can perform local flow control on the abnormal service nodes; each of the service nodes is correspondingly configured with a local flow control node.
2. The method of claim 1, further comprising:
Obtaining the number of the abnormal service nodes;
And if the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, sending out a command for carrying out local flow control to all the service nodes in the distributed system or sending out a command for carrying out local flow control to the service nodes with normal connection state and normal data transmission state with the global flow control node.
3. The method of claim 2, the number of abnormal service nodes satisfying a condition for local flow control for all service nodes in the distributed system, comprising: the ratio of the number of the abnormal service nodes to the number of the service nodes meets a preset ratio threshold condition.
4. The method of claim 1, the obtaining, according to the number of service nodes and global flow control parameters, local flow control target parameters used for local flow control for an abnormal service node, comprising:
The global flow control parameter and the number of the service nodes are made to be a quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
And confirming the quotient as a local flow control target parameter used for carrying out local flow control on the abnormal service node.
5. The method of claim 1, the local flow control node being configured to perform local flow control for an abnormal service node when its corresponding service node is identified as the abnormal service node.
6. The method of claim 5, wherein the providing the local flow control target parameter to the local flow control node corresponding to the abnormal service node for the local flow control node to perform local flow control for the abnormal service node comprises:
providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes;
And the local flow control node performs local flow control on the abnormal service node based on the local flow control target parameter.
7. The method of claim 1, the obtaining, according to the number of service nodes and global flow control parameters, local flow control target parameters used for local flow control for an abnormal service node, comprising:
obtaining abnormal information of abnormal connection state or abnormal data transmission state between the abnormal service node and the global flow control node;
And based on the abnormal information, obtaining local flow control target parameters used for carrying out local flow control on the abnormal service nodes by utilizing the number of the service nodes and the global flow control parameters.
8. The method according to claim 1, after performing local flow control for an abnormal service node, if a connection state between the abnormal service node and the global flow control node is restored to be normal and a data transmission state is restored to be normal, issuing an instruction to perform global flow control for the restored service node to the global flow control node.
9. The method of claim 1, the service node having an abnormal connection state with the global flow control node, comprising: and the service node with the connection state of the global flow control node being the disconnection state.
10. The method of claim 1, the service node having an abnormality in a data transmission state with the global flow control node, comprising: a service node with a normal connection state and an abnormal data transmission state between the service node and the global flow control node; or the service node with the connection state between the global flow control node and the data transmission state being an abnormal connection state.
11. The method of claim 1, the service node having an abnormality in a data transmission state with the global flow control node, comprising: and the service node with the data retransmission times exceeding the preset threshold times between the global flow control node and the service node.
12. The method of claim 11, further comprising: if the data retransmission times between the abnormal service node and the global flow control node do not exceed the preset threshold times, the abnormal service node receives a global flow penalty decision sent by the global flow control node for the last time; and performing global flow control on the abnormal service node based on the global flow penalty decision.
13. A flow control method, comprising:
In a distributed system, obtaining the number of abnormal service nodes with abnormal connection states or abnormal data transmission states between the global flow control nodes, wherein the global flow control nodes are used for performing global flow control on the service nodes in the distributed system;
If the number of the abnormal service nodes meets the condition of carrying out local flow control on all the service nodes in the distributed system, sending a command for carrying out local flow control to all the service nodes in the distributed system or sending a command for carrying out local flow control to the service nodes with normal connection state and normal data transmission state with the global flow control node;
According to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node;
Providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes so that the local flow control nodes can perform local flow control on the abnormal service nodes; each of the service nodes is correspondingly configured with a local flow control node.
14. A flow control method, comprising:
Obtaining a connection state or a data transmission state between a service node and a global flow control node in a distributed system, wherein the global flow control node is a node for performing global flow control on the service node in the distributed system;
if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node;
Obtaining a local flow control target parameter provided by a service node management node, so that a local flow control node corresponding to the abnormal service node can perform local flow control on the abnormal service node by utilizing the local flow control target parameter;
wherein the local flow control target parameter is obtained according to the number of the service nodes and a global flow control parameter; each of the service nodes is correspondingly configured with a local flow control node.
15. A flow control system, comprising: global flow control nodes, service nodes in the distributed system, service node management nodes;
the global flow control node is used for performing global flow control on the service node in the distributed system based on the global flow control parameter;
The service node management node is used for obtaining the number of the service nodes by connecting with the service nodes; according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on an abnormal service node, and providing the local flow control target parameter for a local flow control node corresponding to the abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
The service node is configured to obtain a connection state or a data transmission state between the service node and the global flow control node in the distributed system, and determine whether the connection state or the data transmission state is abnormal; if the connection state is abnormal or the data transmission state is abnormal, confirming the service node with the abnormal connection state or the abnormal data transmission state between the global flow control node as an abnormal service node; obtaining a local flow control target parameter provided by a service node management node, so that the local flow control node can perform local flow control on the abnormal service node by utilizing the local flow control target parameter; each of the service nodes is correspondingly configured with a local flow control node.
16. A flow control system, comprising: a service node in the distributed system;
the service nodes in the distributed system are provided with flow control state machines; the flow control state machine is used for judging whether the connection state or the data transmission state between the service node and the global flow control node is abnormal; the global flow control node is a node for performing global flow control on a service node in the distributed system;
And the flow control state of the abnormal service node is set to be a local flow control state when the connection state between the service node and the global flow control node is abnormal or the data transmission state is abnormal; according to the number of the service nodes and the global flow control parameters, obtaining local flow control target parameters used for carrying out local flow control on the abnormal service nodes, and providing the local flow control target parameters for the local flow control nodes corresponding to the abnormal service nodes so as to enable the local flow control nodes to carry out local flow control on the abnormal service nodes; when the data retransmission times in the data transmission state do not exceed the preset threshold times, setting the state of the abnormal service node to be a state for receiving a global flow penalty decision sent by the global flow control node for the last time; each of the service nodes is correspondingly configured with a local flow control node.
17. A flow control device, comprising:
A first parameter obtaining unit, configured to obtain the number of service nodes in a distributed system and a global flow control parameter, where the global flow control parameter is a parameter used by a global flow control node in the distributed system to perform global flow control on the service nodes;
A second parameter obtaining unit, configured to obtain, according to the number of service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control on an abnormal service node; the abnormal service node is a service node with abnormal connection state or abnormal data transmission state between the distributed system and the global flow control node;
The providing unit is used for providing the local flow control target parameter to a local flow control node corresponding to the abnormal service node so that the local flow control node can perform local flow control on the abnormal service node; each of the service nodes is correspondingly configured with a local flow control node.
18. A flow control device, comprising:
an abnormal service node number obtaining unit, configured to obtain, in a distributed system, the number of abnormal service nodes having an abnormal connection state or an abnormal data transmission state with a global traffic control node, where the global traffic control node is a node for performing global traffic control on service nodes in the distributed system;
A local flow control instruction sending unit, configured to send an instruction for performing local flow control to all service nodes in the distributed system, or send an instruction for performing local flow control to a service node that has a normal connection state with a global flow control node and a normal data transmission state, if the number of the abnormal service nodes meets a condition for performing local flow control to all service nodes in the distributed system;
the device is also for: according to the number of the service nodes and the global flow control parameter, obtaining a local flow control target parameter used for carrying out local flow control on the abnormal service node; providing the local flow control target parameters to local flow control nodes corresponding to the abnormal service nodes so that the local flow control nodes can perform local flow control on the abnormal service nodes; each of the service nodes is correspondingly configured with a local flow control node.
19. A flow control device, comprising:
the system comprises a state obtaining unit, a global flow control node and a state processing unit, wherein the state obtaining unit is used for obtaining a connection state or a data transmission state between a service node and the global flow control node in a distributed system, and the global flow control node is used for performing global flow control on the service node in the distributed system;
a confirmation unit, configured to confirm, as an abnormal service node, a service node having an abnormal connection state or an abnormal data transmission state with the global flow control node if the connection state or the data transmission state is abnormal;
The local flow control unit is used for obtaining a local flow control target parameter provided by a service node management node so that a local flow control node corresponding to the abnormal service node can perform local flow control on the abnormal service node by utilizing the local flow control target parameter; wherein the local flow control target parameter is obtained according to the number of the service nodes and a global flow control parameter; each of the service nodes is correspondingly configured with a local flow control node.
20. An electronic device, comprising:
A processor;
A memory for storing a computer program to be run by a processor for performing the method of any one of claims 1-14.
21. A computer storage medium storing a computer program to be executed by a processor to perform the method of any one of claims 1-14.
CN202010733489.9A 2020-07-27 2020-07-27 Flow control method, device, system and electronic equipment Active CN113300966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010733489.9A CN113300966B (en) 2020-07-27 2020-07-27 Flow control method, device, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010733489.9A CN113300966B (en) 2020-07-27 2020-07-27 Flow control method, device, system and electronic equipment

Publications (2)

Publication Number Publication Date
CN113300966A CN113300966A (en) 2021-08-24
CN113300966B true CN113300966B (en) 2024-05-28

Family

ID=77318015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010733489.9A Active CN113300966B (en) 2020-07-27 2020-07-27 Flow control method, device, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN113300966B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115774715A (en) * 2022-07-19 2023-03-10 深圳市星卡软件技术开发有限公司 Method, device, equipment and medium for judging automobile diagnosis authenticity abnormal data

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935482A (en) * 2015-06-26 2015-09-23 曙光信息产业(北京)有限公司 Distributed monitoring system and method
CN106453118A (en) * 2016-11-11 2017-02-22 深圳市深信服电子科技有限公司 Flow control method and flow control system
CN106936729A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Control method, system and broadband access network system that a kind of terminal device is accessed
CN109889451A (en) * 2017-12-06 2019-06-14 贵州白山云科技股份有限公司 The system and method and server of network speed limit
CN110224944A (en) * 2018-08-01 2019-09-10 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method and device
CN110945837A (en) * 2017-06-01 2020-03-31 瑞典爱立信有限公司 Optimizing service node monitoring in SDN
CN110990200A (en) * 2019-11-26 2020-04-10 苏宁云计算有限公司 Flow switching method and device based on multi-activity data center
CN111245732A (en) * 2018-11-29 2020-06-05 阿里巴巴集团控股有限公司 Flow control method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9846618B2 (en) * 2013-12-27 2017-12-19 Oracle International Corporation System and method for supporting flow control in a distributed data grid
US10609131B2 (en) * 2018-01-12 2020-03-31 Citrix Systems, Inc. Non-disruptive enablement of highly available cloud computing services

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935482A (en) * 2015-06-26 2015-09-23 曙光信息产业(北京)有限公司 Distributed monitoring system and method
CN106936729A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Control method, system and broadband access network system that a kind of terminal device is accessed
CN106453118A (en) * 2016-11-11 2017-02-22 深圳市深信服电子科技有限公司 Flow control method and flow control system
CN110945837A (en) * 2017-06-01 2020-03-31 瑞典爱立信有限公司 Optimizing service node monitoring in SDN
CN109889451A (en) * 2017-12-06 2019-06-14 贵州白山云科技股份有限公司 The system and method and server of network speed limit
CN110224944A (en) * 2018-08-01 2019-09-10 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method and device
CN111245732A (en) * 2018-11-29 2020-06-05 阿里巴巴集团控股有限公司 Flow control method, device and equipment
CN110990200A (en) * 2019-11-26 2020-04-10 苏宁云计算有限公司 Flow switching method and device based on multi-activity data center

Also Published As

Publication number Publication date
CN113300966A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
JP6457447B2 (en) Data center network traffic scheduling method and apparatus
US10637916B2 (en) Method and device for storage resource allocation for video cloud storage
US9032073B1 (en) Operational status of network nodes
US9853906B2 (en) Network prioritization based on node-level attributes
JP2017538200A (en) Service addressing in a distributed environment
CN112948120A (en) Load balancing method, system, device and storage medium
US20210067534A1 (en) Counting syn packets
CN111641563B (en) Flow self-adaption method and system based on distributed scene
EP3993346B1 (en) Method and device for distributed data storage
CN105933185A (en) Method and device for determining connection abnormity type of router
WO2019058560A1 (en) Control device and control device system
CN113300966B (en) Flow control method, device, system and electronic equipment
CN105635124A (en) Flow control method and device
CN109117292A (en) A kind of method and apparatus and cluster storage system of cluster-based storage
CN112506896B (en) Data deleting method and device and electronic equipment
US11765042B2 (en) Traffic application amount calculation apparatus, method and program
JP2009025971A (en) Information processor and log data collection system
CN113905092B (en) Method, device, terminal and storage medium for determining reusable agent queue
CN110636104B (en) Resource request method, electronic device and storage medium
CN110995519B (en) Load balancing method and device
CN104967641B (en) A kind of method and device for realizing active and standby meta server data syn-chronization
CN112671590A (en) Data transmission method and device, electronic equipment and computer storage medium
CN112055058A (en) Data storage method and device and computer readable storage medium
CN118409714B (en) Data storage method, device, equipment and storage medium
JP2015032985A (en) Communication control device, communication control method, and communication control system

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40058609

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant