WO2018024076A1 - 一种流速控制方法及装置 - Google Patents

一种流速控制方法及装置 Download PDF

Info

Publication number
WO2018024076A1
WO2018024076A1 PCT/CN2017/092089 CN2017092089W WO2018024076A1 WO 2018024076 A1 WO2018024076 A1 WO 2018024076A1 CN 2017092089 W CN2017092089 W CN 2017092089W WO 2018024076 A1 WO2018024076 A1 WO 2018024076A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
transaction dimension
dimension
threshold
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.)
Ceased
Application number
PCT/CN2017/092089
Other languages
English (en)
French (fr)
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Publication of WO2018024076A1 publication Critical patent/WO2018024076A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a flow rate control method and apparatus.
  • the embodiment of the invention provides a method and a device for controlling the flow rate, which are used to solve the technical problem that the faulty node is isolated in the prior art, so that subsequent recovery is difficult.
  • the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time is obtained;
  • the first transaction dimension of the respective transaction dimensions For the first transaction dimension of the respective transaction dimensions, if it is determined that the number of resources occupied by the first transaction dimension at the current time is greater than a current threshold of the first transaction dimension, the first The transaction of the transaction dimension performs a fast failure process; the current threshold of the first transaction dimension The value is derived from a historical threshold of the first transaction dimension; the first transaction dimension is any one of the transaction dimensions.
  • the received transaction of the first transaction dimension is processed.
  • the current threshold of the first transaction dimension is obtained according to a historical threshold of the first transaction dimension, and includes:
  • the current threshold of the first transaction dimension is determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension.
  • each transaction dimension of the node to be controlled is obtained by:
  • Embodiments of the present invention provide a flow rate control device, the device comprising:
  • An acquiring module configured to determine, after the resource occupancy rate of the node to be controlled is greater than a preset occupancy threshold, the number of resources occupied by each transaction dimension of the to-be-controlled node at the current moment;
  • a processing module configured to: for the first transaction dimension in the respective transaction dimensions, if it is determined that the number of resources occupied by the first transaction dimension at the current time is greater than a current threshold of the first transaction dimension, The transaction of the first transaction dimension performs fast failure processing; the current threshold of the first transaction dimension is obtained according to a historical threshold of the first transaction dimension; the first transaction dimension is in the respective transaction dimension Any transaction dimension.
  • the processing module is further configured to:
  • the processing module is specifically configured to:
  • the current threshold of the first transaction dimension is determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension.
  • the processing module is further configured to obtain, according to the following manner, various transaction dimensions of the node to be controlled:
  • Embodiments of the present invention provide a flow rate control apparatus, the apparatus comprising: a processor and a memory, the memory is configured to store a software program, and the processor is configured to read a software program stored in the memory to execute:
  • the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time is obtained; for the first transaction dimension in each transaction dimension, Determining that the number of resources occupied by the first transaction dimension at the current time is greater than a current threshold of the first transaction dimension, and performing the fast failure processing on the received transaction of the first transaction dimension; the first transaction
  • the current threshold of the dimension is derived from a historical threshold of the first transaction dimension; the first transaction dimension is any one of the transaction dimensions.
  • the processor is further configured to:
  • the current threshold of a transaction dimension is processed for the received transaction of the first transaction dimension.
  • the processor is specifically configured to:
  • the current threshold of the first transaction dimension is determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension.
  • the processor is further configured to obtain, according to the following manner, each transaction dimension of the node to be controlled:
  • a computer storage medium is also provided in the embodiment of the present application.
  • the storage medium stores a software program, and the software program can implement the flow rate control method provided by any one of the above designs when being read and executed by one or more processors.
  • the embodiment of the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the flow rate control method described in the above aspects.
  • the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time is obtained;
  • the first transaction dimension of the first transaction dimension is determined to be fast when the number of resources occupied by the first transaction dimension at the current time is greater than the current threshold of the first transaction dimension.
  • the failure process is performed; the current threshold of the first transaction dimension is obtained according to the historical threshold of the first transaction dimension; in the embodiment of the present invention, on one hand, the resource occupancy rate of the node to be controlled and the preset occupancy threshold are Perform comparison, and if the resource occupancy rate is greater than the preset occupancy threshold, perform subsequent flow rate control operations, which not only ensures the system's Availability, and effectively avoids invalid flow rate control when resources are not tight, saving processing resources; on the other hand, for any transaction dimension in each transaction dimension, if the number of occupied resources is greater than the threshold, then the transaction dimension The channel may be faulty.
  • the transaction of the transaction dimension received can be quickly failed to process, so that in the case of resource shortage, the smooth transition of the channel that may be faulty is controlled, rather than completely isolated. Sacrificing a part of the transaction that could not be successful, to avoid the failure of the channel of the transaction dimension, so as to smoothly and automatically recover after the transaction dimension returns to normal; in particular, the current threshold of the first transaction dimension is based on the first transaction dimension The historical threshold is obtained, thus ensuring the dynamic update of the threshold, which is more in line with the characteristics of the actual transaction.
  • FIG. 1 is a schematic flowchart of a flow rate control method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a flow rate control device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of another flow rate control device according to an embodiment of the present invention.
  • the flow rate control method in the embodiment of the present invention can be applied to various architectures, and is particularly applicable to the TSM platform cloud migration architecture.
  • the TSM platform is divided into an access layer, an application layer, and a service layer, and the system architecture is targeted.
  • the flow rate control method in the embodiment of the present invention can be applied to an access layer and an application layer. Specifically, since the TSM system needs to communicate with many external organizations, if some external organizations are slow to process, then in this case, a flow rate control method is needed to prevent sudden failure of some organizations from occupying transaction processing of other institutions. Resources to ensure the stability of the internal application system.
  • FIG. 1 is a schematic flowchart of a flow rate control method according to an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step 101 After determining that the resource occupancy rate of the node to be controlled is greater than the preset occupancy threshold, obtain the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time.
  • Step 102 For the first transaction dimension in each of the transaction dimensions, if it is determined that the number of resources occupied by the first transaction dimension at the current time is greater than a current threshold of the first transaction dimension, the received location The transaction of the first transaction dimension performs a fast failure process; the current threshold of the first transaction dimension is obtained according to a historical threshold of the first transaction dimension; the first transaction dimension is any of the respective transaction dimensions A trading dimension.
  • different nodes may correspond to different preset occupancy thresholds.
  • the preset occupancy threshold of the node to be controlled may be set according to experience by a person skilled in the art, and further, according to the reaction speed of all subsequent application nodes of the node to be controlled and the node to be controlled The processing power to determine the preset occupancy threshold.
  • each transaction dimension of the node to be controlled needs to be defined. Specifically, each transaction dimension of the node to be controlled is obtained by: obtaining each corresponding to the node to be controlled And determining, according to the service elements included in the respective messages, the service elements included in the respective messages as target service elements; combining the types included in each of the target service elements to obtain a The various transaction dimensions of the control node are described.
  • the target service elements of the node to be controlled are determined as service element A and service element B, and the number of types included in service element A is three, namely type A1, type A2, type A3, and service elements.
  • the number of types included in B is two, which are type B1 and type B2 respectively.
  • the transaction dimension of the node to be controlled is six, which are ⁇ A1, B1 ⁇ , ⁇ A2, B1 ⁇ , ⁇ A3, B1. ⁇ , ⁇ A1, B2 ⁇ , ⁇ A2, B2 ⁇ , ⁇ A3, B2 ⁇ , as shown in Table 1, shows the transaction dimensions of the node to be controlled.
  • Table 1 Schematic diagram of the transaction dimension of the node to be controlled
  • the target service element of the node to be controlled is the service element A and the service element B
  • the number of types included in the service element A is M
  • the number of types included in the service element B is N
  • the transaction dimension of the node to be controlled is M*N.
  • a reference value may be set for each transaction dimension.
  • the reference value may be set by a person skilled in the art according to experience, or the reference value may be determined according to the total number of resources of the node to be controlled and the number of transaction dimensions. Specifically, if the total number of resources of the node to be controlled is S, the number of transaction dimensions is k, the S/k is rounded down to obtain X, and the reference value of each transaction dimension of the node to be controlled is set to X.
  • the weight values of the respective service dimensions are ⁇ 1, ⁇ 2, ⁇ 3, ..., ⁇ k, respectively
  • the number of resources that can be allocated for each dimension is X* ⁇ 1, X* ⁇ 2, X* ⁇ 3, respectively.
  • ..., X* ⁇ k that is, the thresholds of the respective service dimensions at the initial time may be X* ⁇ 1, X* ⁇ 2, X* ⁇ 3, ..., X* ⁇ k, respectively.
  • unallocated redundant resources may be dynamically allocated resources and dynamically allocated.
  • a resource is characterized by not assigning any specific channels/services first. When a channel/service does not have an idle thread while acquiring thread resources, dynamic resources can be allocated to it.
  • the first transaction dimension may have different thresholds at different times, and the current threshold of the first transaction dimension is obtained according to the historical threshold of the first transaction dimension. It should be noted that, according to the above content, if the initial time is, the threshold of the first transaction dimension can be obtained according to the reference value and the weight value. In this case, there is no historical time, and the history threshold can be assumed to be 0.
  • the current threshold of the first transaction dimension can be determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension. The number of resources currently occupied by the first transaction dimension can be obtained by the transaction amount currently processed by the first transaction dimension.
  • the current threshold of the first transaction dimension may also be determined by the following formula:
  • F t is the current threshold of the first transaction dimension
  • X t is the number of resources currently occupied by the first transaction dimension
  • X t-1 is the previous transaction dimension at a previous moment of the current time
  • X t-2 is the number of resources occupied by the first transaction dimension at the first two moments of the current time
  • X 1 is the number of resources occupied by the first transaction dimension at the initial time.
  • step 102 if the number of occupied resources is greater than the threshold, it indicates that the channel of the first transaction dimension may be faulty, and the received transaction of the first transaction dimension may be quickly failed to be processed, thereby achieving resource shortage.
  • the smooth transition control of the potentially faulty channel rather than complete isolation, avoids the failure of the transaction dimension channel by sacrificing a portion of the transaction that would otherwise be unsuccessful.
  • the first transaction dimension has returned to normal.
  • the transaction of the received first transaction dimension is processed normally, and no longer enters Line fast failure processing, which can smoothly restore transaction traffic.
  • the threshold is continuously updated, which is more in line with the characteristics of the actual transaction. For example, if a back-end channel processes the transaction slowly, then the resource is not tight, and the resource is not tight. It must be tilted to ensure that its transactions can be handled; but when resources are tight, it can not affect other channels with large trading volume, and the back-end channel transactions can be controlled to a limited extent, ensuring transaction processing and controlling them. Trading volume. This approach is more moderate than trading directly to this channel and is able to dynamically recover its transaction traffic.
  • each transaction dimension may be monitored according to a set period.
  • the specific monitoring information may include the arrival time, processing duration, success/timeout/fast failure of each transaction, and the transaction dimension to which it belongs; The number of transactions; the threshold currently used by each transaction dimension.
  • the arrival time of each transaction and the transaction dimension to which it belongs are used to determine the transaction volume data for a transaction dimension.
  • the comparison of the transaction data being processed with the threshold is used to determine whether limited control is required.
  • Other information can provide alarm function, which is convenient for manually checking the processing power of each channel, clear performance data, and easy to communicate with external system interface people.
  • the above flow rate control method provides a finer-grained control capability; compared with the fine-grained flow control model, no complicated configuration parameters are required, and it is more realistic.
  • the adaptive algorithm in formula (1) or formula (2) can ensure the adaptability of the system. In the case of changes in transaction distribution, no manual reconfiguration parameters are required, which reduces the operation and maintenance time and reduces the difficulty of operation and maintenance. .
  • the threshold update capability of the second level can be guaranteed, and the embodiment of the present invention is more reasonable and reliable than the manual configuration threshold.
  • the embodiment of the present invention further provides a flow rate control device, and the specific content of the device can be implemented by referring to the above method.
  • FIG. 2 is a schematic structural diagram of a flow rate control device according to an embodiment of the present invention. As shown in Figure 2, the device comprises:
  • the obtaining module 201 is configured to determine, after the resource occupancy rate of the node to be controlled is greater than the preset occupancy threshold, the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time;
  • the processing module 202 is configured to: for the first transaction dimension in the respective transaction dimensions, if it is determined that the number of resources occupied by the first transaction dimension at the current moment is greater than a current threshold of the first transaction dimension, the processing module 202 Transmitting the transaction of the first transaction dimension to a fast failure process; the current threshold of the first transaction dimension is obtained according to a historical threshold of the first transaction dimension; the first transaction dimension is the respective transaction dimension Any transaction dimension in .
  • the processing module is further configured to:
  • the processing module is specifically configured to:
  • the current threshold of the first transaction dimension is determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension.
  • the processing module is further configured to obtain, according to the following manner, various transaction dimensions of the node to be controlled:
  • FIG. 3 is a schematic structural diagram of another flow rate control device according to an embodiment of the present application.
  • the flow rate control device 300 includes: a memory 301 and a processor 302;
  • the memory 301 is configured to store a program; specifically, the program may include program code, and the program code includes computer operation instructions.
  • the memory 301 may be a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also Set to multiple as needed. Memory 301 can also be a memory in processor 302.
  • the memory 301 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 302 may also be referred to as a central processing unit (English: Central Processing Unit, CPU).
  • CPU Central Processing Unit
  • the method disclosed in the foregoing embodiment of the present application may be applied to the processor 302 or implemented by the processor 302.
  • Processor 302 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 302 or an instruction in a form of software.
  • the processor 302 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 301, and the processor 302 reads the information in the memory 301, and executes the program stored in the memory in conjunction with its hardware.
  • the processor is configured to:
  • the number of resources occupied by each transaction dimension of the to-be-controlled node at the current time is obtained; for the first transaction dimension in each transaction dimension, Determining that the number of resources occupied by the first transaction dimension at the current time is greater than a current threshold of the first transaction dimension, and performing the fast failure processing on the received transaction of the first transaction dimension; the first transaction
  • the current threshold of the dimension is derived from a historical threshold of the first transaction dimension; the first transaction dimension is any one of the transaction dimensions.
  • processor 302 is further configured to:
  • the processor 302 is specifically configured to:
  • the current threshold of the first transaction dimension is determined by the following formula:
  • F t is a current threshold of the first transaction dimension
  • F t-1 is a historical threshold of the first transaction dimension at a current moment of the current time
  • X t is a resource currently occupied by the first transaction dimension
  • the number, ⁇ is the weight value of the first transaction dimension.
  • processor 302 is further configured to obtain, according to the following manner, each transaction dimension of the node to be controlled:
  • the transaction of a transaction dimension is subjected to a fast failure process; the current threshold of the first transaction dimension is obtained according to a historical threshold of the first transaction dimension; in an embodiment of the present invention, on one hand, by occupying a resource of a node to be controlled The rate is compared with the preset occupancy threshold, and when the resource occupancy rate is greater than the preset occupancy threshold, the subsequent flow rate control operation is performed, which not only ensures the availability of the system, but also effectively prevents the resource from being ineffective when the resource is not tight.
  • Flow rate control saving processing resources; on the other hand, for any transaction dimension in each transaction dimension, if occupied The number of resource is greater than the threshold, then the channel dimension of the transaction may fail, this time can be received transaction the transaction dimension rapid failure processing, thereby achieving a tight resources
  • Zhang smooth control of the possible failure of the channel, rather than complete isolation, by sacrificing a part of the transaction that could not be successful, to avoid the failure of the channel of the transaction dimension, so as to restore normality in the transaction dimension.
  • the automatic recovery is performed smoothly; in particular, the current threshold of the first transaction dimension is obtained according to the historical threshold of the first transaction dimension, thereby ensuring the dynamic update of the threshold, which is more in line with the characteristics of the actual transaction.
  • embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can 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, etc.) including computer usable program code.
  • a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种流速控制方法及装置,包括:确定待控制节点的资源占用率大于预设占用率阈值后,获取待控制节点的各个交易维度在当前时刻所占用的资源个数,不仅确保了系统的可用性,而且有效避免了在资源不紧张时进行无效的流速控制;针对各个交易维度中的第一交易维度,若确定第一交易维度在当前时刻所占用的资源个数大于第一交易维度的当前阈值,则将接收到的第一交易维度的交易进行快速失败处理,从而实现了对可能发生故障的渠道进行平滑过渡的控制;且,第一交易维度的当前阈值是根据第一交易维度的历史阈值得到的,从而保证了阈值的动态更新,更加符合实际交易的特点。

Description

一种流速控制方法及装置
本申请要求在2016年8月4日提交中华人民共和国知识产权局、申请号为201610632359.X、发明名称为“一种流速控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种流速控制方法及装置。
背景技术
在网关以及分布式互联网交易系统中,通常需要进行流速控制。现有技术在进行流速控制时,为保证内部系统不至于承受来自外部的太大压力,通常将占用资源过多的节点作为故障节点,并对故障节点进行隔离。
然而,被隔离的故障节点在满足何种条件进行恢复是比较难以处理的问题,而且其恢复交易往往会导致系统出现较大的波动。因此,目前亟需一种更为有效的流速控制方法,用于解决现有技术中对故障节点进行隔离,从而使得后续难以恢复的技术问题。
发明内容
本发明实施例提供一种流速控制方法及装置,用于解决现有技术中对故障节点进行隔离,从而使得后续难以恢复的技术问题。
本发明实施例提供的一种流速控制方法,包括:
确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈 值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
较佳地,若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
较佳地,所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的,包括:
通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
较佳地,所述待控制节点的各个交易维度是通过如下方式得到的:
获取所述待控制节点对应的各个报文;
根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
本发明实施例提供一种流速控制装置,该装置包括:
获取模块,用于确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
处理模块,用于针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
较佳地,所述处理模块还用于:
若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
较佳地,所述处理模块具体用于:
通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
较佳地,所述处理模块还用于通过如下方式得到所述待控制节点的各个交易维度:
获取所述待控制节点对应的各个报文;
根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
本发明实施例提供一种流速控制装置,该装置包括:处理器和存储器,所述存储器用于存储软件程序,所述处理器用于读取所述存储器中存储的软件程序执行:
确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
可选地,所述处理器还用于:
若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第 一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
可选地,所述处理器具体用于:
通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
可选地,所述处理器还用于通过如下方式得到所述待控制节点的各个交易维度:
获取所述待控制节点对应的各个报文;
根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现上述任意一种设计提供的流速控制方法。
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的流速控制方法。
本发明的上述实施例中,确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;本发明实施例中,一方面,通过将待控制节点的资源占用率与预设占用率阈值进行比较,并在资源占用率大于预设占用率阈值的情况下,执行后续的流速控制操作,不仅确保了系统的 可用性,而且有效避免了在资源不紧张时进行无效的流速控制,节省处理资源;另一方面,针对各个交易维度中的任一交易维度,若占用的资源个数大于阈值,则说明该交易维度的渠道可能发生故障,此时可将接收到的该交易维度的交易进行快速失败处理,从而实现在资源紧张的情况下,对可能发生故障的渠道进行平滑过渡的控制,而非完全隔离,通过牺牲一部分本来就无法成功的交易,来避免该交易维度的渠道发生故障,以便于在该交易维度恢复正常后平缓地进行自动恢复;特别地,第一交易维度的当前阈值是根据第一交易维度的历史阈值得到的,从而保证了阈值的动态更新,更加符合实际交易的特点。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种流速控制方法所对应的流程示意图;
图2为本发明实施例提供的一种流速控制装置的结构示意图;
图3为本发明实施例提供的另一种流速控制装置的结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例中的流速控制方法可适用于多种架构中,尤其适用于TSM平台云迁移架构。TSM平台分为接入层、应用层、服务层,针对该系统架构 的特点,本发明实施例中的流速控制方法可应用在接入层与应用层。具体来说,由于TSM系统需要和许多外部机构进行信息交流,若存在某些外部机构处理缓慢,则在此情况下需要采用流速控制方法,以防止部分机构突发的故障挤占其他机构的交易处理资源,确保内部应用系统的稳定性。
图1为本发明实施例提供的一种流速控制方法所对应的流程示意图。如图1所示,该方法包括:
步骤101,确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
步骤102,针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
具体来说,本发明实施例中,在步骤101中,不同的节点可对应不同的预设占用率阈值。以本发明实施例中的待控制节点为例,待控制节点的预设占用率阈值可由本领域技术人员根据经验设置,进一步地,可依据待控制节点后续所有应用节点的反应速度以及待控制节点的处理能力来确定预设占用率阈值。
本发明实施例中,通过将待控制节点的资源占用率与预设占用率阈值进行比较,并在资源占用率大于预设占用率阈值的情况下,执行后续的流速控制操作,不仅确保了系统的可用性,而且有效避免了在资源不紧张时进行无效的流速控制,节省了处理资源。
本发明实施例中,针对于待控制节点,需要先定义待控制节点的各个交易维度,具体来说,待控制节点的各个交易维度是通过如下方式得到的:获取所述待控制节点对应的各个报文;根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
举个例子,假设确定出的待控制节点的目标业务要素为业务要素A和业务要素B,业务要素A中包含的类型个数为3个,分别为类型A1、类型A2、类型A3,业务要素B中包含的类型个数为2个,分别为类型B1、类型B2,则可得到待控制节点的交易维度为6个,分别为{A1,B1}、{A2,B1}、{A3,B1}、{A1,B2}、{A2,B2}、{A3,B2},如表1,示出了待控制节点的交易维度。
表1:待控制节点的交易维度示意表
Figure PCTCN2017092089-appb-000001
由上述内容可知,若待控制节点的目标业务要素为业务要素A和业务要素B,业务要素A中包含的类型个数为M个,业务要素B中包含的类型个数为N个,则可得到待控制节点的交易维度为M*N个。
本发明实施例中,通过上述方式确定出待控制节点的各个交易维度后,可为每个交易维度设置一个基准值。其中,基准值可由本领域技术人员根据经验设置,或者,也可以根据待控制节点的总资源个数以及交易维度的个数确定基准值。具体来说,若待控制节点的总资源个数为S个,交易维度的个数为k个,将S/k向下取整得到X,并待控制节点的各个交易维度的基准值设置为X。
本发明实施例中,若各个业务维度的权重值分别为α1、α2、α3、……、αk,则说明可为各个维度分配的资源个数分别为X*α1、X*α2、X*α3、……、X*αk,也就是说,各个业务维度在初始时刻的阈值可以分别为X*α1、X*α2、X*α3、……、X*αk。
本发明实施例中,可将未分配的多余资源作为动态分配资源,动态分配 资源的特点是先不给任何特定的渠道/服务分配,当某个渠道/服务在获取线程资源的时候没有空闲线程,则可将动态资源分配给它。
以各个业务维度中的第一交易维度为例,第一交易维度在不同时刻可对应有不同的阈值,第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的。需要说明的是,根据上述内容可知,若是在初始时刻,则第一交易维度的阈值可根据基准值和权重值得到,此时不存在历史时刻,可假设历史阈值为0。
具体地,可通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1……公式(1)
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。其中,第一交易维度当前占用的资源个数可通过第一交易维度当前处理的交易量得到。
可选地,也可通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+α(1-α)Xt-1+α(1-α)2Xt-2+…+(1-α)t-1X1……公式(2)
其中,Ft为所述第一交易维度的当前阈值,Xt为所述第一交易维度当前占用的资源个数,Xt-1为所述第一交易维度在当前时刻的前一时刻的占用的资源个数,Xt-2为所述第一交易维度在当前时刻的前两个时刻的占用的资源个数,X1为所述第一交易维度在初始时刻占用的资源个数。
在步骤102中,若占用的资源个数大于阈值,则说明第一交易维度的渠道可能发生故障,此时可将接收到的第一交易维度的交易进行快速失败处理,从而实现在资源紧张的情况下,对可能发生故障的渠道进行平滑过渡的控制,而非完全隔离,通过牺牲一部分本来就无法成功的交易,来避免交易维度的渠道发生故障。
进一步地,在后续时刻,若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则说明第一交易维度已恢复正常,此时,可对接收到的第一交易维度的交易进行正常处理,而不再进 行快速失败处理,从而能够平稳地恢复交易流量。
本发明实施例中,由于当前阈值是根据历史阈值得到的,从而实现了阈值的不断更新,更加符合实际交易的特点,比如某后端渠道处理交易缓慢,那么在资源不紧张的情况下,资源必定向其倾斜,保证其交易能够处理;但是资源紧张的时候,就不能因此而影响其他交易量大的渠道,将此后端渠道的交易进行有限度的控制,既保证有交易处理,又控制其交易量。这种处理方法比直接隔离此渠道的交易更为温和,且能够动态的恢复其交易流量。
本发明实施例中,可按照设定周期对各个交易维度进行监控,具体的监控信息可包括每个交易的到达时间、处理时长、是否成功/超时/快速失败、所属的交易维度;目前正在处理的交易数量;各个交易维度目前使用的阈值。每个交易的到达时间与所属的交易维度用来确定某个交易维度的交易量数据,正在处理的交易数据与阈值的比较用来判断是否需要进行有限控制。其他信息可以提供报警功能,便于人工查看各个渠道处理能力,明确的性能数据,有便于与外部系统接口人进行沟通。通过上述轻量级的并行监控取样,保证了性能数据的准确性和准时性,监控信息取样周期可以精确到秒级别。
上述流速控制方法与通用流控模块相比,提供了更细粒度的控制能力;与细粒度流控模型相比,无需复杂的配置参数,且更加符合实际。通过公式(1)或公式(2)中的自适应的算法能够保证系统的适应能力,在交易分布发生变化的情况下,不需要人工重新配置参数,减少了运维时间,降低了运维难度。且,通过设置阈值的更新速度,能够保证秒级别的阈值更新能力,相比于人工配置阈值,本发明实施例更合理可信。
针对上述方法流程,本发明实施例还提供一种流速控制装置,该装置的具体内容可以参照上述方法实施。
图2为本发明实施例提供的一种流速控制装置的结构示意图。如图2所示,该装置包括:
获取模块201,用于确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
处理模块202,用于针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
较佳地,所述处理模块还用于:
若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
较佳地,所述处理模块具体用于:
通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
较佳地,所述处理模块还用于通过如下方式得到所述待控制节点的各个交易维度:
获取所述待控制节点对应的各个报文;
根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
图3为本申请实施例提供的另一种流速控制装置的结构示意图。如图3所示,所述流速控制装置300包括:存储器301和处理器302;
存储器301,用于存储程序;具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器301可能为随机存取存储器(英文:random access memory,RAM),也可能为非易失性存储器(英文:non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以 根据需要,设置为多个。存储器301也可以是处理器302中的存储器。
存储器301存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。
处理器302还可以称为中央处理单元(英文:Central Processing Unit,CPU)。上述本申请实施例揭示的方法可以应用于处理器302中,或者由处理器302实现。处理器302可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器302中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器302可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器301,处理器302读取存储器301中的信息,结合其硬件执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于:
确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
可选地,所述处理器302还用于:
若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
可选地,所述处理器302具体用于:
通过以下公式确定所述第一交易维度的当前阈值:
Ft=αXt+(1-α)Ft-1
其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
可选地,所述处理器302还用于通过如下方式得到所述待控制节点的各个交易维度:
获取所述待控制节点对应的各个报文;
根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
从上述内容可以看出:本发明的上述实施例中,确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;本发明实施例中,一方面,通过将待控制节点的资源占用率与预设占用率阈值进行比较,并在资源占用率大于预设占用率阈值的情况下,执行后续的流速控制操作,不仅确保了系统的可用性,而且有效避免了在资源不紧张时进行无效的流速控制,节省处理资源;另一方面,针对各个交易维度中的任一交易维度,若占用的资源个数大于阈值,则说明该交易维度的渠道可能发生故障,此时可将接收到的该交易维度的交易进行快速失败处理,从而实现在资源紧 张的情况下,对可能发生故障的渠道进行平滑过渡的控制,而非完全隔离,通过牺牲一部分本来就无法成功的交易,来避免该交易维度的渠道发生故障,以便于在该交易维度恢复正常后平缓地进行自动恢复;特别地,第一交易维度的当前阈值是根据第一交易维度的历史阈值得到的,从而保证了阈值的动态更新,更加符合实际交易的特点。
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了 基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (12)

  1. 一种流速控制方法,其特征在于,该方法包括:
    确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
    针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
  2. 如权利要求1所述的方法,其特征在于,若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
  3. 如权利要求1所述的方法,其特征在于,所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的,包括:
    通过以下公式确定所述第一交易维度的当前阈值:
    Ft=αXt+(1-α)Ft-1
    其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述待控制节点的各个交易维度是通过如下方式得到的:
    获取所述待控制节点对应的各个报文;
    根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
    将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
  5. 一种流速控制装置,其特征在于,该装置包括:
    获取模块,用于确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;
    处理模块,用于针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
  6. 如权利要求5所述的装置,其特征在于,所述处理模块还用于:
    若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
  7. 如权利要求5所述的装置,其特征在于,所述处理模块具体用于:
    通过以下公式确定所述第一交易维度的当前阈值:
    Ft=αXt+(1-α)Ft-1
    其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
  8. 如权利要求5-7中任一项所述的装置,其特征在于,所述处理模块还用于通过如下方式得到所述待控制节点的各个交易维度:
    获取所述待控制节点对应的各个报文;
    根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
    将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
  9. 一种流速控制装置,其特征在于,该装置包括:处理器和存储器,所述存储器用于存储软件程序,所述处理器用于读取所述存储器中存储的软件程序执行:
    确定待控制节点的资源占用率大于预设占用率阈值后,获取所述待控制节点的各个交易维度在当前时刻所占用的资源个数;针对所述各个交易维度中的第一交易维度,若确定所述第一交易维度在当前时刻所占用的资源个数大于所述第一交易维度的当前阈值,则将接收到的所述第一交易维度的交易进行快速失败处理;所述第一交易维度的当前阈值是根据所述第一交易维度的历史阈值得到的;所述第一交易维度为所述各个交易维度中的任一交易维度。
  10. 如权利要求9所述的装置,其特征在于,所述处理器还用于:
    若确定所述第一交易维度在当前时刻所占用的资源个数小于等于所述第一交易维度的当前阈值,则对接收到的所述第一交易维度的交易进行处理。
  11. 如权利要求9所述的装置,其特征在于,所述处理器具体用于:
    通过以下公式确定所述第一交易维度的当前阈值:
    Ft=αXt+(1-α)Ft-1
    其中,Ft为所述第一交易维度的当前阈值,Ft-1为所述第一交易维度在当前时刻的前一时刻的历史阈值,Xt为所述第一交易维度当前占用的资源个数,α为第一交易维度的权重值。
  12. 如权利要求9-11中任一项所述的装置,其特征在于,所述处理器还用于通过如下方式得到所述待控制节点的各个交易维度:
    获取所述待控制节点对应的各个报文;
    根据所述各个报文中包含的业务要素,将所述各个报文中均包含的业务要素确定为目标业务要素;
    将各个所述目标业务要素中所包含的类型进行组合,得到所述待控制节点的各个交易维度。
PCT/CN2017/092089 2016-08-04 2017-07-06 一种流速控制方法及装置 Ceased WO2018024076A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610632359.XA CN106100901B (zh) 2016-08-04 2016-08-04 一种流速控制方法及装置
CN201610632359.X 2016-08-04

Publications (1)

Publication Number Publication Date
WO2018024076A1 true WO2018024076A1 (zh) 2018-02-08

Family

ID=57453731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092089 Ceased WO2018024076A1 (zh) 2016-08-04 2017-07-06 一种流速控制方法及装置

Country Status (3)

Country Link
CN (1) CN106100901B (zh)
TW (1) TWI671708B (zh)
WO (1) WO2018024076A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324411A (zh) * 2019-06-18 2019-10-11 平安普惠企业管理有限公司 一种业务分流方法及装置
CN112817948A (zh) * 2019-11-15 2021-05-18 北京三快在线科技有限公司 数据检测的方法、装置、可读存储介质以及电子设备
CN115545805A (zh) * 2022-11-29 2022-12-30 中信建投证券股份有限公司 一种服务伸缩方法、装置、电子设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100901B (zh) * 2016-08-04 2019-12-06 中国银联股份有限公司 一种流速控制方法及装置
CN111415261B (zh) * 2020-03-27 2023-10-24 中国建设银行股份有限公司 银行系统的流控阈值动态更新的控制方法、系统和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103839182A (zh) * 2012-11-23 2014-06-04 中国银联股份有限公司 实时监控联机交易系统交易数据处理的方法及系统
CN104090823A (zh) * 2014-06-09 2014-10-08 中国建设银行股份有限公司 一种用于计算机系统的流量控制方法和装置
CN105389729A (zh) * 2015-12-15 2016-03-09 中国建设银行股份有限公司 交易流量精细化控制系统及方法
WO2016082693A1 (zh) * 2014-11-24 2016-06-02 阿里巴巴集团控股有限公司 一种用于在集群中调度计算任务的方法与设备
CN106100901A (zh) * 2016-08-04 2016-11-09 中国银联股份有限公司 一种流速控制方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668966B2 (en) * 2001-11-02 2010-02-23 Internap Network Services Corporation Data network controller
JP4523381B2 (ja) * 2004-10-29 2010-08-11 株式会社日立製作所 パケット通信装置
TWI373946B (en) * 2005-10-26 2012-10-01 Qualcomm Inc Flexible medium access control (mac) for ad hoc deployed wireless networks
US8737314B2 (en) * 2008-02-14 2014-05-27 Qualcomm Incorporated Traffic management for multi-hop wireless communication
CN104753805B (zh) * 2013-12-31 2018-07-24 腾讯科技(深圳)有限公司 分布式流量控制方法、服务器和系统
CN103825830B (zh) * 2014-02-24 2017-02-01 北京南天软件有限公司 基于tuxedo中间件的系统实现流量管控的方法和装置
CN104408656A (zh) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 动态调整流控阈值的方法及系统
CN104580524A (zh) * 2015-01-30 2015-04-29 华为技术有限公司 一种云平台上的资源伸缩方法和一种云平台

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103839182A (zh) * 2012-11-23 2014-06-04 中国银联股份有限公司 实时监控联机交易系统交易数据处理的方法及系统
CN104090823A (zh) * 2014-06-09 2014-10-08 中国建设银行股份有限公司 一种用于计算机系统的流量控制方法和装置
WO2016082693A1 (zh) * 2014-11-24 2016-06-02 阿里巴巴集团控股有限公司 一种用于在集群中调度计算任务的方法与设备
CN105389729A (zh) * 2015-12-15 2016-03-09 中国建设银行股份有限公司 交易流量精细化控制系统及方法
CN106100901A (zh) * 2016-08-04 2016-11-09 中国银联股份有限公司 一种流速控制方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324411A (zh) * 2019-06-18 2019-10-11 平安普惠企业管理有限公司 一种业务分流方法及装置
CN110324411B (zh) * 2019-06-18 2022-11-18 平安普惠企业管理有限公司 一种业务分流方法及装置
CN112817948A (zh) * 2019-11-15 2021-05-18 北京三快在线科技有限公司 数据检测的方法、装置、可读存储介质以及电子设备
CN115545805A (zh) * 2022-11-29 2022-12-30 中信建投证券股份有限公司 一种服务伸缩方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN106100901A (zh) 2016-11-09
TW201805889A (zh) 2018-02-16
TWI671708B (zh) 2019-09-11
CN106100901B (zh) 2019-12-06

Similar Documents

Publication Publication Date Title
EP3202123B1 (en) Semi-automatic failover
US9805104B2 (en) Recovery point objective enforcement
US20170206462A1 (en) Method and apparatus for detecting abnormal contention on a computer system
WO2018024076A1 (zh) 一种流速控制方法及装置
CN107562512B (zh) 一种迁移虚拟机的方法、装置及系统
CN103455368B (zh) 一种死锁检测方法、节点及系统
US10042667B2 (en) Method and apparatus for resolving contention at the hypervisor level
US9519869B2 (en) Predictive computer system resource monitoring
US20210247987A1 (en) Algorithm program loading method and related apparatus
US10043139B2 (en) Method and apparatus for resolving contention in a computer system
US9128754B2 (en) Resource starvation management in a computer system
WO2021104383A1 (zh) 数据备份的方法和装置、设备和存储介质
CN112148420A (zh) 基于容器技术的异常任务处理方法、服务器及云平台
US10698770B1 (en) Regionally agnostic in-memory database arrangements with reconnection resiliency
EP3396553B1 (en) Method and device for processing data after restart of node
CN110908776A (zh) 定时任务的执行方法及相关装置、计算机可读存储介质
CN114327973A (zh) 一种区块链故障处理方法、装置及设备
CN106850354A (zh) 一种单点故障的处理方法及装置
US20150212904A1 (en) Method and computing device for recording log entries
CN115714771A (zh) 双流互备高可用方法、装置、电子设备及存储介质
CN110908792B (zh) 一种数据处理方法及装置
CN116594764B (zh) 一种应用程序的更新方法、装置、电子设备和存储介质
US10379928B2 (en) Preventing software component timer processing issues
Dinu et al. Hadoop’s overload tolerant design exacerbates failure detection and recovery
US20240256318A1 (en) System and method for managing pods hosted by virtual machines

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17836258

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17836258

Country of ref document: EP

Kind code of ref document: A1