Load balancing method and device, equipment, storage medium and program product

By configuring a load analyzer and decision engine in the gateway, evaluating the health status of the business system in real time, and dynamically selecting the target business system for request distribution, the problem of difficulty in responding to the state of the business system in the existing technology is solved, and the problem of load balancing methods is difficult to respond in a timely manner when the state of the business system changes is improved. The efficiency of request distribution and system stability are provided.

CN119052248APending Publication Date: 2024-11-29CHINA MOBILE GRP BEIJING +1

Patent Information

Application Number
CN202411192019.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing load balancing methods are difficult to respond and adjust in a timely manner when business system status and load changes, resulting in uneven distribution of business access requests or service interruption, and inefficient efficiency.

Method used

By configuring a load analyzer and decision engine in the gateway, we can obtain the status information and load information of each business system in real time, conduct health assessments, and dynamically select the target business system for request distribution to avoid failures and downtime.

Benefits of technology

It realizes timely response to business system status and load changes, dynamically adjusts request distribution decisions, avoids uneven request distribution and service interruption, and improves the efficiency of load balancing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052248A_ABST
    Figure CN119052248A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides a load balancing method and device, equipment, a storage medium and a program product. The method comprises the steps of receiving a service access request of a user; obtaining a health assessment result of each business system; each health assessment result is determined based on real-time state information and real-time load information of one business system; determining a target business system based on the health assessment result of each business system; and distributing the service access request to the target service system. Through the above mode, when the state and the load of the service system change, the gateway can respond to the real-time state and the real-time load of each service system in time, assess the current health degree of each service system, and dynamically adjust the selection of the target service system, so that a more reasonable service access request distribution decision is made, and the service access efficiency is improved. Non-uniform distribution of service access requests or service interruption is avoided, and the efficiency of the load balancing method 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 computer technology, and in particular to a load balancing method, device, equipment, storage medium and program product. Background Art

[0002] Load balancing is a technology used to distribute network requests, data flows, or computing tasks among multiple servers or business systems to ensure that when a server or business system fails, user services can still operate normally.

[0003] In some related technologies, load balancing mainly relies on pre-configured static rules and strategies, such as polling method, weight method, etc., to distribute multiple received business access requests to different servers or business systems.

[0004] However, when the status and load of the business system change, the existing load balancing method is difficult to respond and adjust in time, which can easily lead to uneven distribution of business access requests or service interruption, and the load balancing method is inefficient. Summary of the invention

[0005] The embodiments of the present application provide a load balancing method, apparatus, device, storage medium and program product to solve the technical problem that when the state and load of the business system change, the existing load balancing method is difficult to respond and adjust in time, which easily leads to uneven distribution of business access requests or service interruption, and the load balancing method is inefficient.

[0006] In a first aspect, an embodiment of the present application provides a load balancing method, which is applied to a gateway, and the gateway is respectively connected to multiple business system networks, and the method includes: receiving a user's business access request; obtaining a health assessment result of each business system; each health assessment result is determined based on real-time status information and real-time load information of a business system; based on the health assessment result of each business system, determining a target business system; and distributing the business access request to the target business system.

[0007] In one embodiment, the gateway is configured with a load analyzer, which is respectively connected to multiple business system networks; obtaining the health assessment result of each business system, including: based on the load analyzer, obtaining the real-time status information, real-time load information and historical business data of each business system; wherein the real-time load information includes one or more of the service response time, error log number, CPU utilization, memory utilization, disk information, and network traffic information of the business system; based on the real-time status information, real-time load information and historical business data of each business system, performing a health assessment on each business system respectively, and determining the health assessment result of each business system.

[0008] In one embodiment, the gateway is configured with a decision engine; based on the health assessment results of each business system, the target business system is determined, including: obtaining the user's location information and the request type information of the business access request; based on the decision engine, the target business system is determined according to the location information, the request type information and the health assessment results of each business system.

[0009] In one embodiment, the gateway is configured with a request distributor; distributing the business access request to the target business system includes: determining whether there is a fault in the target business system and whether the target business system has been shut down; if it is determined that there is no fault in the target business system and the target business system has not been shut down, then based on the request distributor, distributing the business access request to the target business system.

[0010] In one embodiment, the gateway is configured with a request distributor; based on the health assessment results of each business system, after determining the target business system, it also includes: judging whether there is a fault in the target business system and whether the target business system has been shut down; if it is determined that there is a fault in the target business system, or the target business system has been shut down, then based on the request distributor, the business access request is distributed to the business system that has no fault and is not shut down.

[0011] In one embodiment, after distributing the service access request to the target service system, the method further includes: receiving a response result of the service access request returned by the target service system; and sending the response result to the user.

[0012] In a second aspect, an embodiment of the present application provides a load balancing device, comprising: a receiving module for receiving a user's business access request; an acquisition module for obtaining a health assessment result of each business system; each health assessment result is determined based on the real-time status information and real-time load information of a business system; a determination module for determining a target business system based on the health assessment result of each business system; and a sending module for distributing the business access request to the target business system.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the load balancing methods described above is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the load balancing methods described above.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any of the above-mentioned load balancing methods when executed by a processor.

[0016] The load balancing method, device, equipment, storage medium and program product provided by the embodiment of the present application receive the user's business access request; obtain the health assessment result of each business system; each health assessment result is determined based on the real-time status information and real-time load information of a business system; determine the target business system based on the health assessment result of each business system; and distribute the business access request to the target business system. Through the above method, after the gateway receives the user's business access request, it first obtains the health assessment result of each business system, then determines the target business system based on the health assessment result of each business system, and distributes the business access request to the target business system. Since the health assessment result of each business system is determined based on the real-time status information and real-time load information of the business system, when the state and load of the business system change, the gateway can respond to the real-time state and real-time load of each business system in a timely manner, evaluate the current health of each business system, and dynamically adjust the selection of the target business system, so as to make a more reasonable business access request distribution decision, avoid uneven distribution of business access requests or service interruption, and improve the efficiency of the load balancing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. 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.

[0018] Figure 1 This is one of the flow charts of the load balancing method provided in the embodiment of the present application.

[0019] Figure 2 This is the second flow chart of the load balancing method provided in the embodiment of the present application.

[0020] Figure 3 It is a schematic diagram of the structure of the gateway provided in the embodiment of the present application.

[0021] Figure 4 It is a structural diagram of the load balancing device provided in an embodiment of the present application.

[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0025] See also Figure 1 , Figure 1 This is one of the flow diagrams of the load balancing method provided in the embodiment of the present application. In the embodiment of the present application, the load balancing method is applied to a gateway, which is specifically a capability gateway. The gateway is connected to multiple business system networks respectively. The load balancing method includes steps S110 to S140, and each step is as follows: S110: Receive a service access request from a user.

[0026] See also Figure 2 and Figure 3 , Figure 2 This is the second flow chart of the load balancing method provided in the embodiment of the present application. Figure 3 It is a schematic diagram of the structure of the gateway provided in the embodiment of the present application.

[0027] like Figure 2 As shown, the load balancing method of this embodiment is applied to the capability gateway, the user is the capability consumer, the business system can be understood as the capability provider, and the business access request is specifically a capability access request.

[0028] Specifically, a user (i.e., capability consumer) can initiate a service access request (i.e., capability access request) by calling a capability gateway. For example, a user can initiate a service access request to request access to an API (Application Programming Interface) provided by a business system.

[0029] Furthermore, the capability gateway may receive a service access request from a user.

[0030] like Figure 3 As shown, the capability gateway is provided with a management system, a gateway interface module, a load analyzer and a decision engine.

[0031] Among them, the capability gateway is connected to multiple business system networks through the load analyzer, and each business system can deploy multiple clusters.

[0032] The management system is used to realize user interaction between capability providers and capability consumers, and provides functions such as capability registration, capability subscription, and management approval.

[0033] The load balancing method of this embodiment sets up a management system in the capability gateway, allows multiple business systems to dynamically register with the capability gateway, and deregister the business system when it is not needed, which can improve the flexibility and scalability of the business system.

[0034] The gateway interface module is used to interact with the capability consumer's program and provide a unified capability export for the capability consumer; it can receive all capability access requests from the capability consumer and perform basic routing processing on the capability access requests; obtain the actual call address of the business system through the decision engine and forward the capability access request of the capability consumer to the business system; receive the response result of the capability access request returned by the business system, and return the final response result to the capability consumer.

[0035] Specifically, after receiving the user's business access request, the capability gateway may perform access authentication and basic routing analysis on the business access request to confirm the API of the business system that the business access request actually requires to access or call.

[0036] The load analyzer is connected to multiple business system networks respectively to monitor the operation status of each cluster in the business system corresponding to the capability, conduct health analysis and health assessment on each business system, and provide the acquired data to the decision engine to support the decision engine in making decisions.

[0037] The decision engine is used to determine the actual call address (i.e., the real access path) of the business system corresponding to the decision-making capability access request based on the load policy set by the user and the health assessment results provided by the load analyzer, and return the actual call address to the gateway interface module.

[0038] As a capability provider, the business system can deploy multiple clusters, connect to the capability gateway through the network, and achieve cross-region multi-active load balancing through the capability gateway.

[0039] S120: Obtain health assessment results for each business system.

[0040] Each health assessment result is determined based on the real-time status information and real-time load information of a business system.

[0041] Specifically, the load analyzer can obtain the real-time status information, real-time load information and historical business data of each business system in real time, and perform a health assessment on each business system based on the real-time status information, real-time load information and historical business data of each business system to determine the health assessment result of each business system.

[0042] Each health assessment result is used to assess the current load of a business system.

[0043] Generally speaking, the smaller the current load of the business system, the higher the health of the business system; the larger the current load of the business system, the lower the health of the business system.

[0044] S130: Determine a target business system based on the health assessment result of each business system.

[0045] After obtaining the health assessment results of each business system, the decision engine can determine the target business system from the existing multiple business systems based on the health assessment results of each business system and other relevant factors. That is, the decision engine decides the specific target business system and returns the actual calling address of the target business system to the gateway interface module.

[0046] S140: Distribute the service access request to the target service system.

[0047] Specifically, the gateway interface module can call the actual calling address of the target business system returned by the decision engine and distribute the business access request to the target business system; after the business system receives the business access request and performs relevant business processing, it receives the response result of the business access request returned by the target business system and returns the response result to the user.

[0048] The load balancing method provided in the embodiment of the present application receives the user's business access request; obtains the health assessment result of each business system; each health assessment result is determined based on the real-time status information and real-time load information of a business system; based on the health assessment result of each business system, determines the target business system; distributes the business access request to the target business system. Through the above method, after the gateway receives the user's business access request, it first obtains the health assessment result of each business system, then determines the target business system based on the health assessment result of each business system, and distributes the business access request to the target business system. Since the health assessment result of each business system is determined based on the real-time status information and real-time load information of the business system, when the state and load of the business system change, the gateway can respond to the real-time state and real-time load of each business system in a timely manner, evaluate the current health of each business system, and dynamically adjust the selection of the target business system, so as to make a more reasonable business access request distribution decision, avoid uneven distribution of business access requests or service interruption, and improve the efficiency of the load balancing method.

[0049] In some embodiments, the gateway is configured with a load analyzer, and the load analyzer is respectively connected to multiple business system networks.

[0050] Obtaining the health assessment results of each business system, including: based on the load analyzer, obtaining the real-time status information, real-time load information and historical business data of each business system; wherein the real-time load information includes one or more of the service response time, number of error logs, CPU utilization, memory utilization, disk information, and network traffic information of the business system; based on the real-time status information, real-time load information and historical business data of each business system, performing a health assessment on each business system respectively to determine the health assessment results of each business system.

[0051] Please continue reading Figure 3 ,like Figure 3 As shown, the gateway is configured with a load analyzer, and the load analyzer is connected to multiple business system networks respectively.

[0052] In this embodiment, a load analyzer is configured at the gateway. The load analyzer is connected to multiple business system networks respectively, and can collect real-time status information and real-time load information of each business system in real time, and perform health assessment on each business system based on the collected real-time information, comprehensively calculate the health of each business system, and determine the health assessment result of each business system; the health assessment result includes the health of the business system.

[0053] The real-time load information includes one or more of the service response time of the business system, the number of error logs, CPU usage, memory usage, disk information, and network traffic information.

[0054] Specifically, data collection is the basis for the load analyzer to perform health assessment. The load analyzer can obtain real-time status information, real-time load information and historical business data of each business system.

[0055] For example, the load analyzer can monitor and collect historical business data of each business system, such as the historical service response time of the business system, the number of historical error logs, historical CPU usage, historical memory usage, historical disk information, historical network traffic information, etc.; similarly, the load analyzer can monitor each business system online and obtain real-time status information and real-time load information of each business system.

[0056] Furthermore, based on the real-time status information, real-time load information and historical business data of each business system, a health assessment is performed on each business system to determine a health assessment result of each business system.

[0057] Specifically, after collecting the historical business data of each business system, the load analyzer sets a plurality of appropriate thresholds for each business system according to the historical business data of the business system, so as to evaluate the health of the business system.

[0058] For example, for business system A, a preset threshold of 80% can be determined based on the historical business data of business system A; when the real-time CPU usage of business system A is greater than or equal to 80%, it is considered that the health of business system A is low, and the decision engine should no longer distribute requests to business system A, thereby improving the reliability and stability of the business system.

[0059] The load balancing method provided in the embodiment of the present application sets a load analyzer in the network management, and monitors and analyzes the real-time status and real-time load of each business system in real time through the load analyzer, so as to more accurately judge the load situation of the business system, so as to make more reasonable business request distribution decisions, improve the real-time and accuracy of request distribution, and better meet the business needs of users.

[0060] In some embodiments, the gateway is configured with a decision engine.

[0061] Based on the health assessment results of each business system, the target business system is determined, including: obtaining the user's location information and the request type information of the business access request; based on the decision engine, the target business system is determined according to the location information, request type information and the health assessment results of each business system.

[0062] Please continue reading Figure 3 ,like Figure 3As shown, the gateway is configured with a decision engine, which can determine the specific distribution node (ie, the target business system) according to the health assessment result of each business system, thereby realizing intelligent forwarding of the decision engine.

[0063] It is understandable that although the health assessment results of each business system are determined based on the real-time status information and real-time load information of the business system, the health assessment results can effectively reflect the current load changes of the business system. However, if the target business system is determined only based on the health assessment results of each business system, there may still be low load balancing efficiency.

[0064] Based on this, when making distribution decisions, this embodiment not only considers the real-time status information and real-time load information of the business system, but also refers to other relevant factors to improve the quality of distribution decisions and thus improve the efficiency of load balancing.

[0065] Specifically, other relevant factors include the user's location information and the request type information of the business access request; the decision engine can determine the target business system based on the location information, request type information and the health assessment results of each business system.

[0066] For example, when a user's business access request involves accessing resources in a specific geographic location, the decision engine will give priority to the business system closest to the user, and comprehensively consider the impact of the user's location information when judging the load of the business system to ensure that the user can obtain the required capabilities and services provided by the business system at the best speed and reliability. By utilizing other relevant factors, it can better adapt to user needs and environment and provide better services; relying on the decision engine to achieve intelligent switching of business systems can enable the business system to respond to different scenarios and needs more efficiently and flexibly.

[0067] Preferably, advanced decision-making algorithms are introduced into the decision engine, such as the minimum connection number algorithm, weighted polling algorithm, etc.; at the same time, the decision engine can also learn and optimize based on historical decision data to improve the effectiveness of decisions. After the decision is executed, the results can be monitored and feedback can be provided. If the decision results are found to be unsatisfactory, timely adjustments and optimizations can be made.

[0068] The load balancing method provided in the embodiment of the present application utilizes the technology of intelligent forwarding by the decision engine to achieve efficient load balancing, improve the stability and availability of the system, and more reasonably allocate business access requests, thereby improving the resource utilization of the business system and avoiding waste of resources of the business system; at the same time, the load balancing method provided in the embodiment of the present application can avoid overloading of a single business system, thereby improving the stability and reliability of the system and ensuring the stable operation of the business system.

[0069] In some embodiments, the gateway is configured with a request distributor.

[0070] Distributing the business access request to the target business system includes: determining whether the target business system has a fault and whether the target business system has been shut down; if it is determined that the target business system has no fault and the target business system has not been shut down, then based on the request distributor, distributing the business access request to the target business system.

[0071] In the related art, the distribution of service access requests is usually based on preset rules and lacks flexibility.

[0072] Based on this, this application configures a request dispatcher (Request Dispatcher) at the gateway.

[0073] Specifically, after determining the target business system, the gateway may determine whether the target business system has a fault and whether the target business system has been shut down.

[0074] If it is determined that there is no fault in the target business system and the target business system is not shut down, the business access request is distributed to the target business system based on the request distributor.

[0075] The load balancing method provided in the embodiment of the present application is that the request distributor can dynamically distribute the business access request to the most appropriate business system based on the decision result of the decision engine: when a business system fails or shuts down, the request distributor can redistribute the business access request to other normally operating business systems. This dynamic distribution method can reduce the user's waiting time, ensure that each business access request can be optimally processed, improve the overall system performance, and enhance the user experience.

[0076] In some embodiments, the gateway is configured with a request distributor.

[0077] Based on the health assessment results of each business system, after determining the target business system, it also includes: judging whether there is a fault in the target business system and whether the target business system has been shut down; if it is determined that there is a fault in the target business system, or the target business system has been shut down, then based on the request distributor, the business access request is distributed to the business system that has no fault and is not shut down.

[0078] In some embodiments, after distributing the service access request to the target service system, the method further includes: receiving a response result of the service access request returned by the target service system; and sending the response result to the user.

[0079] The present application also provides a load balancing device. Figure 4 , Figure 44 is a schematic diagram of the structure of the load balancing device provided in the embodiment of the present application. In the embodiment of the present application, the load balancing device includes a receiving module 410, an acquiring module 420, a determining module 430 and a sending module 440.

[0080] The receiving module 410 is used to receive a service access request from a user.

[0081] The acquisition module 420 is used to obtain the health assessment result of each business system.

[0082] Each health assessment result is determined based on the real-time status information and real-time load information of a business system.

[0083] The determination module 430 is used to determine the target business system based on the health assessment result of each business system.

[0084] The sending module 440 is used to distribute the service access request to the target service system.

[0085] In some embodiments, the acquisition module 420 is used to obtain the real-time status information, real-time load information and historical business data of each business system based on the load analyzer; wherein the real-time load information includes one or more of the service response time of the business system, the number of error logs, CPU utilization, memory utilization, disk information, and network traffic information; based on the real-time status information, real-time load information and historical business data of each business system, a health assessment is performed on each business system to determine the health assessment result of each business system.

[0086] In one embodiment, the determination module 430 is used to obtain the user's location information and the request type information of the service access request; based on the decision engine, the target service system is determined according to the location information, the request type information and the health assessment result of each service system.

[0087] In one embodiment, the sending module 440 is used to determine whether there is a fault in the target business system and whether the target business system has been shut down; if it is determined that there is no fault in the target business system and the target business system has not been shut down, the business access request is distributed to the target business system based on the request distributor.

[0088] In one embodiment, the sending module 440 is used to determine whether there is a fault in the target business system and whether the target business system has been shut down; if it is determined that there is a fault in the target business system, or the target business system has been shut down, then based on the request distributor, the business access request is distributed to the business system that has no fault and is not shut down.

[0089] In one embodiment, the sending module 440 is used to receive a response result of the service access request returned by the target service system; and send the response result to the user.

[0090] The present application also provides an electronic device, Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the load balancing method.

[0091] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0092] An embodiment of the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the load balancing method provided by the above methods.

[0093] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the load balancing method provided by the above methods.

[0094] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A load balancing method, characterized in that: Applied to a gateway, the gateway is respectively connected to a plurality of business system networks, the method comprising: Receive business access requests from users; Obtaining a health assessment result of each of the business systems; each of the health assessment results is determined based on real-time status information and real-time load information of one of the business systems; Determining a target business system based on the health assessment results of each of the business systems; Distribute the service access request to the target service system.

2. The load balancing method according to claim 1, characterized in that: The gateway is configured with a load analyzer, and the load analyzer is respectively connected to a plurality of the business system networks; The obtaining of the health assessment result of each business system includes: Based on the load analyzer, real-time status information, real-time load information and historical business data of each business system are obtained; wherein the real-time load information includes one or more of the service response time, number of error logs, CPU usage, memory usage, disk information and network traffic information of the business system; Based on the real-time status information, real-time load information and historical business data of each of the business systems, a health assessment is performed on each of the business systems to determine a health assessment result of each of the business systems.

3. The load balancing method according to claim 1, characterized in that: The gateway is configured with a decision engine; The determining of the target business system based on the health assessment result of each of the business systems includes: Acquire the location information of the user and the request type information of the service access request; Based on the decision engine, a target business system is determined according to the location information, the request type information and a health assessment result of each of the business systems.

4. The load balancing method according to claim 1, characterized in that: The gateway is configured with a request distributor; The distributing the service access request to the target service system includes: Determine whether the target business system has a fault and whether the target business system has been shut down; If it is determined that the target business system has no faults and the target business system is not shut down, the business access request is distributed to the target business system based on the request distributor.

5. The load balancing method according to claim 1, characterized in that: The gateway is configured with a request distributor; After determining the target business system based on the health assessment results of each of the business systems, the method further includes: Determine whether the target business system has a fault and whether the target business system has been shut down; If it is determined that the target business system has a fault or the target business system has been shut down, the business access request is distributed to a business system that has no fault and is not shut down based on the request distributor.

6. The load balancing method according to claim 1, characterized in that: After distributing the service access request to the target service system, the method further includes: Receiving a response result of the service access request returned by the target service system; The response result is sent to the user.

7. A load balancing device, characterized in that: include: A receiving module, used for receiving a user's service access request; The acquisition module is used to obtain the health assessment results of each business system; Each of the health assessment results is determined based on real-time status information and real-time load information of one of the business systems; A determination module, configured to determine a target business system based on a health assessment result of each of the business systems; The sending module is used to distribute the service access request to the target service system.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the load balancing method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the load balancing method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the load balancing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server

    CN102056333A

  • Implementation method and system for NGINX server load balancing

    CN106657379A

  • Load balancing method and computer storage medium

    CN110351311A

  • Network flow scheduling method and device and electronic equipment

    CN110855764A

  • Service load balancing system for server optimization and balancing method thereof

    CN112988373A

Cited By

  • User authentication method, system and device based on load balancer and RADIUS server and readable medium

    CN120979756A