Flow control parameter updating method and device, storage medium and electronic device
By acquiring the flow control parameters and monitoring data of the backend components of channel applications, the flow control threshold is automatically calculated and updated, which solves the problem of update lag when the capacity of backend components of channel applications changes, and realizes rapid adjustment of flow control parameters and efficient utilization of resources.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2022-12-22
- Publication Date
- 2026-07-07
AI Technical Summary
In existing technologies, channel-based applications experience slow updates to flow control parameters when backend component capacity changes, resulting in delayed adjustments and poor timeliness.
By acquiring the flow control parameters of the backend components of channel applications and combining them with the monitoring data within the preset transaction period, the system automatically calculates the target outbound flow control threshold and replaces the original threshold after approval, thus achieving automatic updating of flow control parameters.
This improved the speed of flow control parameter updates, ensured timely adjustments to flow control parameters, and enhanced resource utilization efficiency.
Smart Images

Figure CN115829750B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for updating flow control parameters, a storage medium, and an electronic device. Background Technology
[0002] Currently, channel applications call upon numerous service product components. Changes in the capacity of any backend component usually require updating the flow control parameters output by the channel application to prevent the channel application from being unable to effectively utilize the expanded resources when the backend component's capacity is increased.
[0003] In existing technologies, when the capacity of a backend component changes, the management object of the backend component usually sends a notification to each channel application, and the channel application calculates the value of the flow control parameters independently. However, the notification process by the product component takes a long time, which makes the adjustment of the frontend channel application relatively lagging and has poor timeliness. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method for updating flow control parameters, which can improve the update speed of flow control parameters.
[0005] The present invention also provides a flow control parameter update device to ensure the implementation and application of the above method in practice.
[0006] A flow control parameter update method includes:
[0007] Obtain the flow control parameters of the backend components of the channel application, wherein the flow control parameters include outgoing flow control thresholds;
[0008] Acquire first and second monitoring data of the backend components within a preset transaction period; the first monitoring data includes the first transaction volume of the backend components accessing flow control, the proportion of the total transaction volume of the corresponding components in outbound calls, and each first time point of the backend components accessing flow control; the second monitoring data includes the peak transaction volume of the backend components accessing flow control and each second time point of the backend components accessing flow control.
[0009] Based on the first monitoring data and the second monitoring data, determine whether the outgoing flow control threshold meets the preset adjustment conditions;
[0010] When the outgoing flow control threshold meets the adjustment conditions, the target outgoing flow control threshold is calculated based on the preset user tolerance.
[0011] Replace the outbound flow control threshold with the target outbound flow control threshold.
[0012] Optionally, in the above method, determining whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data includes:
[0013] Based on the first time point and first transaction volume of the backend component accessing flow control in the first monitoring data, it is determined whether the backend component has a first duration within the transaction period. The first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero.
[0014] If the backend component has a first duration within the transaction period, then determine whether the percentage of the total transaction volume at each first time point within the first duration is greater than a preset user tolerance level.
[0015] The first time point at which the percentage of total transaction volume exceeding the user's tolerance level is determined as the target first time point;
[0016] If the number of the target at the first time point meets the preset quantity condition, then it is determined that the outgoing flow control threshold meets the preset adjustment condition;
[0017] If the number of the target first time points does not meet the quantity condition, or if the backend component does not have the first duration within the transaction period, then based on the second time point when the backend component connects to flow control and the peak transaction volume in the second monitoring data, it is determined whether the backend component has a second duration within the transaction period; the second duration includes multiple consecutive second time points, and the peak transaction volume of the multiple consecutive second time points is greater than zero;
[0018] If the backend component has a second duration within the transaction period, then it is determined that the outgoing flow control threshold meets the adjustment conditions; otherwise, it is determined that the outgoing flow control threshold does not meet the adjustment conditions.
[0019] Optionally, in the above method, if the number of the target at the first time point meets a preset quantity condition, the target outbound flow control threshold is calculated based on a preset user tolerance, including:
[0020] The target outbound flow control threshold is calculated based on the peak transaction volume at each time point within the first time period and the preset user tolerance.
[0021] Optionally, if the backend component has a second duration within the transaction period, the target outbound flow control threshold is calculated based on a preset user tolerance, including:
[0022] The target outbound flow control threshold is calculated based on the outbound flow control threshold and the user tolerance.
[0023] Optionally, in the above method, replacing the outgoing flow control threshold with the target outgoing flow control threshold includes:
[0024] A change order for the backend component is generated based on the target outgoing flow control threshold;
[0025] If the change order is approved, the outbound flow control threshold is replaced with the target outbound flow control threshold.
[0026] A flow control parameter update device, comprising:
[0027] The first acquisition unit is used to acquire the flow control parameters of the backend components of the channel application, the flow control parameters including the outgoing flow control threshold;
[0028] The second acquisition unit is used to acquire first monitoring data and second monitoring data of the backend component within a preset transaction period; the first monitoring data includes the first transaction volume of the backend component accessing flow control, the proportion of the total transaction volume of the corresponding component in outbound calls, and each first time point of the backend component accessing flow control; the second monitoring data includes the peak transaction volume of the backend component accessing flow control and each second time point of the backend component accessing flow control.
[0029] The determining unit is used to determine whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data.
[0030] The calculation unit is used to calculate the target outgoing flow control threshold based on a preset user tolerance when the outgoing flow control threshold meets the adjustment conditions.
[0031] An update unit is used to replace the outbound flow control threshold with the target outbound flow control threshold.
[0032] Optionally, the determining unit in the aforementioned apparatus includes:
[0033] The first determining subunit is used to determine whether the backend component has a first duration within the transaction period based on the first time point and the first transaction volume of the backend component accessing the flow control in the first monitoring data. The first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero.
[0034] The judgment subunit is used to determine whether the proportion of the total transaction volume at each first time point within the first time period is greater than a preset user tolerance if the backend component has a first time period within the transaction cycle.
[0035] The second determining subunit is used to determine the first time point where the proportion of total transaction volume that is greater than the user's tolerance is the target first time point;
[0036] The third determining subunit is used to determine that the outgoing flow control threshold meets the preset adjustment condition if the number of the target at the first time point meets the preset quantity condition.
[0037] The fourth determining subunit is used to determine whether the backend component has a second duration in the transaction cycle if the number of the target first time point does not meet the quantity condition, based on the second time point when the backend component connects to flow control and the transaction volume peak in the second monitoring data; the second duration includes multiple consecutive second time points, and the transaction volume peak of the multiple consecutive second time points is greater than zero.
[0038] The fifth determining subunit is used to determine that if the backend component has a second duration within the transaction period, the outgoing flow control threshold meets the adjustment conditions; otherwise, the outgoing flow control threshold does not meet the adjustment conditions.
[0039] Optionally, the updating unit in the aforementioned apparatus includes:
[0040] A generation subunit is used to generate a change order for the backend component based on the target outgoing flow control threshold.
[0041] The replacement subunit is used to replace the outbound flow control threshold with the target outbound flow control threshold when the change work order is approved.
[0042] A storage medium includes storage instructions, wherein, when the instructions are executed, the device in which the storage medium resides executes the flow control parameter update method described above.
[0043] An electronic device includes a memory and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors as described above for updating the flow control parameters.
[0044] Based on the above embodiments of the present invention, a method, apparatus, storage medium, and electronic device for updating flow control parameters are provided. The method includes: acquiring flow control parameters of a backend component of a channel application, the flow control parameters including an outbound flow control threshold; acquiring first monitoring data and second monitoring data of the backend component within a preset transaction period; the first monitoring data includes a first transaction volume of the backend component accessing flow control, the proportion of total transaction volume in outbound calls to the corresponding component, and various first time points when the backend component accesses flow control; the second monitoring data includes the peak transaction volume of the backend component accessing outbound flow control and various second time points when the backend component accesses outbound flow control; determining whether the outbound flow control threshold meets preset adjustment conditions based on the first and second monitoring data; if the outbound flow control threshold meets the adjustment conditions, calculating a target outbound flow control threshold based on a preset user tolerance; and replacing the outbound flow control threshold with the target outbound flow control threshold. Applying the method provided by the embodiments of the present invention, flow control parameters can be automatically updated based on monitoring data, effectively improving the update speed of flow control parameters. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0046] Figure 1 A flowchart of a flow control parameter update method provided by the present invention;
[0047] Figure 2 A flowchart of the process for determining whether the outgoing flow control threshold meets the adjustment conditions provided by the present invention;
[0048] Figure 3 A flowchart of a process for replacing an outgoing flow control threshold with a target outgoing flow control threshold is provided by the present invention;
[0049] Figure 4 A flowchart of a process for changing flow control parameters is provided for this invention;
[0050] Figure 5 This is a schematic diagram of the structure of a flow control parameter updating device provided by the present invention;
[0051] Figure 6 This is a schematic diagram of the structure of an electronic device provided by the present invention. Detailed Implementation
[0052] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0053] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0054] This invention provides a method for updating flow control parameters. This method can be applied to electronic devices, such as servers. The flowchart of the method is shown below. Figure 1 As shown, it specifically includes:
[0055] S101: Obtain the flow control parameters of the backend components of the channel application, wherein the flow control parameters include the outgoing flow control threshold.
[0056] In this embodiment, the channel application can be an application that processes channel transactions.
[0057] Optionally, the outgoing flow control threshold can be used to control the flow of transactions sent out by backend components. If the outgoing transactions of the backend components exceed the flow control threshold, the excess portion will be subject to flow control processing.
[0058] Optionally, there can be one or more backend components, each with its own flow control threshold, and the flow control threshold for each backend component can be different.
[0059] S102: Obtain the first monitoring data and the second monitoring data of the backend component within a preset transaction period; the first monitoring data includes the first transaction volume of the backend component accessing flow control, the proportion of the total transaction volume of the corresponding component in outbound calls, and each first time point of the backend component accessing flow control; the second monitoring data includes the peak transaction volume of the backend component accessing flow control and each second time point of the backend component accessing flow control.
[0060] In this embodiment, the first transaction volume accessing flow control refers to the number of first transaction data packets intercepted by the flow control module. The first transaction data packets are transaction data packets sent from an external component to a backend component. The peak transaction volume exiting flow control refers to the peak number of second transaction data packets intercepted by the flow control module. The second transaction data packets are transaction data packets sent from a backend component to an external component. The first time point is the time point when the backend component accesses flow control, specifically the time point when the first transaction data packet is intercepted by the flow control module. The second time point is the time point when the backend component exits flow control, specifically the time point when the second transaction data packet is intercepted by the flow control module. Optionally, the flow module can be software or hardware.
[0061] Optionally, the percentage of total transaction volume can be the ratio of the second transaction data packet that was intercepted by the flow control module to all second transaction data packets, that is, the percentage of transactions with flow control errors.
[0062] In this embodiment, the first and second monitoring data of the backend components can be obtained based on the transaction return code.
[0063] S103: Determine whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data.
[0064] S104: When the outgoing flow control threshold meets the adjustment conditions, the target outgoing flow control threshold is calculated based on the preset user tolerance.
[0065] In this embodiment, the target outgoing flow control threshold can be calculated based on at least one of the first monitoring data and the outgoing flow control threshold, as well as the user's tolerance.
[0066] In this embodiment, user tolerance can be determined based on the type of services provided by the business, and can be represented as the maximum percentage of transactions that a user can tolerate being rejected by flow control, or as the threshold percentage of the total transaction volume subject to flow control.
[0067] S105: Replace the outgoing flow control threshold with the target outgoing flow control threshold.
[0068] In this embodiment, the outgoing flow control threshold can be replaced by the target outgoing flow control threshold, that is, the target outgoing flow control threshold can be used as the new flow control threshold for flow control of backend components.
[0069] The method provided in this embodiment of the invention can automatically update flow control parameters based on monitoring data, effectively improving the update speed of flow control parameters.
[0070] In one embodiment of the present invention, based on the above implementation process, optionally, the step of determining whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data is as follows: Figure 2 As shown, it includes:
[0071] S201: Based on the first time point and first transaction volume of the backend component accessing flow control in the first monitoring data, determine whether the backend component has a first duration within the transaction period, wherein the first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero.
[0072] In this embodiment, the first duration can be any duration such as 1 minute, 2 minutes, or 3 minutes. The first duration includes multiple consecutive first time points, and the transaction volume at each first time point within the first duration is greater than zero.
[0073] S202: If the backend component has a first duration within the transaction period, then determine whether the percentage of the total transaction volume at each first time point within the first duration is greater than the preset user tolerance.
[0074] In this embodiment, the percentage of total transaction volume at each first time point is compared with the user's tolerance level to determine whether the percentage of total transaction volume at each first time point is greater than the user's tolerance level.
[0075] S203: The first time point at which the proportion of total transaction volume exceeding the user's tolerance is determined is the target first time point.
[0076] In this embodiment, for each first time point, if the proportion of the total transaction volume at that first time point is greater than the user's tolerance, then that first time point is determined as the target first time point.
[0077] S204: If the number of the target at the first time point meets the preset quantity condition, then it is determined that the outgoing flow control threshold meets the preset adjustment condition.
[0078] In this embodiment, if the ratio of the number of target first time points to the total number of first time points within a first time duration is greater than a preset ratio threshold, then the outgoing flow control threshold is determined to meet the adjustment conditions. Optionally, the ratio threshold can be any ratio such as 1 / 3 or 1 / 2, and can be set according to actual needs.
[0079] In some embodiments, if the number of targets at the first time point is greater than a preset quantity threshold, it can be determined that the outgoing flow control threshold meets the adjustment conditions.
[0080] Optionally, the quantity condition can be that the ratio of the number of the target first time point to the number of all first time points within the first time period is greater than a preset ratio threshold, or the number of the target first time point is greater than a preset quantity threshold.
[0081] S205: If the number of the target first time points does not meet the quantity condition, or the backend component does not have the first duration within the transaction period, then based on the second time point of the backend component receiving flow control and the peak transaction volume in the second monitoring data, it is determined whether the backend component has a second duration within the transaction period; the second duration includes multiple consecutive second time points, and the peak transaction volume of the multiple consecutive second time points is greater than zero.
[0082] S206: If the backend component has a second duration within the transaction period, then it is determined that the outgoing flow control threshold meets the adjustment conditions; otherwise, it is determined that the outgoing flow control threshold does not meet the adjustment conditions.
[0083] In one embodiment of the present invention, based on the above implementation process, optionally, if the number of the target at the first time point meets a preset quantity condition, then the target outbound flow control threshold is calculated according to a preset user tolerance, including:
[0084] The target outbound flow control threshold is calculated based on the peak transaction volume at each time point within the first time period and the preset user tolerance.
[0085] In this embodiment, the maximum transaction volume at each first time point within the first duration can be determined, that is, the peak value of the transaction volume. The target outbound flow control threshold is then calculated based on the peak value and the user's tolerance.
[0086] Optionally, the target outbound flow control threshold can be calculated based on the peak value and user tolerance as follows: Q = RTx × (1 - L%), where Q is the target outbound flow control threshold, RTx is the peak value of the transaction volume at each first time point in the first duration, and L% is the user tolerance.
[0087] In one embodiment of the present invention, based on the above implementation process, optionally, if the backend component has a second duration within the transaction period, the target outbound flow control threshold is calculated according to a preset user tolerance, including:
[0088] The target outbound flow control threshold is calculated based on the outbound flow control threshold and the user tolerance.
[0089] In this embodiment, the target outgoing flow control threshold is calculated based on the outgoing flow control threshold and the user's tolerance as follows: Q = FC × (1 + L%), where FC is the outgoing flow control threshold.
[0090] In one embodiment of the present invention, based on the above implementation process, optionally, the step of replacing the outgoing flow control threshold with the target outgoing flow control threshold is as follows: Figure 3 As shown, it includes:
[0091] S301: Generate a change order for the backend component based on the target outgoing flow control threshold.
[0092] In this embodiment, the change order records the component identifier of the backend component and the target outgoing flow control threshold.
[0093] Optionally, if there are multiple backend components, the component identifier of each backend component and the target outbound flow control threshold of each backend component can be recorded separately.
[0094] S302: If the change order is approved, replace the outbound flow control threshold with the target outbound flow control threshold.
[0095] In this embodiment, the change order can be sent to the review terminal, which will review the change order. If the change order information is approved, the outgoing flow control threshold can be replaced with the target outgoing flow control threshold.
[0096] See Figure 4 The flowchart provided in this embodiment of the invention illustrates a process for changing flow control parameters, specifically including the following steps:
[0097] First, set up a flow control error code lookup table for each backend application in the channel application.
[0098] In this embodiment, the calls between application components are based on the registration and addressing mode. Therefore, the database of the channel application records the component codes A1-An that call the backend application and the outgoing flow control thresholds FC1-FCn based on the backend components.
[0099] Second, obtain the percentage and timing of transactions with flow control errors from the backend application view called by the channel application in the transaction monitoring system.
[0100] In this embodiment, during the off-peak hours of channel applications, the transaction return codes recorded by the channel applications in the transaction monitoring system within the current transaction cycle can be periodically analyzed. Specifically, the data can be obtained for each backend application (A1-An), the transaction volume (RM1-RMn) of the backend application accessing flow control, the percentage of the total transaction volume in the corresponding outbound call component (RP1%-RPn%), and the occurrence time (RT1-RTn). In other words, the first monitoring data of each backend component can be obtained.
[0101] This includes the standardization and constraint definition of transaction return codes for each component. Backend component applications can integrate with global flow control or single-transaction flow control, while channel applications can identify them from special fields in the transaction return codes.
[0102] Third, obtain the transaction percentage and timing of the flow control error codes sent by the channel application to each backend application from the transaction monitoring system.
[0103] In this embodiment, within the statistical transaction period, the channel application records the peak transaction volume OM1-OMn for outbound flow control of each backend application, the percentage of total transaction volume in the corresponding outbound call component OP1%-OPn%, and the occurrence time OT1-OTn, which is to obtain the second monitoring data of each backend component.
[0104] Fourth, the flow control parameter calculation module of each backend application called by the channel application is started at regular intervals in the early morning or during non-peak business periods.
[0105] In this embodiment, a timed task scheduling tool can be used to trigger the flow control parameter calculation modules of each backend application called by the channel application. Taking backend application A1 as an example, the strategy and calculation method for adjusting flow control parameters are explained as follows:
[0106] Step 1: If the backend application A1 has RM values greater than 0 for 2 consecutive minutes, such as RT1-RT120 being 2 consecutive minutes, and RM1 to RM120 being greater than 0, then check if more than half of the corresponding RP1%-RP120% are greater than the user tolerance L%. If more than half of RP1%-RP120% are greater than L%, proceed to Step 2; otherwise, proceed to Step 3.
[0107] Step 2: Take the peak values from RT1 to RT120, such as RTx. Update the outgoing flow control value FC1 of the channel application for the A1 application to RTx*(1-L%), and FC1 is an integer greater than zero.
[0108] Step 3: If backend application A1 experiences flow control for less than 2 minutes, or if flow control for 2 minutes or more occurs within the user's tolerance range, check the outgoing flow control status of backend application A1 at time points RT1-RT120. If there is outgoing flow control for approximately 30 seconds, such as OM1 to OM30 all being greater than 0, then the outgoing flow control threshold for backend application A1 needs to be increased. The increase ratio is based on the user's tolerance level, released daily and observed. On the first day, update FC1 to FC1*(1+L%). On the second day, continue to estimate and adjust using the current method. If there is no outgoing flow control, no adjustment is needed for now, and the outgoing flow control threshold for A1 remains unchanged.
[0109] Fifth, generate the latest backend application flow control parameters for the channel application.
[0110] In this embodiment, the updated values of the outgoing flow control parameters for each backend application can be calculated.
[0111] Sixth, derived channel applications can generate automated change orders for adjusting and activating flow control parameters for relevant backend applications.
[0112] In this embodiment, an automated change management tool can be used to automatically generate change orders by calling existing parameter adjustment and activation scripts. Parameter adjustments can be made through methods such as updating database values or configuration files. For example, application configurations can be refreshed online or the application service can be restarted for the changes to take effect.
[0113] Seventh, the changes will take effect automatically after a set time following the approval process.
[0114] In this embodiment, the approval process of the automated change tool can be used to approve change orders, and the time for automatic activation can be determined by the channel application's operation and maintenance personnel based on the application characteristics.
[0115] and Figure 1 Corresponding to the method described above, this embodiment of the invention also provides a flow control parameter update device for updating flow control parameters. Figure 1 The specific implementation of the method, the flow control parameter update device provided in this embodiment of the invention, can be applied to electronic devices, and its structural schematic diagram is shown below. Figure 5 As shown, it specifically includes:
[0116] The first acquisition unit 501 is used to acquire the flow control parameters of the backend components of the channel application, the flow control parameters including the outgoing flow control threshold.
[0117] The second acquisition unit 502 is used to acquire first monitoring data and second monitoring data of the backend component within a preset transaction period; the first monitoring data includes the first transaction volume of the backend component accessing flow control, the proportion of the total transaction volume of the corresponding component in outbound calls, and each first time point of the backend component accessing flow control; the second monitoring data includes the peak transaction volume of the backend component accessing flow control and each second time point of the backend component accessing flow control.
[0118] The determining unit 503 is used to determine whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data.
[0119] The calculation unit 504 is used to calculate the target outgoing flow control threshold based on a preset user tolerance when the outgoing flow control threshold meets the adjustment conditions.
[0120] The update unit 505 is used to replace the outbound flow control threshold with the target outbound flow control threshold.
[0121] In one embodiment of the present invention, based on the above-described solution, optionally, the determining unit 503 includes:
[0122] The first determining subunit is used to determine whether the backend component has a first duration within the transaction period based on the first time point and the first transaction volume of the backend component accessing the flow control in the first monitoring data. The first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero.
[0123] The judgment subunit is used to determine whether the proportion of the total transaction volume at each first time point within the first time period is greater than a preset user tolerance if the backend component has a first time period within the transaction cycle.
[0124] The second determining subunit is used to determine the first time point where the proportion of total transaction volume that is greater than the user's tolerance is the target first time point;
[0125] The third determining subunit is used to determine that the outgoing flow control threshold meets the preset adjustment condition if the number of the target at the first time point meets the preset quantity condition.
[0126] The fourth determining subunit is used to determine whether the backend component has a second duration in the transaction cycle if the number of the target first time point does not meet the quantity condition, based on the second time point when the backend component connects to flow control and the transaction volume peak in the second monitoring data; the second duration includes multiple consecutive second time points, and the transaction volume peak of the multiple consecutive second time points is greater than zero.
[0127] The fifth determining subunit is used to determine that if the backend component has a second duration within the transaction period, the outgoing flow control threshold meets the adjustment conditions; otherwise, the outgoing flow control threshold does not meet the adjustment conditions.
[0128] In one embodiment of the present invention, based on the above-described solution, optionally, the updating unit 505 includes:
[0129] A generation subunit is used to generate a change order for the backend component based on the target outgoing flow control threshold.
[0130] The replacement subunit is used to replace the outbound flow control threshold with the target outbound flow control threshold when the change work order is approved.
[0131] In one embodiment of the present invention, based on the above scheme, optionally, the number of the target first time points satisfies a preset quantity condition, and the calculation unit 504 includes:
[0132] The first calculation subunit is used to calculate the target outbound flow control threshold based on the peak value of the transaction volume at each first time point within the first time period and the preset user tolerance.
[0133] In one embodiment of the present invention, based on the above solution, optionally, the backend component has a second duration within the transaction period, and the calculation unit 504 includes:
[0134] The second calculation subunit is used to calculate the target outbound flow control threshold based on the outbound flow control threshold and the user tolerance.
[0135] The specific principles and execution processes of each unit and module in the flow control parameter update device disclosed in the above embodiments of the present invention are the same as those of the flow control parameter update method disclosed in the above embodiments of the present invention. Please refer to the corresponding parts of the flow control parameter update method provided in the above embodiments of the present invention, and they will not be repeated here.
[0136] This invention also provides a storage medium, which includes stored instructions, wherein the execution of the instructions controls the device where the storage medium is located to execute the above-described flow control parameter update method.
[0137] This invention also provides an electronic device, the structural schematic of which is shown below. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations:
[0138] Obtain the flow control parameters of the backend components of the channel application, wherein the flow control parameters include outgoing flow control thresholds;
[0139] Acquire first and second monitoring data of the backend components within a preset transaction period; the first monitoring data includes the first transaction volume of the backend components accessing flow control, the proportion of the total transaction volume of the corresponding components in outbound calls, and each first time point of the backend components accessing flow control; the second monitoring data includes the peak transaction volume of the backend components accessing flow control and each second time point of the backend components accessing flow control.
[0140] Based on the first monitoring data and the second monitoring data, determine whether the outgoing flow control threshold meets the preset adjustment conditions;
[0141] When the outgoing flow control threshold meets the adjustment conditions, the target outgoing flow control threshold is calculated based on the preset user tolerance.
[0142] Replace the outbound flow control threshold with the target outbound flow control threshold.
[0143] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0144] Finally, it should be noted that in this paper, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0145] For ease of description, the above apparatus is described by dividing it into various functional units. Of course, in implementing this invention, the functions of each unit can be implemented in one or more software and / or hardware components.
[0146] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.
[0147] The flow control parameter update method provided by the present invention has been described in detail above. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for updating flow control parameters, characterized in that, include: Obtain the flow control parameters of the backend components of the channel application. The flow control parameters include the outgoing flow control threshold, which is used to control the flow of transactions sent out by the backend components. The system acquires first and second monitoring data of the backend components within a preset transaction period. The first monitoring data includes the first transaction volume of the backend components accessing flow control, the percentage of total transaction volume in outbound calls to the corresponding components, and various first time points when the backend components access flow control. The second monitoring data includes the peak transaction volume of the backend components accessing flow control and various second time points when the backend components access flow control. The first transaction volume accessing flow control refers to the number of first transaction data packets intercepted by the flow control module; the first transaction data packets are transaction data packets sent from external components to backend components. The first time point is the time when the first transaction data packet is intercepted by the flow control module. The peak transaction volume outbound refers to the peak number of second transaction data packets intercepted by the flow control module; the second transaction data packets are transaction data packets sent from backend components to external components. The second time point is the time when the second transaction data packet is intercepted by the flow control module. Each time point corresponds to a transaction volume, and the peak transaction volume is the peak value among the transaction volumes corresponding to each time point. The percentage of total transaction volume is the ratio of the second transaction data packets intercepted by the flow control module to all second transaction data packets. Based on the first monitoring data and the second monitoring data, determine whether the outgoing flow control threshold meets the preset adjustment conditions; When the outgoing flow control threshold meets the adjustment conditions, the target outgoing flow control threshold is calculated based on the preset user tolerance. Replace the outgoing flow control threshold with the target outgoing flow control threshold; The step of determining whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data includes: Based on the first time point and first transaction volume of the backend component accessing flow control in the first monitoring data, it is determined whether the backend component has a first duration within the transaction period. The first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero. If the backend component has a first duration within the transaction period, then determine whether the percentage of the total transaction volume at each first time point within the first duration is greater than a preset user tolerance level. The first time point at which the percentage of total transaction volume exceeding the user's tolerance level is determined as the target first time point; If the number of the target at the first time point meets the preset quantity condition, then it is determined that the outgoing flow control threshold meets the preset adjustment condition; If the number of the target first time points does not meet the quantity condition, or if the backend component does not have the first duration within the transaction period, then based on the second time point and transaction volume of the backend component receiving flow control in the second monitoring data, it is determined whether the backend component has a second duration within the transaction period; the second duration includes multiple consecutive second time points, and the transaction volume of the multiple consecutive second time points is greater than zero; If the backend component has a second duration within the transaction period, then it is determined that the outgoing flow control threshold meets the adjustment conditions; otherwise, it is determined that the outgoing flow control threshold does not meet the adjustment conditions.
2. The method according to claim 1, characterized in that, If the number of the target at the first time point meets the preset quantity condition, then the target outbound flow control threshold is calculated based on the preset user tolerance, including: The target outbound flow control threshold is calculated based on the peak transaction volume at each time point within the first time period and the preset user tolerance.
3. The method according to claim 1, characterized in that, If the backend component has a second duration within the transaction period, the target outbound flow control threshold is calculated based on a preset user tolerance, including: The target outbound flow control threshold is calculated based on the outbound flow control threshold and the user tolerance.
4. The method according to claim 1, characterized in that, The step of replacing the outbound flow control threshold with the target outbound flow control threshold includes: A change order for the backend component is generated based on the target outgoing flow control threshold; If the change order is approved, the outbound flow control threshold is replaced with the target outbound flow control threshold.
5. A flow control parameter updating device, characterized in that, include: The first acquisition unit is used to acquire the flow control parameters of the backend components of the channel application. The flow control parameters include the outgoing flow control threshold, which is used to control the flow of transactions sent out by the backend components. The second acquisition unit is used to acquire first monitoring data and second monitoring data of the backend component within a preset transaction period. The first monitoring data includes the first transaction volume of the backend component accessing flow control, the proportion of the total transaction volume of the corresponding component in outbound calls, and each first time point of the backend component accessing flow control. The second monitoring data includes the peak value of the transaction volume of the backend component accessing flow control and each second time point of the backend component accessing flow control. The first transaction volume accessing flow control refers to the number of first transaction data packets intercepted by the flow control module. The first transaction data packets are transaction data packets sent from external components to backend components. The first time point is the time point at which the first transaction data packet is intercepted by the flow control module. The peak value of the transaction volume accessing flow control refers to the peak value of the number of second transaction data packets intercepted by the flow control module. The second transaction data packets are transaction data packets sent from backend components to external components. The second time point is the time point at which the second transaction data packet is intercepted by the flow control module. Each time point corresponds to a transaction volume, and the peak value of the transaction volume is the peak value of the transaction volume corresponding to each time point. The proportion of the total transaction volume is the ratio of the second transaction data packets intercepted by the flow control module to all second transaction data packets. The determining unit is used to determine whether the outgoing flow control threshold meets the preset adjustment conditions based on the first monitoring data and the second monitoring data. The calculation unit is used to calculate the target outgoing flow control threshold based on a preset user tolerance when the outgoing flow control threshold meets the adjustment conditions. An update unit is used to replace the outbound flow control threshold with the target outbound flow control threshold; The determining unit includes: The first determining subunit is used to determine whether the backend component has a first duration within the transaction period based on the first time point and the first transaction volume of the backend component accessing the flow control in the first monitoring data. The first duration includes multiple consecutive first time points, and the transaction volume of the multiple consecutive first time points is greater than zero. The judgment subunit is used to determine whether the proportion of the total transaction volume at each first time point within the first time period is greater than a preset user tolerance if the backend component has a first time period within the transaction cycle. The second determining subunit is used to determine the first time point where the proportion of total transaction volume that is greater than the user's tolerance is the target first time point; The third determining subunit is used to determine that the outgoing flow control threshold meets the preset adjustment condition if the number of the target at the first time point meets the preset quantity condition. The fourth determining subunit is used to determine whether the backend component has a second duration in the transaction period if the number of the target first time point does not meet the quantity condition, or the backend component does not have the first duration in the transaction period, based on the second time point and transaction volume of the backend component receiving flow control in the second monitoring data; the second duration includes multiple consecutive second time points, and the transaction volume of the multiple consecutive second time points is greater than zero. The fifth determining subunit is used to determine that if the backend component has a second duration within the transaction period, the outgoing flow control threshold meets the adjustment conditions; otherwise, the outgoing flow control threshold does not meet the adjustment conditions.
6. The apparatus according to claim 5, characterized in that, The update unit includes: A generation subunit is used to generate a change order for the backend component based on the target outgoing flow control threshold. The replacement subunit is used to replace the outbound flow control threshold with the target outbound flow control threshold when the change work order is approved.
7. A storage medium, characterized in that, The storage medium includes storage instructions, wherein, when the instructions are executed, the device containing the storage medium is controlled to perform the flow control parameter update method as described in any one of claims 1 to 4.
8. An electronic device, characterized in that, It includes a memory, and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors as described in any one of claims 1 to 4.