CN114844834B - Method and device for adjusting flow control threshold, electronic equipment, medium and product - Google Patents
Method and device for adjusting flow control threshold, electronic equipment, medium and product Download PDFInfo
- Publication number
- CN114844834B CN114844834B CN202210469107.5A CN202210469107A CN114844834B CN 114844834 B CN114844834 B CN 114844834B CN 202210469107 A CN202210469107 A CN 202210469107A CN 114844834 B CN114844834 B CN 114844834B
- Authority
- CN
- China
- Prior art keywords
- tenant
- channel
- threshold
- adjusted
- flow control
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 9
- 230000001105 regulatory effect Effects 0.000 claims description 5
- 238000007599 discharging Methods 0.000 claims 6
- 238000004891 communication Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 239000012530 fluid Substances 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Technology Law (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a method and a device for adjusting a flow control threshold, electronic equipment, media and products, and relates to the field of communication. The method comprises the following steps: according to the system flow control threshold value, assigning a tenant threshold value for each tenant; distributing channel thresholds for channels under the tenants according to the tenant threshold of each tenant; determining a tenant to be adjusted, and determining the discharge demand of a discharge channel of the tenant to be adjusted; determining the reducible amount of a reduced channel under the tenant to be adjusted; and adjusting channel thresholds of all channels under the tenant to be adjusted, wherein the sum of the channel thresholds of all channels under the tenant to be adjusted after adjustment is not more than the tenant threshold of the tenant to be adjusted. According to the scheme, the flow control threshold value is adjusted based on the discharge demand quantity and the reducible quantity, so that the channel threshold value can be adjusted within the range of the system flow control threshold value, and the situation that the transaction quantity of the whole system exceeds the system flow control threshold value due to the adjustment of the flow control threshold value of a certain tenant is avoided, and the system stability is improved.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a method and apparatus for adjusting a flow control threshold, an electronic device, a medium, and a product.
Background
In the bank external connection system, a large number of business services in and out are required to be accessed, each business field has a plurality of channels for transaction, the access flow is large, and the control is difficult. To better manage the extrapolating traffic, stability is typically guaranteed by the tenant's flow control of the transaction. By setting the flow control threshold to limit the access flow, the transaction processing is performed only for the request transactions whose number of request transactions does not exceed the flow control threshold.
In the related art, the tenant only carries out flow control on the transaction of the channel under the tenant, and the situation that one tenant is careless in management and risks are caused to the whole system and other tenants are influenced is possible to occur without considering the use condition of resources of the whole system.
Disclosure of Invention
The application provides a method and a device for adjusting a flow control threshold, electronic equipment, media and products, which are used for improving system stability.
In a first aspect, the present application provides a method for adjusting a flow control threshold, including: according to the system flow control threshold value, assigning a tenant threshold value for each tenant; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant; determining a tenant to be adjusted, and determining the discharge demand of a discharge channel of the tenant to be adjusted, wherein the request transaction amount of the discharge channel is larger than a channel threshold of the discharge channel, and the discharge demand is the difference between the request transaction amount of the discharge channel and the channel threshold of the discharge channel; determining a reducible amount of a reduced channel under the tenant to be adjusted, wherein the request transaction amount of the reduced channel is smaller than a channel threshold of the reduced channel, and the reducible amount is a difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel; according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, adjusting the channel threshold of each channel of the tenant to be adjusted, wherein the adjustment comprises the steps of reducing the channel threshold of the reduction channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of each channel of the tenant to be adjusted after the adjustment is not more than the tenant threshold of the tenant to be adjusted.
In a possible implementation manner, the adjusting the channel threshold of each channel under the tenant to be adjusted according to the release demand of the channel under the tenant to be adjusted and the reducible amount of the reduced channel includes: acquiring the total discharge amount and the total reduction amount of the tenant to be adjusted, wherein the total discharge amount is the sum of discharge amount requirements of all discharge channels under the tenant, and the total reduction amount is the sum of reducible amounts of all reduction channels under the tenant; if the total discharge amount of the tenant to be adjusted is not smaller than the total reduction amount of the tenant to be adjusted, calculating a first ratio of discharge amount demand of each discharge amount channel under the tenant to be adjusted in request transaction amounts of the tenant to be adjusted, wherein the request transaction amounts of the tenant to be adjusted are the sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel; if the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted, calculating a second ratio of the reducible amount of each reduction channel in the total reduction amount of the tenant to be adjusted; and according to the total discharge amount of the tenant to be adjusted, reducing the channel threshold of the channel reduced under the tenant to be adjusted according to the second duty ratio corresponding to each channel reduced under the tenant to be adjusted, and improving the channel threshold of the discharge channel of the tenant to be adjusted, so that the channel threshold of the discharge channel is consistent with the request transaction amount of the discharge channel.
In a possible implementation manner, after determining the release demand of the tenant release channel to be adjusted, the method further includes: if no lowering channel exists under the tenant to be adjusted and lowering channels exist under other tenants, calculating the total lowering amount of the other tenants, wherein the total lowering amount of the other tenants is the sum of the lowering amounts of all lowering channels under all other tenants; distributing the total reduction of the other tenants to the discharge channels under the tenant to be adjusted according to the third duty ratio of each discharge channel under the tenant to be adjusted so as to improve the channel threshold of the discharge channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
In a possible implementation manner, after determining the release demand of the tenant release channel to be adjusted, the method further includes: if no lowering channel exists under all tenants, obtaining the actual threshold duty ratio of each tenant, wherein the actual threshold duty ratio is the duty ratio of the current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants; obtaining a duty ratio adjustment value of each tenant by multiplying an adjustment coefficient according to the difference between the average threshold duty ratio and the actual threshold duty ratio of each tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant; according to the system flow control threshold, updating the tenant threshold of each tenant according to the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
In one possible embodiment, the method further comprises: if the sum of the request transaction amounts of all the tenants exceeds the system flow control threshold, calculating the system discharge amount, and adjusting the system flow control threshold to be the sum of the request transaction amounts of all the tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold; according to the system discharge, reducing the tenant threshold of each tenant according to the fourth duty ratio of each tenant; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant; distributing channel thresholds for all channels under each tenant according to the current tenant threshold of each tenant and the fifth duty ratio of all channels under each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
In a possible implementation manner, the assigning a tenant threshold to each tenant according to the system flow control threshold includes: according to the system flow control threshold value and the current number of tenants, uniformly distributing tenant threshold values for each tenant; the allocating channel threshold for each channel under the tenant according to the tenant threshold of each tenant comprises: and according to the tenant threshold value of each tenant and the current channel number under the tenant, distributing channel threshold values for all channels under the tenant evenly.
In one possible embodiment, the method further comprises: maintaining closure of the channel satisfying a first condition, the first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold; closing channels meeting a second condition at intervals, wherein the second condition comprises that the ratio of the non-flow control transaction amount of the channel to the request transaction amount of the channel is lower than a preset second threshold value; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
In one possible embodiment, the method further comprises: acquiring the flow control transaction amount, the non-flow control transaction amount and the request transaction amount of each tenant in a preset time period; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant; calculating a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant; and taking the tenant with the risk value exceeding a preset third threshold value as the tenant to be adjusted.
In a second aspect, the present application provides a fluidic device comprising: the allocation module is used for allocating tenant thresholds for each tenant according to the system flow control threshold; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant; the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a tenant to be regulated and determining the release demand of a release channel of the tenant to be regulated, wherein the request transaction amount of the release channel is larger than the channel threshold of the release channel, and the release demand is the difference between the request transaction amount of the release channel and the channel threshold of the release channel; the determining module is further configured to determine a reducible amount of the reduced channel under the tenant to be adjusted, where the request transaction amount of the reduced channel is less than a channel threshold of the reduced channel, and the reducible amount is a difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel; the adjustment module is used for adjusting channel thresholds of all channels under the tenant to be adjusted according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, wherein the adjustment comprises the steps of reducing the channel thresholds of the reduction channel and improving the channel thresholds of the release channel, and the sum of the adjusted channel thresholds of all channels under the tenant to be adjusted is not larger than the tenant threshold of the tenant to be adjusted.
In a possible implementation manner, the adjusting module is specifically configured to obtain a total discharge amount and a total reduction amount of the tenant to be adjusted, where the total discharge amount is a sum of discharge amount requirements of all discharge channels under the tenant, and the total reduction amount is a sum of reducible amounts of all reduction channels under the tenant; the adjustment module is specifically further configured to calculate a first ratio of a discharge demand of each discharge channel under the tenant to be adjusted in a request transaction amount of the tenant to be adjusted if the total discharge of the tenant to be adjusted is not less than the total reduction of the tenant to be adjusted, where the request transaction amount of the tenant to be adjusted is a sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel; the adjustment module is specifically further configured to calculate a second duty ratio of a reducible amount of each reduction channel in the tenant to be adjusted in the total reduction amount of the tenant to be adjusted if the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted; and according to the total discharge amount of the tenant to be adjusted, reducing the channel threshold of the channel reduced under the tenant to be adjusted according to the second duty ratio corresponding to each channel reduced under the tenant to be adjusted, and improving the channel threshold of the discharge channel of the tenant to be adjusted, so that the channel threshold of the discharge channel is consistent with the request transaction amount of the discharge channel.
In a possible implementation manner, the adjusting module is further configured to calculate a total reduction amount of the other tenants if no reduction channel exists under the tenant to be adjusted and no reduction channel exists under the other tenants, where the total reduction amount of the other tenants is a sum of reducible amounts of all reduction channels under all the other tenants; the adjustment module is further configured to allocate the total reduction of the other tenants to the release channel under the tenant to be adjusted according to the third duty ratio of each release channel under the tenant to be adjusted, so as to improve the channel threshold of the release channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
In a possible implementation manner, the adjusting module is further configured to obtain an actual threshold duty ratio of each tenant if no reduced channel exists under all tenants, where the actual threshold duty ratio is a duty ratio of a current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants; the adjusting module is further configured to obtain a duty ratio adjusting value of each tenant by multiplying an adjusting coefficient according to a difference between an average threshold duty ratio and an actual threshold duty ratio of each tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant; the adjusting module is further configured to update the tenant threshold of each tenant according to the system flow control threshold and the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
In one possible embodiment, the apparatus further comprises: the flow control module is used for calculating the system discharge amount if the sum of the request transaction amounts of all tenants exceeds the system flow control threshold value, and adjusting the system flow control threshold value to be the sum of the request transaction amounts of all tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold; the flow control module is further used for reducing the tenant threshold value of each tenant according to the fourth duty ratio of each tenant according to the system discharge amount; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant; the flow control module is further configured to allocate channel thresholds for channels under each tenant according to a fifth duty ratio of each channel under each tenant according to a current tenant threshold of each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
In a possible implementation manner, the allocation module is specifically configured to averagely allocate a tenant threshold to each tenant according to the system flow control threshold and the current number of tenants; the distribution module is specifically further configured to evenly distribute channel thresholds for channels under the tenant according to the tenant threshold of each tenant and the current channel number under the tenant.
In one possible embodiment, the apparatus further comprises: a closing module for maintaining closing of channels satisfying a first condition, the first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold; the closing module is further used for closing channels meeting a second condition at intervals, and the second condition comprises that the ratio of the non-flow control transaction amount of the channel to the request transaction amount of the channel is lower than a preset second threshold value; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
In one possible embodiment, the apparatus further comprises: the wind control module is used for acquiring the flow control transaction amount, the non-flow control transaction amount and the request transaction amount of each tenant in a preset time period; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant; the wind control module is further used for calculating a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant; the wind control module is further configured to use a tenant whose risk value exceeds a predetermined third threshold value as the tenant to be adjusted.
In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to implement the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method of any of the first aspects by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program, characterized in that the computer program is executed by a processor by the method according to any of the first aspects.
The method, the device, the electronic equipment, the medium and the product for adjusting the flow control threshold comprise the steps of distributing tenant threshold values for each tenant according to the system flow control threshold value; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant; determining a tenant to be adjusted, and determining the discharge demand of a discharge channel of the tenant to be adjusted; determining the reducible amount of the reduced channel under the tenant to be adjusted; according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, adjusting the channel threshold of each channel of the tenant to be adjusted, wherein the adjustment comprises the steps of reducing the channel threshold of the reduction channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of each channel of the tenant to be adjusted after the adjustment is not more than the tenant threshold of the tenant to be adjusted. According to the scheme, the flow control threshold value is adjusted based on the discharge demand quantity and the reducible quantity, so that the channel threshold value can be adjusted within the range of the system flow control threshold value, and the situation that the transaction quantity of the whole system exceeds the system flow control threshold value due to the adjustment of the flow control threshold value of a certain tenant is avoided, and the system stability is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic application scenario diagram of a method for adjusting a flow control threshold according to an embodiment of the present application;
Fig. 2 is a flow chart of a method for adjusting a flow control threshold according to a first embodiment of the present application;
FIG. 3 is an example of distribution channel thresholds provided by an embodiment of the present application;
Fig. 4 is a tenant threshold example of allocating a new tenant provided by the embodiment of the present application;
FIG. 5 is a channel threshold example of allocating a new channel provided by an embodiment of the present application;
Fig. 6 is a schematic diagram of a device for adjusting a flow control threshold according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
First, the terms involved are explained:
Flow control threshold: as an upper flow limit, the flow exceeding the flow control threshold is controlled.
In the bank external business, there is a large flow of request transaction, in order to ensure the stability of the system, a flow control threshold is required to be set for control, the transaction processing is normally executed for the request transaction within the flow control threshold, and the transaction processing is not executed for the request transaction outside the flow control threshold.
Fig. 1 is a schematic view of an application scenario of a method for adjusting a flow control threshold according to an embodiment of the present application, and the application scenario is exemplified in combination with the illustrated scenario: and distributing tenant thresholds according to the system flow control threshold values, and distributing channel thresholds according to the tenant thresholds. In practical application, the request transaction amount of each channel is different, so that the release channel and the reduction channel of the tenant to be adjusted are determined. The request transaction amount of the discharge channel is larger than the channel threshold value, and the request transaction amount of the reduction channel is smaller than the channel threshold value. And adjusting the channel threshold under the tenant to be adjusted within the range of the tenant threshold.
The technical scheme of the present application and the technical scheme of the present application will be described in detail with specific examples. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. In describing the present application, the terms should be construed broadly in the art unless explicitly stated and limited otherwise. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example 1
Fig. 2 is a flow chart of a method for adjusting a flow control threshold according to a first embodiment of the present application, the method includes the following steps:
S101, distributing tenant thresholds for each tenant according to a system flow control threshold; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant;
S102, determining a tenant to be adjusted, and determining the release demand of a release channel of the tenant to be adjusted, wherein the request transaction amount of the release channel is larger than the channel threshold of the release channel, and the release demand is the difference between the request transaction amount of the release channel and the channel threshold of the release channel;
S103, determining the reducible amount of the reduced channel under the tenant to be adjusted, wherein the request transaction amount of the reduced channel is smaller than the channel threshold of the reduced channel, and the reducible amount is the difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel;
s104, according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, adjusting the channel threshold of each channel of the tenant to be adjusted, wherein the adjustment comprises the steps of reducing the channel threshold of the reduction channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of each channel of the tenant to be adjusted after the adjustment is not more than the tenant threshold of the tenant to be adjusted.
In combination with a scenario example, the system flow control threshold is a flow control threshold set by a system level, and for the part exceeding the system flow control threshold in the sum of the request transaction amounts of all tenants under the system, transaction processing is not performed. The tenant threshold is a flow control threshold set by the tenant level, and transaction processing is not performed on the part exceeding the tenant threshold in the sum of the request transaction amounts of all channels under the tenant. The channel threshold is a flow control threshold set by the channel hierarchy, and for the part exceeding the channel threshold in the request transaction amount of the channel, transaction processing is not performed.
As an example, the execution body of this embodiment may be an adjustment device of a flow control threshold, and there are various implementations of the adjustment device of the flow control threshold. For example, the program may be software, or a medium storing a related computer program, such as a usb disk; or the apparatus may be a physical device, such as a chip, a smart terminal, a computer, a server, etc., integrated with or having an associated computer program installed thereon.
In one example, S101 specifically includes: according to the system flow control threshold value and the current number of tenants, uniformly distributing tenant threshold values for each tenant; the allocating channel threshold for each channel under the tenant according to the tenant threshold of each tenant comprises: and according to the tenant threshold value of each tenant and the current channel number under the tenant, distributing channel threshold values for all channels under the tenant evenly.
As an implementation manner, a system flow control threshold is set in an initial state of the system. And according to the number of tenants under the system, the system flow control threshold value is averagely distributed to the tenants and is used as the tenant threshold value. And according to the number of channels under the tenant, distributing the tenant threshold value to the channels in average as the channel threshold value. For example, as shown in fig. 3, fig. 3 is a distribution channel threshold example. And setting the system flow control threshold as 1200, and if 2 tenants exist under the current system, distributing the system flow control threshold to the tenants averagely to obtain the tenant threshold of 600 for the tenant A and the tenant threshold of 600 for the tenant B. And (3) distributing the tenant threshold value to channels in average according to the number of channels under tenant, so as to obtain channel threshold values of the channel A1, the channel A2 and the channel A3 as 200, and channel threshold values of the channel B1 and the channel B2 as 300.
In practical applications, tenants or channels may be newly added as required, as shown in fig. 4, fig. 4 is a tenant threshold example of allocating newly added tenants. Setting the system flow control threshold as 1200, wherein 2 tenants are initially arranged under the system, and when tenant C is newly added, the system flow control threshold is evenly distributed according to 3 tenants, so that tenant thresholds of tenant A, tenant B and tenant C are respectively 400. As shown in fig. 5, fig. 5 is a channel threshold example of allocating a new channel. Setting the system flow control threshold as 1200, wherein 2 channels are initially arranged under the tenant B, and when the channel B3 is newly added, uniformly distributing the tenant threshold of the tenant B according to the 3 channels to obtain channel thresholds of the channel B1, the channel B2 and the channel B3 as 200 respectively.
In combination with a scene example, in the initial state of the system, only one system flow control threshold is required to be set, so that channel thresholds of all channels can be automatically obtained, and the sum of all channel thresholds is equal to the system flow control threshold.
Based on the above embodiment, the tenant threshold is obtained by average allocation of the system flow control threshold, and the channel threshold is obtained by average allocation of the tenant threshold, and the sum of the channel thresholds is equal to the system flow control threshold. Therefore, the situation that the integral system resources cannot be considered due to direct channel threshold setting of the tenant side is avoided.
In one example, determining the tenant to be adjusted includes: acquiring the flow control transaction amount, the non-flow control transaction amount and the request transaction amount of each tenant in a preset time period; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant; calculating a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant; and taking the tenant with the risk value exceeding a preset third threshold value as the tenant to be adjusted.
In combination with the scenario instance, when the tenant receives the request transaction, the request transaction amount in the tenant threshold is processed, wherein the request transaction amount in the tenant threshold is the non-flow control transaction amount. And limiting the traffic of the request exceeding the tenant threshold value, wherein the traffic of the request exceeding the tenant threshold value is the traffic of the flow control, and the request exceeding the tenant threshold value is not processed. The first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant indicates that each tenant generates flow control transaction amount when generating non-flow control transaction on average, and the higher the first ratio is, the more parts of the request transaction amount received by the tenant exceed the tenant threshold value are indicated. The weight of the tenant represents the duty ratio of the request transaction amount received by each tenant, and the higher the weight is, the more the request transaction amount received by the tenant is relatively. The more portions of the tenant's received request transaction amount exceeds the tenant threshold, the higher the risk value, the relatively more request transaction amounts the tenant receives, and the higher the risk value.
Based on the above embodiment, all tenants are uniformly evaluated from the system level, so that a risk tenant is more accurately found, and then the corresponding flow control threshold adjustment is performed, so that the system stability is improved.
In another example, determining the tenant to be adjusted further comprises: and taking all tenants under the system as tenants to be adjusted.
Based on the embodiment, the flow control threshold value of all tenants can be adjusted more comprehensively, so that the system stability is improved.
In one example, S104 specifically includes: acquiring the total discharge amount and the total reduction amount of the tenant to be adjusted, wherein the total discharge amount is the sum of discharge amount requirements of all discharge channels under the tenant, and the total reduction amount is the sum of reducible amounts of all reduction channels under the tenant; if the total discharge amount of the tenant to be adjusted is not smaller than the total reduction amount of the tenant to be adjusted, calculating a first ratio of discharge amount demand of each discharge amount channel under the tenant to be adjusted in request transaction amounts of the tenant to be adjusted, wherein the request transaction amounts of the tenant to be adjusted are the sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel; if the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted, calculating a second ratio of the reducible amount of each reduction channel in the total reduction amount of the tenant to be adjusted; and according to the total discharge amount of the tenant to be adjusted, reducing the channel threshold of the channel reduced under the tenant to be adjusted according to the second duty ratio corresponding to each channel reduced under the tenant to be adjusted, and improving the channel threshold of the discharge channel of the tenant to be adjusted, so that the channel threshold of the discharge channel is consistent with the request transaction amount of the discharge channel.
In combination with the scenario example, on the one hand, if the total discharge amount of the tenant to be adjusted is not less than the total reduction amount of the tenant to be adjusted, it is explained that the sum of discharge demand amounts of all discharge channels under the tenant to be adjusted cannot be offset by distributing the sum of reducible amounts of all reduction channels, so that the demand of each discharge channel for the channel threshold is distributed according to the demand of each discharge channel. For the first high-ratio discharge channel, the discharge demand is relatively large, and the demand for the discharge threshold is relatively large, so that relatively more channel thresholds are allocated to the discharge channel. For example, as shown in fig. 3. If tenant A is the tenant to be adjusted, channel A1 requests transaction amount 250, discharge demand amount 50, channel A2 requests transaction amount 300, discharge demand amount 100, channel A3 requests transaction amount 150, and the amount can be reduced by 50. The first duty cycle for channel A1 was calculated to be 33.3% and the first duty cycle for channel A2 was calculated to be 66.7%. The decreasable amount 50 is dispensed according to the first duty cycle, channel A1 increases the channel threshold 16.7, and channel A1 increases the channel threshold 33.3. On the other hand, if the total discharge amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted, the sum of the reducible amounts of all the reduction channels under the tenant to be adjusted is described, and the balance is remained after the discharge demand of the discharge channel is counteracted by the reassigning of the discharge channel, so that the reducible amounts of all the reduction channels do not need to be used, and the reduction can be performed according to the quantity of the reducible amounts of each reduction channel. For the second ratio-of-channels reduction, it may be reduced by a relatively large amount, thus reducing it by a relatively large channel threshold. For example, as shown in fig. 3. If tenant A is the tenant to be regulated, the channel A1 request transaction amount is 250, the discharge demand amount is 50, the channel A2 request transaction amount is 100, the reducible amount is 100, the channel A3 request transaction amount is 50, and the reducible amount is 150. The second duty cycle for channel A2 was calculated to be 40% and the second duty cycle for channel A3 was calculated to be 60%. The discharge demand 50 is allocated according to the second duty ratio, channel A2 is reduced by channel threshold 20, channel A3 is reduced by channel threshold 30, and the reduced channel threshold is allocated to channel A1.
Based on the above embodiment, the lowerable channel threshold of the lowerable channel is reassigned to the stocking channel, and resources are effectively utilized on the premise of not changing the tenant threshold.
To cope with the situation that all channels are fully loaded under the tenant to be adjusted, in one example, after S102, the method further includes: if no lowering channel exists under the tenant to be adjusted and lowering channels exist under other tenants, calculating the total lowering amount of the other tenants, wherein the total lowering amount of the other tenants is the sum of the lowering amounts of all lowering channels under all other tenants; distributing the total reduction of the other tenants to the discharge channels under the tenant to be adjusted according to the third duty ratio of each discharge channel under the tenant to be adjusted so as to improve the channel threshold of the discharge channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
As an implementation manner, the total reduction of the reduction channels of other tenants is calculated, and the reduction channels are redistributed according to the reduction demand ratio of the reduction channels of the tenants to be adjusted.
In combination with the scenario example, if all channels under the tenant to be adjusted are in a full load condition, there is no reduced channel, and the reducible amount cannot be redistributed. At this time, the reducible amount of the reduced channel under other tenants is acquired and is reassigned to the reduced channel under the tenant to be adjusted.
Based on the above embodiment, under the condition that all channels under the tenant to be adjusted are fully loaded, the total reduction of the reduction channels under other tenants is obtained to be redistributed to the reduction channels under the tenant to be adjusted, and resources are effectively utilized on the premise that the system flow control threshold value is not changed.
To cope with the situation that all channels are fully loaded under all tenants, in one example, after S102, the method further includes: if no lowering channel exists under all tenants, obtaining the actual threshold duty ratio of each tenant, wherein the actual threshold duty ratio is the duty ratio of the current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants; obtaining a duty ratio adjustment value of each tenant by multiplying an adjustment coefficient according to the difference between the average threshold duty ratio and the actual threshold duty ratio of each tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant; according to the system flow control threshold, updating the tenant threshold of each tenant according to the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
As one example, the following table shows:
Taking tenant a as an example, the current actual threshold of tenant a accounts for 60% of the system flow control threshold, and currently there are 5 tenants accessing the system, and the average threshold of each tenant accounts for 100%/5=20%. The difference between the average threshold duty cycle and the actual threshold duty cycle of the computing tenant a is 20% -60% = -40%. And calculating the product of the difference value and the adjustment coefficient to obtain the adjustment percentage-4% of the tenant A. The sum of the actual threshold and the adjustment percentage of the computing tenant a yields a duty cycle adjustment value of 56%. And updating the tenant threshold value of the tenant A, so that the updated tenant threshold value of the tenant A accounts for 56% of the system flow control threshold value. And distributing the updated tenant threshold value of the tenant A according to the request transaction amount ratio of each channel under the tenant A to obtain the updated channel threshold value of each channel under the tenant A. In practical application, the adjustment coefficient can be adjusted according to the needs of the user.
In combination with the scenario example, if all channels are fully loaded under all tenants, there is no reduced channel, and the reducible amount cannot be redistributed. At this time, the tenant threshold values under all tenants are redistributed according to the use condition of the current tenant threshold value, and then the redistributed tenant threshold values are redistributed according to the request transaction amount of the channels under the tenants.
Based on the above embodiment, when all channels are fully loaded under all tenants, the tenant threshold of each tenant is balanced according to the average tenant threshold ratio, the tenants are uniformly controlled at the system level, and the tenant threshold adjustment is performed by considering the resources of the whole system, so that the system stability is improved.
In one example, the method for adjusting the flow control threshold further includes: if the sum of the request transaction amounts of all the tenants exceeds the system flow control threshold, calculating the system discharge amount, and adjusting the system flow control threshold to be the sum of the request transaction amounts of all the tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold; according to the system discharge, reducing the tenant threshold of each tenant according to the fourth duty ratio of each tenant; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant; distributing channel thresholds for all channels under each tenant according to the current tenant threshold of each tenant and the fifth duty ratio of all channels under each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
In combination with the scenario example, if the sum of the request transaction amounts of all tenants exceeds the system flow control threshold, the system flow control threshold cannot meet the request transaction amount requirement, and the request transaction exceeding the system flow control threshold fails. At this time, the system flow control threshold is adjusted to be the sum of the request transaction amounts of all tenants, so that the tenant transaction is ensured not to exceed the system flow control threshold at the system level, and the normal operation can be performed. And adjusting a channel threshold according to the adjusted system flow control threshold, and controlling from a channel level, wherein the channel is the level for actually executing the transaction.
Based on the above embodiment, the system flow control threshold can be adjusted from the system level under the condition that the sum of the request transaction amounts of all tenants exceeds the system flow control threshold, and the channel threshold is adjusted according to the adjusted system flow control threshold, so that the adjustment of the system flow control threshold is consistent with the adjustment of the channel threshold, the adjustment of the channel threshold is prevented from being only performed without considering the use condition of system resources, and the system stability is improved.
In the above example, the adjustment of the threshold is exemplarily described so as to maintain the transaction to be normally performed in the case where the requested transaction amount is greater than the threshold. In practical application, there is a case where a channel failure causes a transaction failure, and a processing method for such a case is described below as an example.
In one example, the method for adjusting the flow control threshold further includes: maintaining closure of the channel satisfying a first condition, the first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold; closing channels meeting a second condition at intervals, wherein the second condition comprises that the ratio of the non-flow control transaction amount of the channel to the request transaction amount of the channel is lower than a preset second threshold value; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
For example, in combination with a scenario, the non-flow control transaction may occupy resources, and for channels in which the transaction failure occurs continuously and the duration exceeds a predetermined first threshold, and channels in which the ratio of the non-flow control transaction amount in the request transaction amount of the channels is lower than a predetermined second threshold, may occupy more resources. Thus, for such channels, closing is performed. Wherein the stay closed is a continuous closed channel for which the transaction processing cannot be performed at all for the channel satisfying the first condition, and thus is kept closed. The interval closing is to close the channel for a preset time period and then open the channel for a preset time period. For channels that meet the second condition, transactions that require a large amount of transactions cannot be performed, and therefore the gap is closed to reduce the amount of non-fluid transactions.
For example, if the channel threshold is 200, the requested transaction amount is 250, and 50 of the requested transactions that exceed the channel threshold are non-flow controlled transaction amounts.
In practical application, after the channel fault is found and solved, the closing of the channel is released.
Based on the above embodiment, the influence of channel faults on the system is solved by closing the channels.
In the method for adjusting the flow control threshold, according to the system flow control threshold, tenant thresholds are allocated to each tenant; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant; determining a tenant to be adjusted, and determining the discharge demand of a discharge channel of the tenant to be adjusted; determining the reducible amount of the reduced channel under the tenant to be adjusted; according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, adjusting the channel threshold of each channel of the tenant to be adjusted, wherein the adjustment comprises the steps of reducing the channel threshold of the reduction channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of each channel of the tenant to be adjusted after the adjustment is not more than the tenant threshold of the tenant to be adjusted. According to the scheme, the flow control threshold value is adjusted based on the discharge demand quantity and the reducible quantity, so that the channel threshold value can be adjusted within the range of the system flow control threshold value, and the situation that the transaction quantity of the whole system exceeds the system flow control threshold value due to the adjustment of the flow control threshold value of a certain tenant is avoided, and the system stability is improved.
Example two
Fig. 6 is a schematic structural diagram of a device for adjusting a flow control threshold according to a third embodiment of the present application, as shown in fig. 6, where the device for adjusting a flow control threshold includes:
an allocation module 61, configured to allocate tenant thresholds to each tenant according to the system flow control threshold; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant;
A determining module 62, configured to determine a tenant to be adjusted, and determine a release demand of a release channel of the tenant to be adjusted, where the requested transaction amount of the release channel is greater than a channel threshold of the release channel, and the release demand is a difference between the requested transaction amount of the release channel and the channel threshold of the release channel;
The determining module 62 is further configured to determine a reducible amount of the reduced channel under the tenant to be adjusted, where the request transaction amount of the reduced channel is less than a channel threshold of the reduced channel, and the reducible amount is a difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel;
The adjustment module 63 is configured to adjust channel thresholds of channels under the tenant to be adjusted according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduced channel, where the adjustment includes reducing the channel threshold of the reduced channel and increasing the channel threshold of the release channel, and the sum of the adjusted channel thresholds of the channels under the tenant to be adjusted is not greater than the tenant threshold of the tenant to be adjusted.
In one example, the allocation module 61 is specifically configured to averagely allocate a tenant threshold for each tenant according to the system flow control threshold and the current number of tenants; the distribution module 61 is specifically further configured to evenly distribute channel thresholds for channels under the tenant according to the tenant threshold of each tenant and the current channel number under the tenant.
As an implementation, in the initial state of the system, the allocation module 61 sets a system flow control threshold. And according to the number of tenants under the system, the system flow control threshold value is averagely distributed to the tenants and is used as the tenant threshold value. And according to the number of channels under the tenant, distributing the tenant threshold value to the channels in average as the channel threshold value.
In practical applications, the allocation module 61 may add tenants or channels as needed. In combination with a scene example, in the initial state of the system, only one system flow control threshold is required to be set, so that channel thresholds of all channels can be automatically obtained, and the sum of all channel thresholds is equal to the system flow control threshold.
Based on the above embodiment, the tenant threshold is obtained by average allocation of the system flow control threshold, and the channel threshold is obtained by average allocation of the tenant threshold, and the sum of the channel thresholds is equal to the system flow control threshold. Therefore, the situation that the integral system resources cannot be considered due to direct channel threshold setting of the tenant side is avoided.
In one example, the adjustment device of the flow control threshold further includes a wind control module 66, configured to obtain, in a preset period of time, a flow control transaction amount, a non-flow control transaction amount, and a request transaction amount of each tenant; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant; the wind control module 66 is further configured to calculate a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant; the wind control module 66 is further configured to use a tenant whose risk value exceeds a predetermined third threshold value as the tenant to be adjusted.
In connection with the scenario instance, when a tenant receives a request transaction, the wind control module 66 processes the request transaction amount within a tenant threshold, which is an unfluable transaction amount. And limiting the traffic of the request exceeding the tenant threshold value, wherein the traffic of the request exceeding the tenant threshold value is the traffic of the flow control, and the request exceeding the tenant threshold value is not processed. The first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant indicates that each tenant generates flow control transaction amount when generating non-flow control transaction on average, and the higher the first ratio is, the more parts of the request transaction amount received by the tenant exceed the tenant threshold value are indicated. The weight of the tenant represents the duty ratio of the request transaction amount received by each tenant, and the higher the weight is, the more the request transaction amount received by the tenant is relatively. The more portions of the tenant's received request transaction amount exceeds the tenant threshold, the higher the risk value, the relatively more request transaction amounts the tenant receives, and the higher the risk value.
In another example, determining the tenant to be adjusted further comprises: and taking all tenants as tenants to be adjusted.
Based on the above embodiments, all tenants are uniformly evaluated from the system level, so that the risk tenant is found more accurately.
In one example, the adjusting module 63 is specifically configured to obtain a total discharge amount and a total reduction amount of the tenant to be adjusted, where the total discharge amount is a sum of discharge amount requirements of all discharge channels under the tenant, and the total reduction amount is a sum of reducible amounts of all reduction channels under the tenant; the adjustment module 63 is specifically further configured to calculate a first ratio of the discharge demand of each discharge channel under the tenant to be adjusted in the request transaction amount of the tenant to be adjusted, if the total discharge of the tenant to be adjusted is not less than the total reduction of the tenant to be adjusted, where the request transaction amount of the tenant to be adjusted is a sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel; the adjustment module 63 is specifically further configured to calculate a second duty ratio of the reducible amount of each reduction channel in the total reduction amount of the tenant to be adjusted, if the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted; and according to the total discharge amount of the tenant to be adjusted, reducing the channel threshold of the channel reduced under the tenant to be adjusted according to the second duty ratio corresponding to each channel reduced under the tenant to be adjusted, and improving the channel threshold of the discharge channel of the tenant to be adjusted, so that the channel threshold of the discharge channel is consistent with the request transaction amount of the discharge channel.
In combination with the scenario, on the one hand, if the total discharge of the tenant to be adjusted is not smaller than the total reduction of the tenant to be adjusted, it is stated that the sum of discharge demands of all discharge channels under the tenant to be adjusted cannot be offset by distributing the sum of reducible amounts of all reduction channels, so that the demands of each discharge channel on the channel threshold are distributed according to each discharge channel. For the first high-ratio discharge channel, the discharge demand is relatively large, and the demand for the discharge threshold is relatively large, so that relatively more channel thresholds are allocated to the discharge channel. On the other hand, if the total discharge amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted, the sum of the reducible amounts of all the reduction channels under the tenant to be adjusted is described, and the balance is remained after the discharge demand of the discharge channel is counteracted by the reassigning of the discharge channel, so that the reducible amounts of all the reduction channels do not need to be used, and the reduction can be performed according to the quantity of the reducible amounts of each reduction channel. For the second ratio-of-channels reduction, it may be reduced by a relatively large amount, thus reducing it by a relatively large channel threshold.
Based on the above embodiment, the lowerable channel threshold of the lowerable channel is reassigned to the stocking channel, and resources are effectively utilized on the premise of not changing the tenant threshold.
In order to cope with the situation that all channels are fully loaded under the tenant to be adjusted, in one example, the adjustment module 63 is further configured to calculate a total reduction amount of the other tenant if there is no reduction channel under the tenant to be adjusted and there is a reduction channel under the other tenant, where the total reduction amount of the other tenant is a sum of reducible amounts of all reduction channels under all other tenants; the adjustment module 63 is further configured to allocate the total reduction of the other tenants to the release channels under the tenant to be adjusted according to the third duty ratio of each release channel under the tenant to be adjusted, so as to improve the channel threshold of the release channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
As an implementation manner, the adjustment module 63 calculates the total reduction of the reduction channels of other tenants, and redistributes the reduction demand ratio of the reduction channels of the tenant to be adjusted.
In combination with the scenario example, if all channels under the tenant to be adjusted are in a full load condition, there is no reduced channel, and the reducible amount cannot be redistributed. At this time, the reducible amount of the reduced channel under other tenants is acquired and is reassigned to the reduced channel under the tenant to be adjusted.
Based on the above embodiment, under the condition that all channels under the tenant to be adjusted are fully loaded, the total reduction of the reduction channels under other tenants is obtained to be redistributed to the reduction channels under the tenant to be adjusted, and resources are effectively utilized on the premise that the system flow control threshold value is not changed.
In order to cope with the situation that all channels are fully loaded under all tenants, in one example, the adjusting module 63 is further configured to obtain an actual threshold duty ratio of each tenant if no reduced channel exists under all tenants, where the actual threshold duty ratio is a duty ratio of a current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants; the adjusting module 63 is further configured to obtain a duty ratio adjustment value of each tenant by multiplying an adjustment coefficient according to a difference between an average threshold duty ratio and an actual threshold duty ratio of the tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant; the adjusting module 63 is further configured to update, according to the system flow control threshold, a tenant threshold of each tenant according to the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
Based on the above embodiment, when all channels are fully loaded under all tenants, the tenant threshold of each tenant is balanced according to the average tenant threshold ratio, the tenants are uniformly controlled at the system level, and the tenant threshold adjustment is performed by considering the resources of the whole system, so that the system stability is improved.
In one example, the adjusting device of the flow control threshold value further includes: the flow control module 64 is configured to calculate a system release amount if the sum of the request transaction amounts of all tenants exceeds the system flow control threshold, and adjust the system flow control threshold to be the sum of the request transaction amounts of all tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold; the flow control module 64 is further configured to reduce, according to the system discharge amount and the fourth duty ratio of each tenant, a tenant threshold of the tenant; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant; the flow control module 64 is further configured to allocate channel thresholds for channels under the tenant according to a fifth duty ratio of the channels under the tenant according to a current tenant threshold of each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
In combination with the scenario example, if the sum of the request transaction amounts of all tenants exceeds the system flow control threshold, the system flow control threshold cannot meet the request transaction amount requirement, and the request transaction exceeding the system flow control threshold fails. The flow control module 64 adjusts the system flow control threshold to be the sum of the request transaction amounts of all tenants, so as to ensure that the tenant transaction does not exceed the system flow control threshold at the system level and can be normally performed. And adjusting a channel threshold according to the adjusted system flow control threshold, and controlling from a channel level, wherein the channel is the level for actually executing the transaction.
Based on the above embodiment, the system flow control threshold can be adjusted from the system level under the condition that the sum of the request transaction amounts of all tenants exceeds the system flow control threshold, and the channel threshold is adjusted according to the adjusted system flow control threshold, so that the adjustment of the system flow control threshold is consistent with the adjustment of the channel threshold, the adjustment of the channel threshold is prevented from being only performed without considering the use condition of system resources, and the system stability is improved.
In the above example, the adjustment of the threshold is exemplarily described so as to maintain the transaction to be normally performed in the case where the requested transaction amount is greater than the threshold. In practical application, there is a case where a channel failure causes a transaction failure, and a processing method for such a case is described below as an example.
In one example, the adjusting device of the flow control threshold value further includes: a closing module 65 for maintaining closing of the channel satisfying a first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold; a closing module 65, further configured to close channels that satisfy a second condition at intervals, where the second condition includes that a ratio of non-fluid transaction amounts of channels in the requested transaction amounts of the channels is below a predetermined second threshold; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
For example, in combination with a scenario, the non-flow control transaction may occupy resources, and for channels in which the transaction failure occurs continuously and the duration exceeds a predetermined first threshold, and channels in which the ratio of the non-flow control transaction amount in the request transaction amount of the channels is lower than a predetermined second threshold, may occupy more resources. Thus, the shutdown module 65 shuts down for such channels. Wherein the stay closed is a continuous closed channel for which the transaction processing cannot be performed at all for the channel satisfying the first condition, and thus is kept closed. The interval closing is to close the channel for a preset time period and then open the channel for a preset time period. For channels that meet the second condition, transactions that require a large amount of transactions cannot be performed, and therefore the gap is closed to reduce the amount of non-fluid transactions.
For example, if the channel threshold is 200, the requested transaction amount is 250, and 50 of the requested transactions that exceed the channel threshold are non-flow controlled transaction amounts.
In practical application, after the channel fault is found and solved, the closing of the channel can be released. Based on the above embodiment, the influence of channel faults on the system is solved by closing the channels.
In the device for adjusting the flow control threshold provided in this embodiment, the allocation module allocates a tenant threshold to each tenant according to the system flow control threshold; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant; a determining module determines a tenant to be adjusted and determines the discharge demand of a discharge channel of the tenant to be adjusted; the determining module determines the reducible amount of the reduced channel of the tenant to be adjusted; the adjustment module adjusts channel thresholds of all channels under the tenant to be adjusted according to the release demand of the tenant to be adjusted and the reducible amount of the reduced channel, wherein the adjustment comprises the steps of reducing the channel thresholds of the reduced channel and improving the channel thresholds of the release channel, and the sum of the adjusted channel thresholds of all channels under the tenant to be adjusted is not larger than the tenant threshold of the tenant to be adjusted. According to the scheme, the flow control threshold value is adjusted based on the discharge demand quantity and the reducible quantity, so that the channel threshold value can be adjusted within the range of the system flow control threshold value, and the situation that the transaction quantity of the whole system exceeds the system flow control threshold value due to the adjustment of the flow control threshold value of a certain tenant is avoided, and the system stability is improved.
Example III
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 7, where the electronic device includes:
A processor 291, the electronic device further comprising a memory 292; a communication interface (Communication Interface) 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for information transfer. The processor 291 may call logic instructions in the memory 292 to perform the methods of the above-described embodiments.
Further, the logic instructions in memory 292 described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running software programs, instructions and modules stored in the memory 292, i.e., implements the methods of the method embodiments described above.
Memory 292 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. Further, memory 292 may include high-speed random access memory, and may also include non-volatile memory.
Embodiments of the present application provide a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a method as described in the previous embodiments.
Embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described in the previous embodiments.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (15)
1. A method for adjusting a flow control threshold, comprising:
According to the system flow control threshold value, assigning a tenant threshold value for each tenant; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant;
determining a tenant to be adjusted, and determining the discharge demand of a discharge channel of the tenant to be adjusted, wherein the request transaction amount of the discharge channel is larger than a channel threshold of the discharge channel, and the discharge demand is the difference between the request transaction amount of the discharge channel and the channel threshold of the discharge channel;
determining a reducible amount of a reduced channel under the tenant to be adjusted, wherein the request transaction amount of the reduced channel is smaller than a channel threshold of the reduced channel, and the reducible amount is a difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel;
According to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduction channel, adjusting the channel threshold of each channel of the tenant to be adjusted, wherein the adjustment comprises the steps of reducing the channel threshold of the reduction channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of each channel of the tenant to be adjusted after the adjustment is not more than the tenant threshold of the tenant to be adjusted;
The adjusting the channel threshold of each channel under the tenant to be adjusted according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduced channel comprises the following steps:
Acquiring the total discharge amount and the total reduction amount of the tenant to be adjusted, wherein the total discharge amount is the sum of discharge amount requirements of all discharge channels under the tenant, and the total reduction amount is the sum of reducible amounts of all reduction channels under the tenant;
if the total discharge amount of the tenant to be adjusted is not smaller than the total reduction amount of the tenant to be adjusted, calculating a first ratio of discharge amount demand of each discharge amount channel under the tenant to be adjusted in request transaction amounts of the tenant to be adjusted, wherein the request transaction amounts of the tenant to be adjusted are the sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel;
If the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted, calculating a second ratio of the reducible amount of each reduction channel in the total reduction amount of the tenant to be adjusted; according to the total discharge amount of the tenant to be adjusted, reducing channel thresholds of the lowering channels of the tenant to be adjusted according to a second duty ratio corresponding to each lowering channel of the tenant to be adjusted, and improving the channel thresholds of the discharging channels of the tenant to be adjusted so that the channel thresholds of the discharging channels are consistent with the request transaction amount of the discharging channels;
the method further comprises the steps of:
If the sum of the request transaction amounts of all the tenants exceeds the system flow control threshold, calculating the system discharge amount, and adjusting the system flow control threshold to be the sum of the request transaction amounts of all the tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold;
According to the system discharge, reducing the tenant threshold of each tenant according to the fourth duty ratio of each tenant; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant;
Distributing channel thresholds for all channels under each tenant according to the current tenant threshold of each tenant and the fifth duty ratio of all channels under each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
2. The method of claim 1, wherein after determining the bid demand of the tenant bid channel to be adjusted, further comprising:
If no lowering channel exists under the tenant to be adjusted and lowering channels exist under other tenants, calculating the total lowering amount of the other tenants, wherein the total lowering amount of the other tenants is the sum of the lowering amounts of all lowering channels under all other tenants;
distributing the total reduction of the other tenants to the discharge channels under the tenant to be adjusted according to the third duty ratio of each discharge channel under the tenant to be adjusted so as to improve the channel threshold of the discharge channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
3. The method of claim 1, wherein after determining the bid demand of the tenant bid channel to be adjusted, further comprising:
If no lowering channel exists under all tenants, obtaining the actual threshold duty ratio of each tenant, wherein the actual threshold duty ratio is the duty ratio of the current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants;
Obtaining a duty ratio adjustment value of each tenant by multiplying an adjustment coefficient according to the difference between the average threshold duty ratio and the actual threshold duty ratio of each tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant;
according to the system flow control threshold, updating the tenant threshold of each tenant according to the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
4. The method of claim 1, wherein assigning tenant thresholds to each tenant according to the system flow control threshold comprises:
according to the system flow control threshold value and the current number of tenants, uniformly distributing tenant threshold values for each tenant;
The allocating channel threshold for each channel under the tenant according to the tenant threshold of each tenant comprises:
And according to the tenant threshold value of each tenant and the current channel number under the tenant, distributing channel threshold values for all channels under the tenant evenly.
5. The method according to any one of claims 1-4, further comprising:
Maintaining closure of the channel satisfying a first condition, the first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold;
Closing channels meeting a second condition at intervals, wherein the second condition comprises that the ratio of the non-flow control transaction amount of the channel to the request transaction amount of the channel is lower than a preset second threshold value; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
6. The method according to any one of claims 1-4, further comprising:
acquiring the flow control transaction amount, the non-flow control transaction amount and the request transaction amount of each tenant in a preset time period; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant;
Calculating a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant;
And taking the tenant with the risk value exceeding a preset third threshold value as the tenant to be adjusted.
7. An apparatus for adjusting a flow control threshold, comprising:
the allocation module is used for allocating tenant thresholds for each tenant according to the system flow control threshold; distributing channel thresholds for channels under each tenant according to the tenant threshold of each tenant;
The system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a tenant to be regulated and determining the release demand of a release channel of the tenant to be regulated, wherein the request transaction amount of the release channel is larger than the channel threshold of the release channel, and the release demand is the difference between the request transaction amount of the release channel and the channel threshold of the release channel;
The determining module is further configured to determine a reducible amount of the reduced channel under the tenant to be adjusted, where the request transaction amount of the reduced channel is less than a channel threshold of the reduced channel, and the reducible amount is a difference between the channel threshold of the reduced channel and the request transaction amount of the reduced channel;
The adjustment module is used for adjusting channel thresholds of all channels under the tenant to be adjusted according to the release demand of the release channel of the tenant to be adjusted and the reducible amount of the reduced channel, wherein the adjustment comprises the steps of reducing the channel threshold of the reduced channel and improving the channel threshold of the release channel, and the sum of the channel thresholds of all channels under the tenant to be adjusted after adjustment is not more than the tenant threshold of the tenant to be adjusted;
The adjusting module is specifically configured to obtain a total discharge amount and a total reduction amount of the tenant to be adjusted, where the total discharge amount is a sum of discharge amount demand amounts of all discharge amount channels under the tenant, and the total reduction amount is a sum of reducible amounts of all reduction channels under the tenant;
The adjustment module is specifically further configured to calculate a first ratio of a discharge demand of each discharge channel under the tenant to be adjusted in a request transaction amount of the tenant to be adjusted if the total discharge of the tenant to be adjusted is not less than the total reduction of the tenant to be adjusted, where the request transaction amount of the tenant to be adjusted is a sum of the request transaction amounts of all channels under the tenant to be adjusted; and distributing the total reduction of the tenant to be adjusted to the release channel under the tenant to be adjusted according to the first duty ratio corresponding to each release channel under the tenant to be adjusted so as to improve the channel threshold of the release channel;
The adjustment module is specifically further configured to calculate a second duty ratio of a reducible amount of each reduction channel in the tenant to be adjusted in the total reduction amount of the tenant to be adjusted if the total release amount of the tenant to be adjusted is smaller than the total reduction amount of the tenant to be adjusted; according to the total discharge amount of the tenant to be adjusted, reducing channel thresholds of the lowering channels of the tenant to be adjusted according to a second duty ratio corresponding to each lowering channel of the tenant to be adjusted, and improving the channel thresholds of the discharging channels of the tenant to be adjusted so that the channel thresholds of the discharging channels are consistent with the request transaction amount of the discharging channels;
The apparatus further comprises:
The flow control module is used for calculating the system discharge amount if the sum of the request transaction amounts of all tenants exceeds the system flow control threshold value, and adjusting the system flow control threshold value to be the sum of the request transaction amounts of all tenants; the system release is the difference between the sum of the request transaction amounts of all tenants and the system flow control threshold;
The flow control module is further used for reducing the tenant threshold value of each tenant according to the fourth duty ratio of each tenant according to the system discharge amount; the fourth duty ratio is the duty ratio of the request transaction amount of the tenant in the sum of the request transaction amounts of all tenants, and the request transaction amount of the tenant is the sum of the request transaction amounts of all channels under the tenant;
The flow control module is further configured to allocate channel thresholds for channels under each tenant according to a fifth duty ratio of each channel under each tenant according to a current tenant threshold of each tenant; the fifth duty ratio is the duty ratio of the request transaction amount of the channel in the request transaction amount of the tenant where the channel is located.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
The adjustment module is further configured to calculate a total reduction amount of the other tenants if no reduction channel exists under the tenant to be adjusted and a reduction channel exists under the other tenants, where the total reduction amount of the other tenants is a sum of reducible amounts of all reduction channels under all the other tenants;
The adjustment module is further configured to allocate the total reduction of the other tenants to the release channel under the tenant to be adjusted according to the third duty ratio of each release channel under the tenant to be adjusted, so as to improve the channel threshold of the release channel; the third duty ratio is the duty ratio of the discharge demand of the discharge channel in the sum of the discharge demands of all the discharge channels of the tenant to be adjusted.
9. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
The adjusting module is further configured to obtain an actual threshold duty ratio of each tenant if no reducing channel exists under all tenants, where the actual threshold duty ratio is a duty ratio of a current tenant threshold of the tenant in the system flow control threshold; obtaining an average threshold duty ratio of each tenant, wherein the average threshold duty ratio is the reciprocal of the number of all current tenants;
The adjusting module is further configured to obtain a duty ratio adjusting value of each tenant by multiplying an adjusting coefficient according to a difference between an average threshold duty ratio and an actual threshold duty ratio of each tenant; and adjusting the actual threshold duty ratio of each tenant according to the duty ratio adjustment value of each tenant;
The adjusting module is further configured to update the tenant threshold of each tenant according to the system flow control threshold and the adjusted actual threshold duty ratio of each tenant; and updating the channel threshold value of each channel under the tenant according to the tenant threshold value of each tenant and the ratio of the request transaction amount of each channel under the tenant to the sum of the request transaction amounts of all channels under the tenant.
10. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
The allocation module is specifically configured to averagely allocate a tenant threshold to each tenant according to the system flow control threshold and the current tenant number;
The distribution module is specifically further configured to evenly distribute channel thresholds for channels under the tenant according to the tenant threshold of each tenant and the current channel number under the tenant.
11. The apparatus according to any one of claims 7-10, wherein the apparatus further comprises:
a closing module for maintaining closing of channels satisfying a first condition, the first condition comprising a continuous occurrence of a transaction failure and a duration exceeding a predetermined first threshold;
The closing module is further used for closing channels meeting a second condition at intervals, and the second condition comprises that the ratio of the non-flow control transaction amount of the channel to the request transaction amount of the channel is lower than a preset second threshold value; the non-flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the flow control transaction amount of the channel, and the flow control transaction amount of the channel is the difference between the request transaction amount of the channel and the channel threshold value of the channel.
12. The apparatus according to any one of claims 7-10, wherein the apparatus further comprises:
The wind control module is used for acquiring the flow control transaction amount, the non-flow control transaction amount and the request transaction amount of each tenant in a preset time period; the flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the tenant threshold value of the tenant, and the non-flow control transaction amount of the tenant is the difference between the request transaction amount of the tenant and the flow control transaction amount of the tenant;
The wind control module is further used for calculating a first ratio of the flow control transaction amount of each tenant to the non-flow control transaction amount of the tenant; calculating the ratio of the request transaction amount of each tenant to the sum of the request transaction amounts of all tenants as the weight of the tenant; calculating the product of the first ratio of each tenant and the weight of the tenant to obtain a risk value of the tenant;
the wind control module is further configured to use a tenant whose risk value exceeds a predetermined third threshold value as the tenant to be adjusted.
13. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
The memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-6.
14. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210469107.5A CN114844834B (en) | 2022-04-29 | 2022-04-29 | Method and device for adjusting flow control threshold, electronic equipment, medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210469107.5A CN114844834B (en) | 2022-04-29 | 2022-04-29 | Method and device for adjusting flow control threshold, electronic equipment, medium and product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114844834A CN114844834A (en) | 2022-08-02 |
CN114844834B true CN114844834B (en) | 2024-04-26 |
Family
ID=82568104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210469107.5A Active CN114844834B (en) | 2022-04-29 | 2022-04-29 | Method and device for adjusting flow control threshold, electronic equipment, medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114844834B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019019807A1 (en) * | 2017-07-24 | 2019-01-31 | ***股份有限公司 | Resource allocation method and device |
CN109992403A (en) * | 2017-12-30 | 2019-07-09 | ***通信集团福建有限公司 | Optimization method, device, terminal device and the storage medium of multi-tenant scheduling of resource |
CN110490737A (en) * | 2019-07-29 | 2019-11-22 | 阿里巴巴集团控股有限公司 | Transaction channel control method, device and electronic equipment |
CN111415261A (en) * | 2020-03-27 | 2020-07-14 | 中国建设银行股份有限公司 | Control method, system and device for dynamically updating flow control threshold of bank system |
CN111598494A (en) * | 2020-07-24 | 2020-08-28 | 北京淇瑀信息科技有限公司 | Resource limit adjusting method and device and electronic equipment |
-
2022
- 2022-04-29 CN CN202210469107.5A patent/CN114844834B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019019807A1 (en) * | 2017-07-24 | 2019-01-31 | ***股份有限公司 | Resource allocation method and device |
CN109992403A (en) * | 2017-12-30 | 2019-07-09 | ***通信集团福建有限公司 | Optimization method, device, terminal device and the storage medium of multi-tenant scheduling of resource |
CN110490737A (en) * | 2019-07-29 | 2019-11-22 | 阿里巴巴集团控股有限公司 | Transaction channel control method, device and electronic equipment |
CN111415261A (en) * | 2020-03-27 | 2020-07-14 | 中国建设银行股份有限公司 | Control method, system and device for dynamically updating flow control threshold of bank system |
CN111598494A (en) * | 2020-07-24 | 2020-08-28 | 北京淇瑀信息科技有限公司 | Resource limit adjusting method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114844834A (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108667748B (en) | Method, device, equipment and storage medium for controlling bandwidth | |
US20220122048A1 (en) | Transaction system and service processing method | |
US9672072B1 (en) | System and method for managing mainframe computer system usage | |
CN107169756B (en) | Payment channel distribution method, device, storage medium and payment routing system | |
CN107908479A (en) | A kind of node resource distribution method and device | |
EP2193472B1 (en) | Method and apparatus for managing license capacity in a telecommunication network | |
WO2020063206A1 (en) | Flexible scaling method for microservice instances, device, and storage medium | |
TW201447763A (en) | System and method for controlling virtual machine | |
CN106101017B (en) | line flow control method and device | |
US9746909B2 (en) | Computer program product and a node implementing power management by associated power management controllers based on distributed node power consumption and priority data | |
CN109639498B (en) | Service quality oriented resource flexible configuration method based on SDN and NFV | |
CN107203477A (en) | Memory allocation method, device, electronic equipment and readable storage medium storing program for executing | |
CN108416591A (en) | A kind of method that transaction active current limliting is realized by api interface in financial transaction | |
CN114844834B (en) | Method and device for adjusting flow control threshold, electronic equipment, medium and product | |
CN109767057A (en) | Resource allocation methods, device, electronic equipment and storage medium | |
CN110007867A (en) | A kind of spatial cache distribution method, device, equipment and storage medium | |
CN105955826A (en) | Control method and device of quality of service in cloud host system | |
CN104244422A (en) | Resource allocation method and device | |
CN106126319A (en) | Central processing unit resource allocation methods and calculating node | |
CN103139099B (en) | adaptive bandwidth adjustment method and device | |
CN104239116A (en) | Virtual host control system and method | |
CN105956060B (en) | A kind of method and device of message-oriented middleware resource pool | |
CN111813564A (en) | Cluster resource management method and device and container cluster management system | |
CN112748850A (en) | Method, apparatus and computer program product for storage management | |
CN114390058B (en) | Service management system, method, device and storage medium |
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 |