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

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

Info

Publication number
CN113300966A
CN113300966A CN202010733489.9A CN202010733489A CN113300966A CN 113300966 A CN113300966 A CN 113300966A CN 202010733489 A CN202010733489 A CN 202010733489A CN 113300966 A CN113300966 A CN 113300966A
Authority
CN
China
Prior art keywords
flow control
node
abnormal
service
service node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010733489.9A
Other languages
Chinese (zh)
Other versions
CN113300966B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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

An embodiment of the present application provides a flow control method, including: acquiring the number of service nodes and global flow control parameters in a 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 local flow control of the abnormal service node; and providing the local flow control target parameter for the service node so that the service node can perform local flow control for 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, 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 target parameters are used for local flow control aiming at the abnormal service nodes.

Description

Flow control method, device and system and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to three flow control methods, three flow control devices, and two flow control systems. The invention 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 a network, in which a plurality of service nodes are provided to handle various assisting tasks. Flow control is required in distributed systems to enable each service node to handle each assisted task normally. Generally, each service node is connected to a global flow control node, and when the connection state between each service node and the global flow control node is in a normal connection state, the global flow control node performs global flow control on each service node. But once a service node "loses" contact with the global flow control node, the service node can no longer be subject to global flow control by the global flow control node.
For the situation that a certain service node and a service node which cannot be controlled by the global flow control node perform global flow control, in the prior art, local flow control is directly started for the abnormal service node, and other service nodes which are normally connected with the global flow control node still perform global flow control by the global flow control node. For the situation that a certain service node or certain service nodes adopt local flow control, a local flow control threshold needs to be set and selected, but the threshold is difficult to select, and meanwhile, the selected local flow control threshold easily causes 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.
An embodiment of the present application provides a flow control method, including:
acquiring the number of service nodes in a distributed system and a global flow control parameter, wherein the global flow control parameter is a parameter used by a global flow control node in the distributed system for carrying out global flow control on the service nodes;
obtaining a local flow control target parameter used for local flow control aiming at an abnormal service node according to the number of the service nodes and the global flow control parameter; 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 for the abnormal service node.
Optionally, the method further includes:
obtaining the number of the abnormal service nodes;
and if the number of the abnormal service nodes meets the condition of performing local flow control on all service nodes in the distributed system, sending a command for performing local flow control to all service nodes in the distributed system, or sending a command for performing local flow control to the service nodes which are in normal connection state and normal data transmission state with the global flow control node.
Optionally, the number of the abnormal service nodes meets a condition of performing local flow control on all service nodes in the distributed system, and the condition includes: and 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 the service nodes and the global flow control parameter, a local flow control target parameter used for local flow control for an abnormal service node includes:
the global flow control parameter and the number of the service nodes are subjected to quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
and confirming the quotient value as a local flow control target parameter used for local flow control for the abnormal service node.
Optionally, each service node in the service nodes is configured with a local flow control node, where the local flow control node is configured to perform local flow control for an abnormal service node when the service node corresponding to the local flow control node is determined to be the abnormal service node.
Optionally, the providing the local flow control target parameter to the service node to provide the service node with local flow control for the abnormal service node includes:
providing the local flow control target parameter to a local flow control node corresponding to an abnormal service node;
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 the service nodes and the global flow control parameter, a local flow control target parameter used for local flow control for an abnormal service node includes:
obtaining abnormal information of abnormal connection state between the abnormal service node and the global flow control node or abnormal data transmission state;
and based on the abnormal information, obtaining a local flow control target parameter used for local flow control of the abnormal service node by using the number of the service nodes and the global flow control parameter.
Optionally, after performing local flow control on an 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 service node recovered to be normal is sent to the global flow control node.
Optionally, the service node whose connection state with the global traffic control node is abnormal includes: and the service node is in a disconnection state with the global flow control node.
Optionally, the service node that has an abnormal data transmission state with the global flow control node includes: the service node is connected with the global flow control node in a normal connection state and in an abnormal data transmission 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.
Optionally, the service node that has an abnormal data transmission state with the global flow control node includes: and the service node with the data retransmission times between the service node and the global flow control node exceeding the preset threshold times.
Optionally, the method further includes: 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 punishment decision sent by the global flow control node for the last time; and carrying out global flow control on the abnormal service node based on the global flow punishment decision.
An embodiment of the present application further provides a flow control method, including:
in a distributed system, acquiring the number of abnormal service nodes with abnormal connection state or abnormal data transmission state between the abnormal service nodes and a global flow control node, wherein the global flow control node is a node 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 performing local flow control on all service nodes in the distributed system, sending a command for performing local flow control to all service nodes in the distributed system, or sending a command for performing local flow control to the service nodes which are in normal connection state and normal data transmission state with the global flow control node.
An embodiment of the present application additionally provides another flow control method, including:
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 used for carrying out 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 and 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 performing local flow control on the abnormal service node by using the local flow control target parameter.
An embodiment of the present application provides a flow control system, including: a global flow control node, a service node in a distributed system, and a service node management node;
the global flow control node is used for carrying out global flow control on service nodes 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 through connection 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 local flow control of the abnormal service node, and providing the local flow control target parameter for the service nodes; 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 and 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 performing local flow control on the abnormal service node by using the local flow control target parameter.
An embodiment of the present application further provides a flow control system, including: a service node in the distributed system;
a flow control state machine is arranged on a service node in the distributed system; 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 or not; the global flow control node is used for carrying out global flow control on service nodes in the distributed system;
and the flow control state of the abnormal service node is set as 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 as the state of receiving the global flow punishment decision sent by the global flow control node for the 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 the service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control for 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 for the abnormal service node.
An embodiment of the present application additionally provides a flow control device, including:
an abnormal service node quantity obtaining unit, configured to obtain, in a distributed system, the quantity of abnormal service nodes in which a connection state with a global flow control node is abnormal or a data transmission state is abnormal, where the global flow control node is a node used to perform global flow control on service nodes in the distributed system;
and the local flow control instruction sending unit is used for sending an instruction for carrying out local flow control to all service nodes in the distributed system or sending an instruction for carrying out local flow control to the service nodes which are in a normal connection state and a normal data transmission state with the global flow control node if the number of the abnormal service nodes meets the condition of carrying out local flow control to all the service nodes in the distributed system.
An embodiment of the present application additionally provides another flow control device, including:
a state obtaining unit, 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 configured to perform global flow control on the service node in the distributed system;
a confirming unit, configured to confirm, as an abnormal service node, a service node in which a connection state with the global flow control node is abnormal or a data transmission state is abnormal, if the connection state is abnormal or the data transmission state is abnormal;
and the local flow control unit is used for acquiring a local flow control target parameter provided by the service node management node and performing local flow control on the abnormal service node by using 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 to be executed by the processor for performing the above-mentioned three flow control methods.
The embodiment of the application provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and the computer program is run by a processor to execute the three flow control methods.
Compared with the prior art, the method has the following advantages:
an embodiment of the present application provides a flow control method, including: acquiring the number of service nodes in a distributed system and a global flow control parameter, wherein the global flow control parameter is a parameter used by a global flow control node in the distributed system for carrying out global flow control on the service nodes; obtaining a local flow control target parameter used for local flow control aiming at an abnormal service node according to the number of the service nodes and the global flow control parameter; 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 for the abnormal service node. According to the method, the local flow control target parameters are obtained through the number of the service nodes in the distributed system and the global flow control parameters, 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 target parameters are used for local flow control 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 needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic view of an application scenario of a flow control method according to a first embodiment of the present application.
Fig. 2 is a flowchart 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 flowchart 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 view of a flow control device according to a seventh embodiment of the present application.
Fig. 7 is a schematic view 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. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In order to show the flow control method provided by the present application more clearly, an application scenario of the flow control method provided by the present application is introduced first, which is a first embodiment of the present application. The flow control method provided by the application can be applied to a scene of flow control of a plurality of service nodes in a distributed system.
The plurality of service nodes in the distributed system may refer to servers for serving a plurality of users, each service node serving a user individually. For example, when a plurality of users commonly access the same website, a server is provided for each of the plurality of users in advance, and the server can provide access data for the users. In the process of accessing the website by the user, the access flow of all users needs to be limited so as to ensure that the server of the website can normally provide services for the user. In the distributed system, one traffic value is set as a traffic value that restricts access traffic of all users. Assuming that ten users visit a certain website at the same time, and the traffic value of the website is 100M/S, the traffic allocated 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, and 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 for performing global flow control on the plurality of service nodes, namely 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. The global flow control means that the service nodes in the distributed system perform flow control through the global flow control nodes. 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 there are ten service nodes and the global flow control node may be referred to as a proportional-integral-derivative controller. Of course, each service node can be controlled globally by the global traffic control node in a state that the global traffic control node is normally connected with the service node and data transmission is kept normal.
As shown in fig. 1, a service node management node is provided in the distributed system, and the service node management node is configured to manage a plurality of service nodes in the distributed system and can obtain information about the number of service nodes in the distributed system in real time.
The distributed system is mainly used for obtaining local flow control target parameters used for local flow control aiming at 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 service node management nodes and obtaining the number information of the service nodes in the distributed system.
For example, when the serving node 1 and the global traffic control node in fig. 1 cannot perform data transmission normally, the serving node 1 cannot perform global traffic control through the global traffic control node, and the serving node may perform local traffic control for the serving 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, and is used to perform local flow control on the service node when the service node and the global flow control node cannot perform data transmission. The local flow control means that the service node in the distributed system performs flow control through the local flow control node.
When the local traffic control node performs local traffic control on the service node 1, the local traffic control needs to be performed based on the local traffic control target parameter. The local flow control target parameter is a quotient value of the global flow control parameter and the number of the service nodes in the current distributed system. It should be noted that the local flow control target parameter may be obtained by the serving 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 the distributed system may change at any time, it is difficult to select the 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 this embodiment, local flow control target parameters are obtained according to the number of service nodes in the distributed system and the global flow control parameters, and when a connection state or a data transmission state between one or some service nodes in the distributed system and the global flow control node is abnormal, local flow control is performed by using the local flow control target parameters for the abnormal service node.
It should be noted that this embodiment is only one embodiment of an application scenario, and the embodiment of this application scenario is provided to facilitate understanding of the flow control method of this embodiment, and is not used to limit the flow control method of this embodiment.
The application provides three flow control methods, devices, electronic equipment and computer storage media. The present application also provides two flow control systems, the following of which are specific examples.
Fig. 2 is a flowchart of a flow control method according to a second embodiment of the present application, where the method includes the following steps.
Step S201: and acquiring the number of the service nodes in the distributed system and a global flow control parameter, wherein the global flow control parameter is a parameter used by the global flow control node in the distributed system for carrying out global flow control on the service nodes.
As a first step of the flow control method in this embodiment, the number of service nodes in the distributed system and the global flow control parameter are obtained, and the number of service nodes in the distributed system and the global flow control parameter are used to subsequently obtain the local flow control target parameter. In this embodiment, the service node management node is an execution subject, and the execution subject of the third embodiment is also a service node management node.
Before describing the flow rate control method in the present embodiment, the flow rate control system will be described first. The flow control system includes: the system comprises a global flow control node, a service node in a distributed system and a service node management node.
And the global flow control node is used for carrying out 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 is connected to a service node in the distributed system and performs data transmission to realize global flow control. The global flow control parameter is a parameter used by the global flow control node for performing global flow control on the service node in the distributed system.
The service node management node is used for obtaining the number of the service nodes through connection 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 local flow control of the abnormal service node, and providing the local flow control target parameter for the service nodes; the abnormal service node is a service node in which the connection state between the distributed system and the global flow control node is abnormal or the data transmission state is abnormal.
The service node is used for acquiring 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 and 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 performing local flow control on the abnormal service node by using the local flow control target parameter.
The plurality of service nodes in the distributed system may refer to servers for serving a plurality of users, each service node serving a user individually. For example, when a plurality of users commonly access the same website, a server is provided for each of the plurality of users in advance, and the server can provide access data for the users. In the process of accessing the website by the user, the access flow of all users needs to be limited so as to ensure that the server of the website can normally provide services for the user. In the distributed system, one traffic value is set as a traffic value that restricts access traffic of 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, and is used to perform local flow control on the service node when the service node and the global flow control node cannot perform data transmission. The local flow control means that the service node in the distributed system performs flow control through the local flow control node.
In the above flow control system, it has been described that the number of service nodes in the distributed system is obtained based on the service node management node, and specifically, the service node management node obtains the number of service nodes by connecting with each service node.
And for a certain service node, when the connection state or the data transmission state between the service node and the global flow control node is abnormal, local flow control is carried out for the abnormal service node. In the above 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 includes: the connection state between the service node and the global flow control node is a disconnection state.
The data transmission state between the service node and the global flow control node is abnormal, and the method comprises the following steps: 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.
Naturally, before performing local flow control on a service node, in order to further ensure that the service node does "lose" connection for the global flow control node, rather than a temporary connection abnormality caused by network jitter in a short time, the number of data retransmissions between the service node and the global flow control node is used as a criterion for determining that the connection between the service node and the global flow control node is abnormal, for example, the number of data retransmissions exceeds a preset threshold number, and in this case, the service node may be regarded as a service node performing local flow control, that is, the service node may be determined to be an abnormal service node. The reason that the number of data retransmissions is used as a criterion for determining the connection abnormality between the service node and the global flow control node is that temporary connection abnormality is caused by network jitter in a short time, and generally, the number of data retransmissions between the service node and the global flow control node is small, that is, the number of data retransmissions required by the service node when the service node is normally connected to the global flow control node again and the data transmission state is normal does not exceed a preset threshold number. 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", and a service node with an abnormal connection state or data transmission state with a global flow control node is defined as a "true abnormal service node", the number of times of data retransmission is set, so that the "false abnormal service node" and the "true abnormal service node" can be distinguished, and local flow control can be avoided for the service node with the temporary connection abnormality caused by the short-time network jitter as in the prior art.
In order to identify a service node with a temporary connection abnormality caused by network jitter in a short time, a flow control state machine is provided in the service node in the distributed system, as shown in fig. 3, which is a schematic diagram of the flow control state machine, and the flow control state machine is configured to divide the service node into three states, respectively: the traffic control state machine divides the states of the service nodes by acquiring whether the connection state or the data transmission state between the service nodes and the global traffic control nodes is abnormal, and if the connection state or the data transmission state between the service nodes and the global traffic control nodes 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 is not abnormal due to network jitter, the service node is in the global flow control state; if the service node is in abnormal connection with the global flow control node temporarily due to network jitter, the service node enters a transition state. And for the service node entering the transition state, the service node receives the global flow punishment 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 punishment decision. Specifically, the global flow penalty decision refers to a policy how a service node performs flow control when the global decision cannot be obtained when the flow control is performed in the distributed system. The global decision means that the request of each service node is delayed for a specified time, or a QPS quota for performing flow control, where QPS, that is, a query rate per second, is a measure of how much traffic a specific query server processes within a specified time. Specifically, the global decision is to calculate that the next second of request needs to be delayed for a specified time before being executed by using the sum of the flow reported by the service node per second as input through a PID algorithm.
It should be noted that, 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 and the data transmission state is normal, the service node management node sends an instruction for performing global flow control on the service node that is recovered to be normal to the global flow control node.
In the above section describing the flow control system, the service node management node obtains the number of service nodes by connecting with the service node.
Meanwhile, the service node management node may also obtain the number of abnormal service nodes in which the connection state or the data transmission state between the service node management node and the global flow control node is abnormal, and if the number of the abnormal service nodes meets the condition of performing local flow control on all service nodes in the distributed system, the service node management node sends an instruction for performing local flow control to all service nodes in the distributed system, or sends an instruction for performing local flow control to a service node in which the connection state between the service node management node and the global flow control node is normal and the data transmission state is normal.
The condition that the number of the abnormal service nodes meets the condition that local flow control is performed on all service nodes in the distributed system may be: the ratio of the number of the abnormal service nodes to the number of the service nodes meets a preset ratio threshold condition. For example, if the number of the service nodes is ten, if six service nodes are currently in the local traffic control state, and the threshold value of the ratio of the number of the preset abnormal service nodes to the number of the service nodes is 0.5, then all the ten service nodes enter the local traffic control state at this time.
Specifically, each of 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 for an abnormal service node when a connection state or a data transmission state between the corresponding service node and the global flow control node is abnormal.
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 local flow control of the abnormal service node; the abnormal service node is a service node which is abnormal in connection state with the global flow control node or abnormal in data transmission state in the distributed system.
Specifically, as the local flow control target parameter used for local flow control for the abnormal service node is obtained according to the number of service nodes and the global flow control parameter, the following method may be used:
firstly, the global flow control parameter and the number of the service nodes are subjected to quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained.
And then, confirming the quotient value obtained by calculation as a local flow control target parameter used for local flow control aiming at an 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, the obtaining of 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 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 or not, and after the judgment, the service node provides the judgment result for the service node management node. And 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 local flow control aiming at 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 parameter for the service node so that the service node can perform local flow control for the abnormal service node.
And 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 for the abnormal service node.
Specifically, the service node performs local flow control for the abnormal service node as follows.
Since the above introduces that each service node in the service nodes is configured with one local flow control node, the local flow control node is configured to perform local flow control for the abnormal service node when the corresponding service node is determined 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 performs local flow control for the abnormal service node, where the local flow control target parameter may be:
firstly, local flow control target parameters are provided for local flow control nodes corresponding to abnormal service nodes. 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 local flow control on the abnormal service node.
According to the method, the local flow control target parameter is obtained through the number of the service nodes in the distributed system and the global flow control parameter, when the connection state or the data transmission state between the service nodes in the distributed system and the global flow control node is abnormal, the local flow control target parameter is used for local flow control aiming at the abnormal service node.
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 is relatively simple, and the relevant points can be referred to the description of the relevant parts of the second embodiment. The embodiments described below are merely illustrative. Fig. 4 is a flowchart of another flow control method according to a third embodiment of the present application, which is described below with reference to fig. 4.
A third embodiment of the present application provides a flow control method, which includes the following steps.
Step S401: in the distributed system, the number of abnormal service nodes with abnormal connection state or abnormal data transmission state between the service nodes and the global flow control node is obtained, and the global flow control node is used for carrying out global flow control on the service nodes in the distributed system.
Step S402: and if the number of the abnormal service nodes meets the condition of performing local flow control on all service nodes in the distributed system, sending a command of performing local flow control to all service nodes in the distributed system, or sending a command of performing local flow control to the service nodes which are in normal connection state and normal data transmission state with the global flow control node.
A fourth embodiment of the present application provides another flow control method. Since this embodiment has been described in detail in the second embodiment, the description is relatively simple here, and the execution subject of this embodiment is a service node. The relevant points can be found in the description of the relevant part of the second embodiment. The embodiments described below are merely illustrative. Fig. 5 is a flowchart of another flow control method according to a fourth embodiment of the present application, which is described below with reference to fig. 5.
A fourth embodiment of the present application provides a flow control method, which includes the following steps.
Step S501: and acquiring 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: and 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 and the service node as an abnormal service node.
Step S503: and obtaining a local flow control target parameter provided by the service node management node, and performing local flow control on the abnormal service node by using the local flow control target parameter.
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 is relatively simple, and the relevant points can be referred to the description of the relevant parts of the second embodiment. The embodiments described below are merely illustrative.
The present embodiment provides a flow control system, including: a global flow control node, a service node in a distributed system, and a service node management node;
the global flow control node is used for carrying out global flow control on service nodes 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 through connection 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 local flow control of the abnormal service node, and providing the local flow control target parameter for the service nodes; 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 and 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 performing local flow control on the abnormal service node by using 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 already been described in detail in the second embodiment, the description is relatively simple here, and the relevant portions can 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: a service node in the distributed system;
a flow control state machine is arranged on a service node in the distributed system; 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 or not; the global flow control node is used for carrying out global flow control on service nodes in the distributed system;
and the flow control state of the abnormal service node is set as 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 as the state of receiving the global flow punishment decision sent by the global flow control node for the last time.
In the second embodiment described above, a flow control method is provided, and a seventh embodiment of the present application provides a flow control device. Fig. 6 is a schematic view 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, they are described in a relatively simple manner, and reference may be made to some of the descriptions 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 the 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;
a providing unit 603, configured to provide the local flow control target parameter to the service node, so that the service node performs local flow control for the abnormal service node.
Optionally, the method further includes: an abnormal service node number obtaining unit and an instruction sending 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 an instruction for carrying out local flow control to all service nodes in the distributed system or sending an instruction for carrying out local flow control to the service nodes which are in 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 of carrying out local flow control to all service nodes in the distributed system.
Optionally, the number of the abnormal service nodes meets a condition of performing local flow control on all service nodes in the distributed system, and the condition includes: and 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 subjected to quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
and confirming the quotient value as a local flow control target parameter used for local flow control for the abnormal service node.
Optionally, each service node in the service nodes is configured with a local flow control node, where the local flow control node is configured to perform local flow control for an abnormal service node when the service node corresponding to the local flow control node is determined to be the abnormal service node.
Optionally, the providing unit is specifically configured to:
providing the local flow control target parameter to a local flow control node corresponding to an abnormal service node;
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 between the abnormal service node and the global flow control node or abnormal data transmission state;
and based on the abnormal information, obtaining a local flow control target parameter used for local flow control of the abnormal service node by using the number of the service nodes and the global flow control parameter.
Optionally, the method further includes: a recovery unit; the recovery unit is specifically configured to: after local flow control is carried out on an 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 carrying out global flow control on the service node recovered to be normal is sent to the global flow control node.
Optionally, the service node whose connection state with the global traffic control node is abnormal includes: and the service node is in a disconnection state with the global flow control node.
Optionally, the service node that has an abnormal data transmission state with the global flow control node includes: the service node is connected with the global flow control node in a normal connection state and in an abnormal data transmission 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.
Optionally, the service node that has an abnormal data transmission state with the global flow control node includes: and the service node with the data retransmission times between the service node and the global flow control node exceeding the preset threshold times.
Optionally, the system further comprises a penalty decision unit; the penalty 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 punishment decision sent by the global flow control node for the last time; and carrying out global flow control on the abnormal service node based on the global flow punishment decision.
In the third embodiment described above, a flow control method is provided, and correspondingly, an eighth embodiment of the present application provides a flow control device. Fig. 7 is a schematic view 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, they are described in a relatively simple manner, and reference may be made to some of the descriptions 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 whose connection states with a global flow control node are abnormal or whose data transmission states are abnormal, where the global flow control node is a node used to perform global flow control on service nodes in the distributed system;
a local flow control instruction issuing unit 702, configured to issue an instruction for performing local flow control to all service nodes in the distributed system, or issue an instruction for performing local flow control to a service node in which a connection state with a global flow control node is normal and a data transmission state is normal, if the number of the abnormal service nodes meets a condition that local flow control is performed on all service nodes in the distributed system.
In the fourth embodiment described above, a flow control method is provided, and correspondingly, 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, they are described in a relatively simple manner, and reference may be made to some of the descriptions 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 configured to perform global flow control on the service node in the distributed system;
a confirming unit 802, configured to confirm, as an abnormal service node, a service node with an abnormal connection state or an abnormal data transmission state between the global traffic control node and the service node, if the connection state or the data transmission state is abnormal;
a local traffic control unit 803, configured to obtain a local traffic control target parameter provided by a service node management node, and perform local traffic control on the abnormal service node by using the local traffic control target parameter.
Corresponding to the methods of the second to fourth embodiments of the present application, a tenth embodiment of the present application further provides an electronic device. As shown in fig. 9, fig. 9 is a schematic view of an electronic device according to a tenth embodiment of the present application.
The electronic device includes:
a processor 901; and
the memory 902 is used for storing a computer program, which is executed by the processor and executes the method described in the second to fourth embodiments.
Corresponding to the methods of the second to fourth embodiments of the present application, the eleventh embodiment of the present application further provides a storage medium storing a computer program, which is executed by a processor to execute the methods of the second to fourth embodiments.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, 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 method of flow control, comprising:
acquiring the number of service nodes in a distributed system and a global flow control parameter, wherein the global flow control parameter is a parameter used by a global flow control node in the distributed system for carrying out global flow control on the service nodes;
obtaining a local flow control target parameter used for local flow control aiming at an abnormal service node according to the number of the service nodes and the global flow control parameter; 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 for the abnormal service 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 performing local flow control on all service nodes in the distributed system, sending a command for performing local flow control to all service nodes in the distributed system, or sending a command for performing local flow control to the service nodes which are in normal connection state and normal data transmission state with the global flow control node.
3. The method of claim 2, wherein the number of abnormal service nodes satisfies a condition for local flow control for all service nodes in the distributed system, and comprises: and 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, wherein obtaining a local flow control target parameter used for local flow control for an abnormal service node according to the number of service nodes and the global flow control parameter comprises:
the global flow control parameter and the number of the service nodes are subjected to quotient, and a quotient value between the global flow control parameter and the number of the service nodes is obtained;
and confirming the quotient value as a local flow control target parameter used for local flow control for the abnormal service node.
5. The method of claim 1, wherein each of the service nodes configures a local traffic control node, and the local traffic control node is configured to perform local traffic control for an abnormal service node when the corresponding service node is determined to be the abnormal service node.
6. The method of claim 5, the providing the local flow control target parameter to the service node for local flow control by the service node for the abnormal service node, comprising:
providing the local flow control target parameter to a local flow control node corresponding to an abnormal service node;
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, wherein obtaining a local flow control target parameter used for local flow control for an abnormal service node according to the number of service nodes and the global flow control parameter comprises:
obtaining abnormal information of abnormal connection state between the abnormal service node and the global flow control node or abnormal data transmission state;
and based on the abnormal information, obtaining a local flow control target parameter used for local flow control of the abnormal service node by using the number of the service nodes and the global flow control parameter.
8. The method according to claim 1, wherein after performing local flow control for an abnormal service node, if the connection state between the abnormal service node and the global flow control node is recovered to normal and the data transmission state is recovered to normal, an instruction for performing global flow control on the service node recovered to normal is issued to the global flow control node.
9. The method of claim 1, wherein the service node having an abnormal connection state with the global flow control node comprises: and the service node is in a disconnection state with the global flow control node.
10. The method of claim 1, wherein the service node having an abnormal data transmission state with the global flow control node comprises: the service node is connected with the global flow control node in a normal connection state and in an abnormal data transmission 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.
11. The method of claim 1, wherein the service node having an abnormal data transmission state with the global flow control node comprises: and the service node with the data retransmission times between the service node and the global flow control node exceeding the preset threshold times.
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 punishment decision sent by the global flow control node for the last time; and carrying out global flow control on the abnormal service node based on the global flow punishment decision.
13. A method of flow control, comprising:
in a distributed system, acquiring the number of abnormal service nodes with abnormal connection state or abnormal data transmission state between the abnormal service nodes and a global flow control node, wherein the global flow control node is a node 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 performing local flow control on all service nodes in the distributed system, sending a command for performing local flow control to all service nodes in the distributed system, or sending a command for performing local flow control to the service nodes which are in normal connection state and normal data transmission state with the global flow control node.
14. A method of flow control, 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 used for carrying out 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 and 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 performing local flow control on the abnormal service node by using the local flow control target parameter.
15. A flow control system, comprising: a global flow control node, a service node in a distributed system, and a service node management node;
the global flow control node is used for carrying out global flow control on service nodes 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 through connection 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 local flow control of the abnormal service node, and providing the local flow control target parameter for the service nodes; 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 and 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 performing local flow control on the abnormal service node by using the local flow control target parameter.
16. A flow control system, comprising: a service node in the distributed system;
a flow control state machine is arranged on a service node in the distributed system; 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 or not; the global flow control node is used for carrying out global flow control on service nodes in the distributed system;
and the flow control state of the abnormal service node is set as 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 as the state of receiving the global flow punishment decision sent by the global flow control node for the last time.
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 the service nodes and the global flow control parameter, a local flow control target parameter used for performing local flow control for 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 for the abnormal service node.
18. A flow control device comprising:
an abnormal service node quantity obtaining unit, configured to obtain, in a distributed system, the quantity of abnormal service nodes in which a connection state with a global flow control node is abnormal or a data transmission state is abnormal, where the global flow control node is a node used to perform global flow control on service nodes in the distributed system;
and the local flow control instruction sending unit is used for sending an instruction for carrying out local flow control to all service nodes in the distributed system or sending an instruction for carrying out local flow control to the service nodes which are in a normal connection state and a normal data transmission state with the global flow control node if the number of the abnormal service nodes meets the condition of carrying out local flow control to all the service nodes in the distributed system.
19. A flow control device comprising:
a state obtaining unit, 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 configured to perform global flow control on the service node in the distributed system;
a confirming unit, configured to confirm, as an abnormal service node, a service node in which a connection state with the global flow control node is abnormal or a data transmission state is abnormal, if the connection state is abnormal or the data transmission state is abnormal;
and the local flow control unit is used for acquiring a local flow control target parameter provided by the service node management node and performing local flow control on the abnormal service node by using the local flow control target parameter.
20. An electronic device, comprising:
a processor;
a memory for storing a computer program for execution by the processor to perform the method of any one of claims 1 to 14.
21. A computer storage medium storing a computer program for execution by a processor to perform the method of any one of claims 1 to 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 true CN113300966A (en) 2021-08-24
CN113300966B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936211A (en) * 2022-07-19 2022-08-23 深圳市星卡软件技术开发有限公司 Automobile diagnosis data processing method, device, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150186181A1 (en) * 2013-12-27 2015-07-02 Oracle International Corporation System and method for supporting flow control in a distributed data grid
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
US20190222638A1 (en) * 2018-01-12 2019-07-18 Citrix Systems, Inc. Non-Disruptive Enablement of Highly Available Cloud Computing Services
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150186181A1 (en) * 2013-12-27 2015-07-02 Oracle International Corporation System and method for supporting flow control in a distributed data grid
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
US20190222638A1 (en) * 2018-01-12 2019-07-18 Citrix Systems, Inc. Non-Disruptive Enablement of Highly Available Cloud Computing Services
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936211A (en) * 2022-07-19 2022-08-23 深圳市星卡软件技术开发有限公司 Automobile diagnosis data processing method, device, equipment and medium
CN114936211B (en) * 2022-07-19 2022-11-01 深圳市星卡软件技术开发有限公司 Automobile diagnosis data processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN113300966B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US10637916B2 (en) Method and device for storage resource allocation for video cloud storage
CN108881512B (en) CTDB virtual IP balance distribution method, device, equipment and medium
CN109995842B (en) Grouping method and device for distributed server cluster
CN106713168B (en) Flow control method and system
CN109871225B (en) Electronic control unit ECU upgrading method and ECU
CN112948120A (en) Load balancing method, system, device and storage medium
CN110224943B (en) Flow service current limiting method based on URL, electronic equipment and computer storage medium
CN112261133A (en) CDN node control method, device, server and storage medium
CN109995787A (en) A kind of data processing method and relevant device
CN114443441B (en) Storage system management method, device and equipment and readable storage medium
CN112416594A (en) Micro-service distribution method, electronic equipment and computer storage medium
CN113300966B (en) Flow control method, device, system and electronic equipment
CN112667467A (en) Cluster self-adaptive current limiting method and device, computer equipment and storage medium
CN111506254B (en) Distributed storage system and management method and device thereof
US20210382872A1 (en) Blockchain-based Data Storage Method, Related Device and Storage Medium
CN113905092B (en) Method, device, terminal and storage medium for determining reusable agent queue
CN116016584A (en) Equipment data transfer method, equipment and medium based on Internet of things platform
US20230113776A1 (en) Traffic application amount calculation apparatus, method and program
CN110636104B (en) Resource request method, electronic device and storage medium
CN112055058A (en) Data storage method and device and computer readable storage medium
CN111934909A (en) Method and device for switching IP (Internet protocol) resources of host and standby machine, computer equipment and storage medium
CN110955579A (en) Ambari-based large data platform monitoring method
CN110417672B (en) Current limiting method and device
US9960957B2 (en) Methods for prioritizing failover of logical interfaces (LIFs) during a node outage and devices thereof
CN110532135B (en) Service migration method, system, equipment and storage medium of cluster 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