Flow distribution method and device based on application node grouping, equipment and medium

By grouping and traffic monitoring of application nodes in financial technology business, the problem that traditional load balancing methods cannot adapt to business changes is solved, and refined traffic control and efficient system management are achieved.

CN119324925APending Publication Date: 2025-01-17CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411364413.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

The traditional load balancing method cannot segment and flexibly control the application nodes in the financial technology business, resulting in complex node management and low scalability, making it difficult to adapt to business changes.

Method used

By monitoring the traffic data of the backend server group, traffic monitoring results are generated, and application service nodes are grouped according to preset traffic control policies, target nodes are determined to distribute traffic data, and refined traffic control is achieved.

Benefits of technology

Improve the efficiency of application node grouping, support new application service nodes, reduce the cumbersome process of configuring load balancers, and enhance the availability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324925A_ABST
    Figure CN119324925A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of server development, is applied to the field of financial science and technology businesses, and discloses a traffic distribution method and device based on application node grouping, equipment and a medium, and the method comprises the steps: monitoring traffic data, and generating a traffic monitoring result; grouping the application service nodes to generate at least one group of node groups; and determining a target node group based on the traffic control strategy and the traffic monitoring result, and distributing the traffic data to each application service node in the target node group. Through the above mode, the target node group is determined according to the traffic monitoring result and the preset traffic control strategy, the traffic data can be distributed to each application service node in the target node group more accurately, the nodes are grouped, the low code concept is applied to the traffic distribution system, the service change can be quickly adapted, and the traffic distribution efficiency is improved. The system is easily expanded to support new application service nodes, and the grouping efficiency of the application nodes is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server development technology, which is applied to the field of financial technology business, and in particular to a traffic distribution method, device, equipment and medium based on application node grouping. Background Art

[0002] With the rapid development and growth of financial technology business and the expansion of application services, the application deployment nodes in the content middle-end backend service cluster have skyrocketed. From the original few service applications to the current dozens of service applications and the management and use of thousands of application nodes, the calls between applications are very complicated, and the business scenarios require fine-grained control of the traffic of node requests. The traditional load balancing method has the following problems: the traditional load balancing method cannot group the current nodes and subdivide the groups of different business functions. It can only forward according to simple rules and cannot forward according to the logic of the application. The flexibility and scalability are too low. Once a new node is added, the load balancer needs to be reconfigured. This process is very cumbersome and error-prone. Therefore, how to improve the efficiency of calling application nodes has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides a traffic distribution method, apparatus, device and medium based on application node grouping to improve the efficiency of application node grouping.

[0004] In a first aspect, the present application provides a traffic distribution method based on application node grouping, the method comprising:

[0005] Monitor the traffic data in the backend server group and generate traffic monitoring results;

[0006] Grouping the application service nodes to generate at least one node group;

[0007] Based on a preset traffic control strategy and the traffic monitoring result, a target node group is determined from each of the node groups, and the traffic data is distributed to each of the application service nodes in the target node group.

[0008] In a second aspect, the present application further provides a traffic distribution device based on application node grouping, the device comprising:

[0009] The flow monitoring result generation module is used to monitor the flow data in the back-end server group and generate flow monitoring results;

[0010] A node grouping module, used to group each application service node to generate at least one node group;

[0011] The traffic distribution module is used to determine a target node group from each of the node groups based on a preset traffic control strategy and the traffic monitoring result, and distribute the traffic data to each of the application service nodes in the target node group.

[0012] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the above-mentioned traffic distribution method based on application node grouping when executing the computer program.

[0013] In a fourth aspect, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the traffic distribution method based on application node grouping as described above.

[0014] The present application discloses a traffic distribution method, device, equipment and medium based on application node grouping, wherein the traffic distribution method based on application node grouping includes monitoring the traffic data in the backend server group and generating traffic monitoring results; grouping each application service node to generate at least one group of node groups; based on a preset traffic control strategy and the traffic monitoring results, determining a target node group from each of the node groups, and distributing the traffic data to each of the application service nodes in the target node group. In the above manner, the present application determines the target node grouping through traffic monitoring results and preset traffic control strategies, and can distribute traffic data more accurately to each application service node in the target node grouping. By grouping the nodes and applying the low-code concept to the traffic distribution system, it can quickly adapt to business changes, easily expand the system to support new application service nodes, and improve the efficiency of application node grouping. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 is a schematic flow chart of a traffic distribution method based on application node grouping provided by the first embodiment of the present application;

[0017] Figure 2 is a schematic flow chart of a traffic distribution method based on application node grouping provided in the second embodiment of the present application;

[0018] Figure 3A schematic block diagram of a traffic distribution device based on application node grouping provided in an embodiment of the present application;

[0019] Figure 4 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0022] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0024] The embodiments of the present application provide a method, device, equipment and medium for traffic distribution based on application node grouping. Among them, the traffic distribution method based on application node grouping can be applied to the server, and the target node grouping is determined by the traffic monitoring results and the preset traffic control strategy, and the traffic data can be distributed more accurately to each application service node in the target node grouping. By grouping the nodes and applying the low-code concept to the traffic distribution system, it can quickly adapt to business changes, easily expand the system to support new application service nodes, and improve the efficiency of application node grouping. Among them, the server can be an independent server or a server cluster.

[0025] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0026] See also Figure 1 , Figure 1 This is a schematic flow chart of a traffic distribution method based on application node grouping provided by the first embodiment of the present application. The traffic distribution method based on application node grouping can be applied to the server, and is used to determine the target node grouping through traffic monitoring results and preset traffic control strategies. The traffic data can be distributed more accurately to each application service node in the target node grouping. By grouping the nodes and applying the low-code concept to the traffic distribution system, it can quickly adapt to business changes, easily expand the system to support new application service nodes, and improve the efficiency of application node grouping.

[0027] like Figure 1 As shown, the traffic distribution method based on application node grouping specifically includes steps S10 to S30.

[0028] Step S10: Monitor the traffic data in the backend server group and generate traffic monitoring results;

[0029] In one embodiment, the flow data in the backend server group is monitored to generate flow monitoring results. Professional flow monitoring tools or self-developed monitoring systems can be used for monitoring.

[0030] Step S20: group the application service nodes to generate at least one node group;

[0031] In one embodiment, each application service node is grouped to generate at least one node group. The grouping may be performed based on factors such as business requirements and node status, such as geographic location, application type, load condition, etc.

[0032] Step S30: Based on a preset traffic control strategy and the traffic monitoring result, a target node group is determined from each of the node groups, and the traffic data is distributed to each of the application service nodes in the target node group.

[0033] In one embodiment, based on the preset traffic control strategy and traffic monitoring results, the target node group is determined from each node group. According to the traffic monitoring results and the preset traffic control strategy, the node group that best suits the current traffic situation can be selected as the target node group.

[0034] Distribute traffic data to each application service node in the target node group. You can use a load balancer or traffic distributor to distribute traffic data to ensure that traffic data can be correctly distributed to each application service node in the target node group.

[0035] Continuously monitor traffic data and node status, and adjust traffic control strategies and node groupings in a timely manner. By real-time monitoring of traffic data and node status, faults can be discovered and resolved in a timely manner, thus ensuring system availability and reliability.

[0036] The present embodiment discloses a traffic distribution method, device, equipment and medium based on application node grouping, wherein the traffic distribution method based on application node grouping includes monitoring the traffic data in the backend server group and generating traffic monitoring results; grouping each application service node to generate at least one group of node groups; based on a preset traffic control strategy and the traffic monitoring results, determining a target node group from each of the node groups, and distributing the traffic data to each of the application service nodes in the target node group. In the above manner, the present application determines the target node grouping through traffic monitoring results and preset traffic control strategies, and can distribute traffic data more accurately to each application service node in the target node group. By grouping the nodes and applying the low-code concept to the traffic distribution system, it can quickly adapt to business changes, easily expand the system to support new application service nodes, and improve the efficiency of application node grouping.

[0037] See also Figure 2 , Figure 2 This is a schematic flow chart of a traffic distribution method based on application node grouping provided by the second embodiment of the present application. The traffic distribution method based on application node grouping can be applied to a server, and is used to more accurately generate traffic monitoring results by identifying traffic patterns and abnormal data using data analysis technology. By grouping nodes, the status and traffic of nodes can be better managed, faults can be discovered and resolved in a timely manner, and the efficiency of application node grouping can be improved while better responding to changes and needs of the business.

[0038] based on Figure 1 The embodiment shown, this embodiment Figure 2 As shown, step S10 includes step S101 to step S102.

[0039] Step S101, performing data analysis on the traffic data to identify traffic patterns and abnormal data of the traffic data;

[0040] Specifically, data analysis is performed on the traffic data. Professional data analysis tools or self-developed analysis systems can be used for data analysis, such as using machine learning algorithms, statistical analysis and other methods.

[0041] By analyzing the characteristics, trends, changes and other factors of traffic data, traffic patterns and abnormal data can be identified.

[0042] Step S102: Generate the traffic monitoring result according to the traffic pattern and the abnormal data.

[0043] In one embodiment, traffic patterns and abnormal data are used as indicators to generate traffic monitoring results, such as node load, response time, error rate, etc.

[0044] Feedback the traffic monitoring results to relevant personnel through visual interfaces, reports, alarms, etc., to help business personnel better understand the system's operating status and performance. According to the traffic monitoring results, timely adjust the traffic control strategy and node grouping to improve the system's availability and reliability.

[0045] The present embodiment discloses a traffic distribution method, device, equipment and medium based on application node grouping, wherein the traffic distribution method based on application node grouping includes performing data analysis on the traffic data, identifying the traffic pattern and abnormal data of the traffic data; generating the traffic monitoring result according to the traffic pattern and the abnormal data; grouping each application service node to generate at least one group of node groups; determining the target node group from each node group based on the preset traffic control strategy and the traffic monitoring result, and distributing the traffic data to each application service node in the target node group. In the above manner, the present application can generate traffic monitoring results more accurately by using data analysis technology to identify traffic patterns and abnormal data. By grouping nodes, the status and traffic of nodes can be better managed, faults can be discovered and resolved in a timely manner, and the efficiency of application node grouping can be improved while better responding to business changes and needs.

[0046] In a more preferred embodiment, generating the flow monitoring result according to the flow pattern and the abnormal data includes:

[0047] Based on the traffic pattern, determining a current traffic application time;

[0048] Specifically, the current traffic application time is determined by analyzing the characteristics, trends, changes and other factors of the traffic pattern.

[0049] Determine abnormal behavior of the traffic data according to the abnormal data, wherein the abnormal behavior includes attack behavior and / or traffic mutation behavior;

[0050] Specifically, by analyzing the characteristics, changes and other factors of the abnormal data, the abnormal behavior of the traffic data, such as attack behavior and / or traffic mutation behavior, is determined.

[0051] The current traffic application time and the attack behavior and / or the traffic mutation behavior are determined as the traffic monitoring result.

[0052] Specifically, the current traffic application time and the attack behavior and / or the traffic mutation behavior are determined as the traffic monitoring result. The current traffic application time and abnormal behavior can be used as indicators to generate traffic monitoring results, such as node load, response time, error rate, etc.

[0053] The present embodiment discloses a method, device, equipment and medium for distributing traffic based on application node grouping, wherein the method for distributing traffic based on application node grouping includes performing data analysis on the traffic data, identifying the traffic pattern and abnormal data of the traffic data; determining the current traffic application time based on the traffic pattern; determining the abnormal behavior of the traffic data according to the abnormal data, wherein the abnormal behavior includes attack behavior and / or traffic mutation behavior; determining the current traffic application time and the attack behavior and / or the traffic mutation behavior as the traffic monitoring result; grouping each application service node to generate at least one group of node groups; determining the target node group from each node group based on the preset traffic control strategy and the traffic monitoring result, and distributing the traffic data to each application service node in the target node group. In the above manner, the present application can generate traffic monitoring results more accurately by using data analysis technology to identify traffic patterns and abnormal data, and can better manage the status and traffic of the nodes by grouping the nodes, and timely discover and solve faults, thereby improving the availability and reliability of the system. Through automated management and elastic scaling technology, the workload of manual intervention and management can be reduced, the operating cost can be reduced, and the efficiency of application node grouping can be improved.

[0054] based on Figure 1 In the embodiment shown, in this embodiment, step S20 includes:

[0055] Obtaining business requirements and performance indicators of each of the application service nodes;

[0056] Specifically, the business requirements and performance indicators of each application service node are obtained by communicating with business personnel, analyzing business logs, monitoring system performance, etc.

[0057] According to the business requirements and the performance indicators, the application service nodes are classified to generate at least one group of node groups.

[0058] In one embodiment, based on business requirements and performance indicators, each application service node is classified according to factors such as geographical location, application type, load condition, etc., to generate at least one group of node groups.

[0059] Determine the traffic processing capacity and load balancing strategy of each node group based on the characteristics of the node grouping. The traffic processing capacity and load balancing strategy of each node grouping can be determined based on the characteristics of the node grouping, such as geographical location, application type, etc., to ensure the availability and performance of the system.

[0060] Adjust the traffic control strategy and node grouping according to the traffic monitoring results. You can adjust the traffic control strategy and node grouping in a timely manner according to the traffic monitoring results to improve the availability and reliability of the system. Use a load balancer or traffic distributor to distribute traffic data to ensure that the traffic data can be correctly distributed to each application service node in the target node grouping.

[0061] The present embodiment discloses a method, device, equipment and medium for distributing traffic based on application node grouping, wherein the method for distributing traffic based on application node grouping includes monitoring traffic data in a backend server group and generating traffic monitoring results; obtaining business requirements and performance indicators of each application service node; classifying each application service node according to the business requirements and the performance indicators to generate at least one group of node groups; determining a target node group from each node group based on a preset traffic control strategy and the traffic monitoring results, and distributing the traffic data to each application service node in the target node group. In the above manner, the present application can ensure the optimal utilization of system resources, reduce response time and improve overall system performance by monitoring traffic in real time and dynamically adjusting traffic distribution according to business requirements and performance indicators. By intelligently classifying application service nodes and distributing traffic according to preset strategies, resource waste can be avoided, ensuring that each node runs under its optimal load, and by automated and intelligent traffic monitoring and distribution, dependence on manual intervention can be reduced, operating costs can be reduced, and low-code concepts can be applied to traffic distribution systems, which can quickly adapt to business changes, easily expand the system to support new application service nodes, and improve the efficiency of application node grouping.

[0062] based on Figure 1 In the embodiment shown, in this embodiment, before step S30, the following steps are included:

[0063] Obtaining the load capacity of each of the application service nodes;

[0064] Specifically, obtain the current and historical load data of each application service node, including CPU usage, memory usage, disk I / O, network bandwidth usage, etc., analyze the performance indicators of each application service node, and determine the upper and lower limits of its processing capacity.

[0065] At least one of the preset traffic control strategies is formulated based on a preset load balancing algorithm and the load capacity of each of the application service nodes.

[0066] In one embodiment, a suitable load balancing algorithm is selected according to business requirements and system characteristics, such as polling, least connections, weighted polling, weighted least connections, etc. The algorithm is customized according to specific requirements to adapt to different traffic patterns and business scenarios. Based on the load balancing algorithm and node load capacity, a traffic control strategy is defined. The strategy should include how to distribute traffic, how to handle abnormal traffic, how to respond to node failures, etc. Set priorities for different types of traffic to ensure that critical business traffic is given priority.

[0067] The present embodiment discloses a traffic distribution method, device, equipment and medium based on application node grouping, wherein the traffic distribution method based on application node grouping includes monitoring the traffic data in the back-end server group and generating traffic monitoring results; grouping each application service node to generate at least one group of node groups; obtaining the load capacity of each application service node; formulating at least one preset traffic control strategy based on a preset load balancing algorithm and the load capacity of each application service node; determining a target node group from each node group based on a preset traffic control strategy and the traffic monitoring results, and distributing the traffic data to each application service node in the target node group. In the above manner, the present application can more effectively allocate resources, reduce resource waste, and improve the overall resource utilization of the server group by monitoring and analyzing traffic data. The load balancing algorithm can reasonably allocate traffic according to the load capacity of the node, reduce the overload of a single node, thereby reducing the response time and improving the user experience. By real-time monitoring and dynamic adjustment of traffic distribution, system crashes caused by node overload can be prevented, and the stability and reliability of the system can be enhanced.

[0068] In a more preferred embodiment, based on a preset load balancing algorithm and the load capacity of each of the application service nodes, at least one of the preset traffic control strategies is formulated, including:

[0069] Initializing each of the application service nodes and recording the load capacity of each of the application service nodes;

[0070] Calculate the current load of each of the application service nodes based on the current traffic data and the load capacity;

[0071] Determine the application service node with the lowest current load as the target application service node;

[0072] The current traffic data is distributed to the target application service node through a preset load balancing algorithm to generate the preset traffic control strategy.

[0073] In one embodiment, it is ensured that all application service nodes are started and ready.

[0074] Record load capacity: Record the maximum load capacity of each application service node, including CPU, memory, storage, and network bandwidth. Collect traffic data from the backend server cluster in real time and integrate the collected data for analysis and processing. Monitor the real-time load of each application service node, calculate the current load of each application service node based on the current traffic data and preset indicators, compare the current load of all application service nodes, and select the application service node with the lowest current load as the target application service node.

[0075] Select a suitable preset load balancing algorithm, such as polling, least connections, weighted polling, etc., to distribute the current traffic data to the target application service node. According to the results of the load balancing algorithm, formulate a traffic control strategy, apply the strategy to the traffic distribution system, and guide the distribution of traffic.

[0076] According to the preset traffic control strategy, the traffic data is distributed to the target application service node, and the effect of traffic distribution is monitored to ensure that the traffic is distributed correctly and efficiently.

[0077] The present embodiment discloses a traffic distribution method, apparatus, device and medium based on application node grouping. The traffic distribution method based on application node grouping includes monitoring traffic data in a backend server group and generating traffic monitoring results; grouping each application service node and generating at least one group of node groups; obtaining the load capacity of each application service node; initializing each application service node and recording the load capacity of each application service node; calculating the current load of each application service node based on current traffic data and the load capacity; determining the application service node with the lowest current load as the target application service node; distributing the current traffic data to the target application service node through a preset load balancing algorithm and generating the preset traffic control strategy; determining the target node group from each node group based on the preset traffic control strategy and the traffic monitoring results, and distributing the traffic data to each application service node in the target node group. Through the above method, the present application determines the target node grouping through traffic monitoring results and preset traffic control strategies, and can distribute traffic data to each application service node in the target node group more accurately. By grouping the nodes, the status and traffic of the nodes can be better managed, thereby improving the effect of traffic control, better responding to business changes and needs, and improving the efficiency of application node grouping.

[0078] Further, after distributing the current traffic data to the target application service node through a preset load balancing algorithm and generating the preset traffic control strategy, it includes:

[0079] Regularly updating the load information of each application service node at a preset time interval based on a preset hash algorithm;

[0080] The flow control strategy is dynamically adjusted according to the updated load information.

[0081] In one embodiment, the system performance is continuously monitored, including response time and system stability, and the flow control strategy is continuously adjusted and optimized according to the monitoring results and changes in business requirements.

[0082] The present embodiment discloses a traffic distribution method, apparatus, device and medium based on application node grouping. The traffic distribution method based on application node grouping includes monitoring traffic data in a backend server group and generating traffic monitoring results; grouping each application service node to generate at least one group of node groups; obtaining the load capacity of each application service node; initializing each application service node and recording the load capacity of each application service node; calculating the current load of each application service node based on current traffic data and the load capacity; determining the application service node with the lowest current load as the target application service node; distributing the current traffic data to the target application service node through a preset load balancing algorithm and generating the preset traffic control strategy; regularly updating the load information of each application service node at a preset time interval based on a preset hash algorithm; dynamically adjusting the traffic control strategy according to the updated load information; determining the target node group from each node group based on the preset traffic control strategy and the traffic monitoring results, and distributing the traffic data to each application service node in the target node group. Through the above method, the present application determines the target node grouping through traffic monitoring results and preset traffic control strategies, and can distribute traffic data to each application service node in the target node group more accurately. By grouping the nodes, the status and traffic of the nodes can be better managed, thereby improving the effect of traffic control, better responding to business changes and needs, and improving the efficiency of application node grouping.

[0083] See also Figure 3 , Figure 3 The embodiment of the present application provides a schematic block diagram of a traffic distribution device based on application node grouping, which is used to execute the aforementioned traffic distribution method based on application node grouping. The traffic distribution device based on application node grouping can be configured on a server.

[0084] like Figure 3 As shown, the traffic distribution device 400 based on application node grouping includes:

[0085] The flow monitoring result generating module 410 is used to monitor the flow data in the back-end server group and generate flow monitoring results;

[0086] The node grouping module 420 is used to group the application service nodes to generate at least one node group;

[0087] The traffic distribution module 430 is used to determine a target node group from each of the node groups based on a preset traffic control strategy and the traffic monitoring result, and distribute the traffic data to each of the application service nodes in the target node group.

[0088] Furthermore, the flow monitoring result generating module 410 includes:

[0089] A flow data identification unit, used to perform data analysis on the flow data and identify flow patterns and abnormal data of the flow data;

[0090] The flow monitoring result generating unit is used to generate the flow monitoring result according to the flow pattern and the abnormal data.

[0091] Furthermore, the flow monitoring result generating unit includes:

[0092] A current flow application time determination subunit, used to determine the current flow application time based on the flow pattern;

[0093] An abnormal behavior determination subunit, configured to determine abnormal behavior of the traffic data according to the abnormal data, wherein the abnormal behavior includes attack behavior and / or traffic mutation behavior;

[0094] The flow monitoring result generating subunit is used to determine the current flow application time and the attack behavior and / or the flow mutation behavior as the flow monitoring result.

[0095] Furthermore, the node grouping module 420 includes:

[0096] A business demand acquisition unit, used to acquire the business demand and performance indicators of each of the application service nodes;

[0097] The node grouping unit is used to classify each of the application service nodes according to the business requirements and the performance indicators, and generate at least one group of the node groups.

[0098] Furthermore, the traffic distribution device 400 based on application node grouping includes:

[0099] A load capacity acquisition module, used to acquire the load capacity of each of the application service nodes;

[0100] The flow control strategy formulation module is used to formulate at least one of the preset flow control strategies based on a preset load balancing algorithm and the load capacity of each of the application service nodes.

[0101] Furthermore, the flow control strategy formulation module includes:

[0102] An application service node initialization unit, used to initialize each of the application service nodes and record the load capacity of each of the application service nodes;

[0103] A current load calculation unit, used to calculate the current load of each of the application service nodes based on current traffic data and the load capacity;

[0104] a target application service node determining unit, configured to determine the application service node with the lowest current load as the target application service node;

[0105] The flow control strategy is formulated by distributing the current flow data to the target application service node through a preset load balancing algorithm to generate the preset flow control strategy.

[0106] Furthermore, the flow control strategy formulation module includes:

[0107] A load information updating unit, configured to periodically update the load information of each application service node at a preset time interval based on a preset hash algorithm;

[0108] A flow control strategy adjustment unit is used to dynamically adjust the flow control strategy according to the updated load information.

[0109] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0110] The above-mentioned device can be implemented in the form of a computer program. Figure 4 Runs on the computer device shown.

[0111] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0112] See also Figure 4 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0113] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any traffic distribution method based on application node grouping.

[0114] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0115] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any traffic distribution method based on application node grouping.

[0116] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0118] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0119] Monitor the traffic data in the backend server group and generate traffic monitoring results;

[0120] Grouping the application service nodes to generate at least one node group;

[0121] Based on a preset traffic control strategy and the traffic monitoring result, a target node group is determined from each of the node groups, and the traffic data is distributed to each of the application service nodes in the target node group.

[0122] In one embodiment, the flow data in the backend server group is monitored to generate flow monitoring results for achieving:

[0123] Performing data analysis on the traffic data to identify traffic patterns and abnormal data of the traffic data;

[0124] The flow monitoring result is generated according to the flow pattern and the abnormal data.

[0125] In one embodiment, the flow monitoring result is generated according to the flow pattern and the abnormal data, so as to achieve:

[0126] Based on the traffic pattern, determining a current traffic application time;

[0127] Determine abnormal behavior of the traffic data according to the abnormal data, wherein the abnormal behavior includes attack behavior and / or traffic mutation behavior;

[0128] The current traffic application time and the attack behavior and / or the traffic mutation behavior are determined as the traffic monitoring result.

[0129] In one embodiment, each application service node is grouped to generate at least one node group, which is used to implement:

[0130] Obtaining business requirements and performance indicators of each of the application service nodes;

[0131] According to the business requirements and the performance indicators, the application service nodes are classified to generate at least one group of node groups.

[0132] In one embodiment, based on a preset traffic control strategy and the traffic monitoring result, a target node group is determined from each of the node groups, and the traffic data is distributed to each of the application service nodes in the target node group, to achieve:

[0133] Obtaining the load capacity of each of the application service nodes;

[0134] At least one of the preset traffic control strategies is formulated based on a preset load balancing algorithm and the load capacity of each of the application service nodes.

[0135] In one embodiment, based on a preset load balancing algorithm and the load capacity of each of the application service nodes, at least one of the preset traffic control strategies is formulated to achieve:

[0136] Initializing each of the application service nodes and recording the load capacity of each of the application service nodes;

[0137] Calculate the current load of each of the application service nodes based on the current traffic data and the load capacity;

[0138] Determine the application service node with the lowest current load as the target application service node;

[0139] The current traffic data is distributed to the target application service node through a preset load balancing algorithm to generate the preset traffic control strategy.

[0140] In one embodiment, the current traffic data is distributed to the target application service node through a preset load balancing algorithm, and after the preset traffic control strategy is generated, it is used to achieve:

[0141] Regularly updating the load information of each application service node at a preset time interval based on a preset hash algorithm;

[0142] The flow control strategy is dynamically adjusted according to the updated load information.

[0143] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the traffic distribution methods based on application node grouping provided in the embodiments of the present application.

[0144] The computer-readable storage medium may be an internal storage unit of the computer device described in the above embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device.

[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A traffic distribution method based on application node grouping, characterized in that: include: Monitor the traffic data in the backend server group and generate traffic monitoring results; Grouping the application service nodes to generate at least one node group; Based on a preset traffic control strategy and the traffic monitoring result, a target node group is determined from each of the node groups, and the traffic data is distributed to each of the application service nodes in the target node group.

2. The traffic distribution method based on application node grouping according to claim 1 is characterized in that: The monitoring of the flow data in the back-end server group and generating flow monitoring results include: Performing data analysis on the traffic data to identify traffic patterns and abnormal data of the traffic data; The flow monitoring result is generated according to the flow pattern and the abnormal data.

3. The traffic distribution method based on application node grouping according to claim 2 is characterized in that: The generating the flow monitoring result according to the flow pattern and the abnormal data includes: Based on the traffic pattern, determining a current traffic application time; Determine abnormal behavior of the traffic data according to the abnormal data, wherein the abnormal behavior includes attack behavior and / or traffic mutation behavior; The current traffic application time and the attack behavior and / or the traffic mutation behavior are determined as the traffic monitoring result.

4. The traffic distribution method based on application node grouping according to claim 1 is characterized in that: The step of grouping the application service nodes to generate at least one group of node groups includes: Obtaining business requirements and performance indicators of each of the application service nodes; According to the business requirements and the performance indicators, the application service nodes are classified to generate at least one group of node groups.

5. The method for distributing traffic based on application node grouping according to claim 1, characterized in that: The method of determining a target node group from each of the node groups based on a preset traffic control strategy and the traffic monitoring result, and distributing the traffic data to each of the application service nodes in the target node group, comprises: Obtaining the load capacity of each of the application service nodes; At least one of the preset traffic control strategies is formulated based on a preset load balancing algorithm and the load capacity of each of the application service nodes.

6. The method for distributing traffic based on application node grouping according to claim 5, characterized in that: The formulating at least one of the preset traffic control strategies based on the preset load balancing algorithm and the load capacity of each of the application service nodes includes: Initializing each of the application service nodes and recording the load capacity of each of the application service nodes; Calculate the current load of each of the application service nodes based on the current traffic data and the load capacity; Determine the application service node with the lowest current load as the target application service node; The current traffic data is distributed to the target application service node through a preset load balancing algorithm to generate the preset traffic control strategy.

7. The method for distributing traffic based on application node grouping according to claim 6, characterized in that: After allocating the current traffic data to the target application service node by using a preset load balancing algorithm and generating the preset traffic control strategy, the method includes: Regularly updating the load information of each application service node at a preset time interval based on a preset hash algorithm; The flow control strategy is dynamically adjusted according to the updated load information.

8. A traffic distribution device based on application node grouping, characterized in that: include: The flow monitoring result generation module is used to monitor the flow data in the back-end server group and generate flow monitoring results; A node grouping module, used to group each application service node to generate at least one node group; The traffic distribution module is used to determine a target node group from each of the node groups based on a preset traffic control strategy and the traffic monitoring result, and distribute the traffic data to each of the application service nodes in the target node group.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the traffic distribution method based on application node grouping as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the traffic distribution method based on application node grouping as described in any one of claims 1 to 7.