CN110380985B - Traffic control method, device, equipment and storage medium based on transaction link - Google Patents

Traffic control method, device, equipment and storage medium based on transaction link Download PDF

Info

Publication number
CN110380985B
CN110380985B CN201910714882.0A CN201910714882A CN110380985B CN 110380985 B CN110380985 B CN 110380985B CN 201910714882 A CN201910714882 A CN 201910714882A CN 110380985 B CN110380985 B CN 110380985B
Authority
CN
China
Prior art keywords
transaction
link
business
characteristic value
type
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
CN201910714882.0A
Other languages
Chinese (zh)
Other versions
CN110380985A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910714882.0A priority Critical patent/CN110380985B/en
Publication of CN110380985A publication Critical patent/CN110380985A/en
Application granted granted Critical
Publication of CN110380985B publication Critical patent/CN110380985B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • 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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification provides a traffic control method, a traffic control device, traffic control equipment and a traffic control storage medium based on a transaction link, wherein the traffic control method comprises the following steps: acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set; link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links; extracting a link characteristic value of the transaction link; determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster; and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster. The embodiment of the specification can realize flow control according to the traffic of a specific service scene.

Description

Traffic control method, device, equipment and storage medium based on transaction link
Technical Field
The present disclosure relates to the technical field of traffic control, and in particular, to a traffic control method, device, apparatus and storage medium based on a transaction link.
Background
In the micro-service era, the service scene is split according to the field model, and a complete service flow is often closed loop finally only through a plurality of inter-service message communication. While large-scale distributed clusters carry larger-scale concurrency, transactional links are also more intricate. Therefore, in the development of a high concurrency scenario, in order to ensure the stability of a distributed cluster, flow control is generally required.
However, in carrying out the present application, the inventors of the present application found that: existing throttling is typically balanced flow control for nodes without distinguishing between specific traffic scenarios. Thus, once the node-based balanced flow control is performed, a certain traffic scenario or certain traffic scenarios in which the transaction amount is small may be affected by being included in the amount control range.
Disclosure of Invention
An objective of the embodiments of the present disclosure is to provide a traffic control method, apparatus, device and storage medium based on a transaction link, so as to implement traffic control according to traffic volume of a specific traffic scenario.
To achieve the above object, in one aspect, an embodiment of the present disclosure provides a traffic control method based on a transaction link, including:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
In the traffic control method based on the transaction link provided in the embodiment of the present disclosure, after determining, according to the link characteristic value, a service transaction type to which the transaction link belongs, the method further includes:
and generating a real-time transaction call graph of the distributed cluster according to the business transaction type to which the transaction link belongs, and outputting the real-time transaction call graph in real time.
In the traffic control method based on the transaction link provided in the embodiment of the present disclosure, the extracting a link characteristic value of the transaction link includes:
selecting a transaction link;
extracting a calling characteristic value of each business transaction request in the transaction link;
and arranging the calling characteristic values according to the calling sequence to form the link characteristic value of the transaction link.
In the traffic control method based on the transaction link provided in the embodiment of the present disclosure, the determining, according to the link characteristic value, a service transaction type to which the transaction link belongs includes:
selecting a transaction link;
inquiring whether a business transaction type matched with a link characteristic value of the transaction link exists in a preset business transaction type characteristic database;
if the business transaction type matched with the link characteristic value of the transaction link exists, the transaction link is marked as the corresponding business transaction type, and the business volume of the corresponding business transaction type is updated.
In another aspect, embodiments of the present disclosure further provide a traffic control device based on a transaction link, including:
the request acquisition module is used for acquiring service transaction requests of application node services in the distributed cluster in real time to form a service transaction request set;
the link aggregation module is used for carrying out link aggregation on the business transaction requests in the business transaction request set so as to form one or more transaction links;
the feature extraction module is used for extracting link feature values of the transaction links;
the type identification module is used for determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and the flow control module is used for controlling the flow of the business transaction type in the initial application node in the distributed cluster when the traffic of one or more business transaction types meets the flow control trigger condition.
In the traffic control device based on the transaction link provided in the embodiment of the present disclosure, the traffic control device further includes:
and the graph output module is used for generating a real-time transaction call graph of the distributed cluster according to the business transaction type to which the transaction link belongs after determining the business transaction type to which the transaction link belongs according to the link characteristic value and outputting the real-time transaction call graph.
In the traffic control device based on a transaction link provided in the embodiments of the present disclosure, the extracting a link characteristic value of the transaction link includes:
selecting a transaction link;
extracting a calling characteristic value of each business transaction request in the transaction link;
and arranging the calling characteristic values according to the calling sequence to form the link characteristic value of the transaction link.
In the traffic control device based on a transaction link provided in the embodiments of the present disclosure, the determining, according to the link characteristic value, a service transaction type to which the transaction link belongs includes:
selecting a transaction link;
inquiring whether a business transaction type matched with a link characteristic value of the transaction link exists in a preset business transaction type characteristic database;
if the business transaction type matched with the link characteristic value of the transaction link exists, the transaction link is marked as the corresponding business transaction type, and the business volume of the corresponding business transaction type is updated.
In another aspect, embodiments of the present specification also provide a computer device including a memory, a processor, and a computer program stored on the memory, the computer program when executed by the processor performing the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
In another aspect, the present description also provides a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, in the traffic control method based on the transaction link in the embodiments of the present disclosure, real-time traffic monitoring for each service transaction type in the distributed cluster is implemented based on link tracking, and when one or more service transaction types of traffic meet the traffic control trigger condition, traffic control can be implemented on the service transaction type in the originating application node in the distributed cluster, so that traffic control according to the traffic of a specific service scenario is implemented, so that the control range of traffic control is limited to only those service transaction types with high concurrency, but not those service transaction types with low concurrency are not involved, and normal transaction processing of the service transaction types with low concurrency is not affected.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flow chart of a transaction link based flow control method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a transaction link in an embodiment of the present disclosure;
FIG. 3 is a schematic flow control diagram of a transaction link based flow control device according to an embodiment of the present disclosure;
FIG. 4 is a block diagram of a transaction link based flow control device provided in an embodiment of the present disclosure;
fig. 5 is a block diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
Referring to fig. 1, the transaction link-based flow control method of some embodiments of the present description may include the steps of:
s101, acquiring service transaction requests of application node services in the distributed cluster in real time to form a service transaction request set.
S102, carrying out link aggregation on the business transaction requests in the business transaction request set to form one or more transaction links.
S103, extracting the link characteristic value of the transaction link.
S104, determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster.
And S105, when the traffic volume of one or more business transaction types meets the flow control triggering condition, performing flow control on the business transaction type in an initial application node in the distributed cluster.
Therefore, in the traffic control method based on the transaction link in the above embodiment, the traffic of each service transaction type in the distributed cluster is monitored in real time based on the link tracking, and when the traffic of one or more service transaction types meets the traffic control trigger condition, the traffic of the service transaction type can be controlled in the initial application node in the distributed cluster, so that the traffic control according to the traffic of a specific service scene is realized, the control range of the traffic control is limited to the service transaction types with high concurrency, and the service transaction types with low concurrency are not involved, so that the normal transaction processing of the service transaction types with low concurrency is not affected.
In some embodiments of the present description, the service transaction request received by the application node may be obtained through an Interceptor (Interceptor) or a Filter (Filter). For example, in an exemplary embodiment, the service transaction request received by the application node may be intercepted by techniques such as byte code organization.
In general, application nodes in a distributed cluster may include front-end servers, back-end servers, databases, and the like. A transaction link comprises a plurality of service call links among a plurality of application nodes; meanwhile, the same application node may also relate to service calling links of a plurality of transaction links, and the specific implementation methods of the services called by each service calling link are generally different. Thus, for each application node, by collecting the service transaction requests received by the respective application nodes in the distributed cluster together to form a service transaction request set, it can be used for subsequent link aggregation. The protocol adopted by the business transaction request can be RPC protocol or http protocol, etc.
Since each business transaction request contains a transaction identifier for uniquely identifying the transaction, the business transaction requests in the business transaction request set can be subjected to link aggregation according to the transaction identifier, so that one or more transaction links can be formed. Specifically, service transaction requests containing the same transaction identifier can be queried from the service transaction request set, and the service transaction requests are arranged according to the calling sequence, so that a transaction link can be formed. In this way, one or more transaction links may ultimately be aggregated from a set of transaction requests.
In an embodiment of the present disclosure, the extracting the link characteristic value of the transaction link may include the following steps:
selecting a transaction link;
extracting a calling characteristic value of each business transaction request in the transaction link; the call feature value may be, for example, a call method.
And arranging the calling characteristic values according to the calling sequence to form the link characteristic value of the transaction link.
For example, in FIG. 2, the A transaction link contains five call feature values A1, A2, A3, A4, and A5; accordingly, the link characteristic value of the A transaction link may be represented by the sequence (A1, A2, A3, A4, and A5). The transaction link B comprises three calling characteristic values of B1, B2 and B3; accordingly, the link characteristic value of the B transaction link may be represented by the sequence (B1, B2, B3). The C transaction link comprises two calling characteristic values of C1 and C2; accordingly, the link characteristic value of the C transaction link may be represented by the sequence (C1, C2).
In an embodiment of the present disclosure, the determining, according to the link characteristic value, a service transaction type to which the transaction link belongs may include the following steps:
selecting a transaction link;
inquiring whether a business transaction type matched with a link characteristic value of the transaction link exists in a preset business transaction type characteristic database;
if the business transaction type matched with the link characteristic value of the transaction link exists, the transaction link is marked as the corresponding business transaction type, and the business volume of the corresponding business transaction type is updated. In some special cases, it may occur that there is no business transaction type matching the transaction link characteristics, which may not be processed.
And the service transaction type characteristic database stores service transaction type characteristic sequences of all service transaction types in the distributed cluster. By analyzing the link characteristics of the historical transaction links of the distributed cluster in advance, the corresponding relationship between each service transaction type and the link characteristics can be obtained, as shown in the following table 1:
TABLE 1
Figure GDA0004115137820000061
Figure GDA0004115137820000071
For example, in an exemplary embodiment, the link characteristic value of a selected transaction link is a sequence (C1, C2), and the sequence (C1, C2) is found in table 1 by looking up a table, and the corresponding business transaction type is C transaction; the transaction type for that transaction link may be marked as C transaction.
Based on the identification of the business transaction type to which each transaction link belongs, the business volume of the corresponding business transaction type can be updated in the business transaction volume database. Wherein the traffic volume database maintains traffic volumes of the traffic transaction types within a specified period of time, such as shown in table 2 below.
TABLE 2
Figure GDA0004115137820000072
When the traffic of one or more service transaction types meets the triggering condition of flow control, the service transaction types can be subjected to flow control in an initial application node in the distributed cluster. For example, the flow control threshold for the a transaction is 300, and when the real-time traffic of the a transaction exceeds 300, the a transaction may be flow controlled. The originating application node may be an application node in the distributed cluster that first receives the service transaction request, for example, a front-end server or the like.
In some embodiments of the present disclosure, the control strategy of the flow control may include, but is not limited to, drainage, flow limiting, and/or fusing, and the like, and may be specifically selected according to actual needs, which is not limited in this disclosure.
In some embodiments of the present disclosure, after determining, according to the link characteristic value, a service transaction type to which the transaction link belongs, a real-time transaction call graph of the distributed cluster is generated according to the service transaction type to which the transaction link belongs, and the real-time transaction call graph is output and displayed in real time. Thus, the real-time transaction calling condition of each business transaction type in the distributed cluster can be more clearly and intuitively checked.
In another embodiment of the present disclosure, after determining the service transaction type to which the transaction link belongs according to the link characteristic value, all transaction links may be further persisted into a transaction link detail database.
Referring to fig. 3, corresponding to the traffic control method based on the transaction link, the embodiment of the present disclosure further provides a traffic control device based on the transaction link, where the device may be configured to obtain, in real time, a service transaction request served by an application node in a distributed cluster, so as to form a service transaction request set; link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links; extracting a link characteristic value of the transaction link; determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster; and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
In the traffic control device based on the transaction link in the embodiment of the present disclosure, real-time traffic monitoring of each service transaction type in the distributed cluster is realized based on link tracking, and when one or more service transaction types of traffic meet the traffic control trigger condition, the traffic transaction type can be subjected to traffic control in the starting application node in the distributed cluster, so that traffic control according to the traffic of a specific service scenario is realized, so that the control range of the traffic control is limited to only those service transaction types with high concurrency, but not those service transaction types with low concurrency are not involved, and normal transaction processing of the service transaction types with low concurrency is not affected.
As shown in fig. 4, in an embodiment of the present disclosure, the transaction link-based flow control device may include a request acquisition module 41, a link aggregation module 42, a feature extraction module 43, a type identification module 44, and a flow control module 45. Wherein:
the request acquisition module 41 may be configured to acquire, in real time, a service transaction request served by an application node in the distributed cluster, so as to form a service transaction request set;
a link aggregation module 42, configured to link aggregate the service transaction requests in the service transaction request set to form one or more transaction links;
a feature extraction module 43, which may be configured to extract a link feature value of the transaction link;
a type identifying module 44, configured to determine, according to the link characteristic value, a service transaction type to which the transaction link belongs, so as to obtain a traffic volume of each service transaction type in the distributed cluster;
the flow control module 45 may be configured to perform flow control on one or more traffic transaction types in the originating application node in the distributed cluster when the traffic of the traffic transaction type satisfies a flow control trigger condition.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
Referring to fig. 5, embodiments of the present specification may also provide a computer device comprising a memory, a processor, and a computer program stored on the memory, which when executed by the processor performs the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
Furthermore, the embodiments of the present specification may also provide a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
While the process flows described above include a plurality of operations occurring in a particular order, it should be apparent that the processes may include more or fewer operations, which may be performed sequentially or in parallel (e.g., using a parallel processor or a multi-threaded environment).
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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.
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 Disks (DVD) or other optical storage, magnetic cassettes, 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 transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (10)

1. A transaction link based flow control method, comprising:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
2. The traffic control method according to claim 1, further comprising, after determining the type of traffic transaction to which the transaction link belongs according to the link characteristic value:
and generating a real-time transaction call graph of the distributed cluster according to the business transaction type to which the transaction link belongs, and outputting the real-time transaction call graph in real time.
3. The transaction link based flow control method of claim 1, wherein said extracting link characteristic values of the transaction link includes:
selecting a transaction link;
extracting a calling characteristic value of each business transaction request in the transaction link;
and arranging the calling characteristic values according to the calling sequence to form the link characteristic value of the transaction link.
4. The traffic control method according to claim 1, wherein said determining a traffic transaction type to which the transaction link belongs according to the link characteristic value comprises:
selecting a transaction link;
inquiring whether a business transaction type matched with a link characteristic value of the transaction link exists in a preset business transaction type characteristic database;
if the business transaction type matched with the link characteristic value of the transaction link exists, the transaction link is marked as the corresponding business transaction type, and the business volume of the corresponding business transaction type is updated.
5. A transaction link based flow control device, comprising:
the request acquisition module is used for acquiring service transaction requests of application node services in the distributed cluster in real time to form a service transaction request set;
the link aggregation module is used for carrying out link aggregation on the business transaction requests in the business transaction request set so as to form one or more transaction links;
the feature extraction module is used for extracting link feature values of the transaction links;
the type identification module is used for determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and the flow control module is used for controlling the flow of the business transaction type in the initial application node in the distributed cluster when the traffic of one or more business transaction types meets the flow control trigger condition.
6. The transaction link based flow control device of claim 5, further comprising:
and the graph output module is used for generating a real-time transaction call graph of the distributed cluster according to the business transaction type to which the transaction link belongs after determining the business transaction type to which the transaction link belongs according to the link characteristic value and outputting the real-time transaction call graph.
7. The transaction link based flow control device of claim 5, wherein the extracting the link characteristic value of the transaction link includes:
selecting a transaction link;
extracting a calling characteristic value of each business transaction request in the transaction link;
and arranging the calling characteristic values according to the calling sequence to form the link characteristic value of the transaction link.
8. The transaction link based flow control device of claim 5, wherein said determining the type of traffic transaction to which the transaction link belongs based on the link characteristic value includes:
selecting a transaction link;
inquiring whether a business transaction type matched with a link characteristic value of the transaction link exists in a preset business transaction type characteristic database;
if the business transaction type matched with the link characteristic value of the transaction link exists, the transaction link is marked as the corresponding business transaction type, and the business volume of the corresponding business transaction type is updated.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory, characterized in that the computer program when run by the processor performs the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
10. A computer storage medium having a computer program stored thereon, the computer program, when executed by a processor, performing the steps of:
acquiring service transaction requests of application node services in a distributed cluster in real time to form a service transaction request set;
link aggregation is carried out on the business transaction requests in the business transaction request set so as to form one or more transaction links;
extracting a link characteristic value of the transaction link;
determining the business transaction type to which the transaction link belongs according to the link characteristic value so as to acquire the business volume of each business transaction type in the distributed cluster;
and when the traffic volume of one or more business transaction types meets the triggering condition of flow control, performing flow control on the business transaction types in an initial application node in the distributed cluster.
CN201910714882.0A 2019-08-02 2019-08-02 Traffic control method, device, equipment and storage medium based on transaction link Active CN110380985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910714882.0A CN110380985B (en) 2019-08-02 2019-08-02 Traffic control method, device, equipment and storage medium based on transaction link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910714882.0A CN110380985B (en) 2019-08-02 2019-08-02 Traffic control method, device, equipment and storage medium based on transaction link

Publications (2)

Publication Number Publication Date
CN110380985A CN110380985A (en) 2019-10-25
CN110380985B true CN110380985B (en) 2023-05-09

Family

ID=68257910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910714882.0A Active CN110380985B (en) 2019-08-02 2019-08-02 Traffic control method, device, equipment and storage medium based on transaction link

Country Status (1)

Country Link
CN (1) CN110380985B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415261B (en) * 2020-03-27 2023-10-24 中国建设银行股份有限公司 Control method, system and device for dynamically updating flow control threshold of bank system
CN111369367A (en) * 2020-04-02 2020-07-03 中国工商银行股份有限公司 Transaction flow combination method and device
CN111737297B (en) * 2020-06-15 2023-08-25 中国工商银行股份有限公司 Method and device for processing link aggregation call information
CN111709731A (en) * 2020-06-18 2020-09-25 深圳前海微众银行股份有限公司 Transaction processing method and device
CN112702321B (en) * 2020-12-15 2023-04-07 深圳市快付通金融网络科技服务有限公司 Distributed transaction current limiting method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076760A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction processing method, system, electronic device, and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9325622B2 (en) * 2013-12-03 2016-04-26 International Business Machines Corporation Autonomic traffic load balancing in link aggregation groups
CN104219316B (en) * 2014-09-12 2018-03-23 微梦创科网络科技(中国)有限公司 A kind of call request processing method and processing device in distributed system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076760A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction processing method, system, electronic device, and storage medium

Also Published As

Publication number Publication date
CN110380985A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110380985B (en) Traffic control method, device, equipment and storage medium based on transaction link
JP6716727B2 (en) Streaming data distributed processing method and apparatus
CN109492013B (en) Data processing method, device and system applied to database cluster
CN108062243B (en) Execution plan generation method, task execution method and device
WO2015095852A1 (en) Data synchonization in a storage network
CN106933548B (en) Global information obtaining, processing and updating method, device and system
CN108256870B (en) Method and device for generating description information, updating and processing data based on topological structure
CN109359109B (en) Data processing method and system based on distributed stream computing
CN106878365B (en) data synchronization method and device
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN111857981A (en) Data processing method and device
CN110413427B (en) Subscription data pulling method, device, equipment and storage medium
CN106156185B (en) Method, device and system for inquiring service request execution state
CN112346872A (en) Cloud computing capacity expansion method and device based on service call link
CN112445504A (en) Equipment firmware upgrading method, device and system
CN111161064A (en) Processing method and device for blockchain transaction records
CN116233164A (en) Method, apparatus, storage medium and processor for collecting device data
CN114138651B (en) Test data generation method and device
CN108023920B (en) Data packet transmission method, equipment and application interface
CN115374086A (en) Data migration method, device, equipment and medium based on message queue
CN110363515B (en) Rights and interests card account information inquiry method, system, server and readable storage medium
CN112910988A (en) Resource acquisition method and resource scheduling device
CN117857465B (en) Data processing method, device, equipment, storage medium and program product
CN114679471B (en) Data matching method based on cloud service processing
CN109743188A (en) Daily record data treating method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant