A load balancing method and system for uninterrupted business

A load balancing and shared memory technology, applied in the communication field, can solve problems such as inability to take effect in real time, dynamic loading of back-end instances, dynamic scaling and fault isolation of back-end instances, etc. Situation of isolation reduces the effect

CN109842651BActive Publication Date: 2021-11-26CHINA MOBILE GROUP SHAIHAI +1
9 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2021-11-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention provides a method and system for uninterrupted service load balancing. The method includes: S1. The load balancing device judges in real time whether the service of the backend instance is available, and updates the service status of the backend instance to the data stored in the shared memory. Service availability list; S2, the shared memory writes the updated service availability list to the configuration file of each load balancing device in real time, and saves the configuration file persistently; S3, when the load balancing device receives a user request, select one according to the service availability list A backend instance can be used to handle user requests. Update the service status of the backend instance to the service availability list stored in the shared memory in real time; the shared memory uses an asynchronous method to write the change information of the service availability list into the configuration file, and notify other load balancing devices to update the relevant configuration files; Dynamically load requests to backend instances that do not exist in the configuration file when the load balancer is restarted.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of communications, and more specifically, to a load balancing method and system for uninterrupted services. Background technique

[0002] Load balancing refers to the allocation of user traffic accessing the same IP address to different servers according to the pre-configured load balancing algorithm. It distributes user traffic to different servers through virtual service technology, server health check technology and flow-by-flow forwarding technology On the multi-step server, the processing capacity of the server is indirectly improved, and the stability and scalability of the server are also indirectly improved.

[0003] With the construction of the third-generation business support, the business support system is developing in the direction of multi-centralization, remoteness, and complexity. The number of hosts has doubled, and the complexity of the system has also increased. Ensuring the cont...

Examples

Embodiment Construction

[0045] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0046] Such as figure 1 and figure 2 As shown, the figure shows a load balancing method, including:

[0047] S1. Determine whether the service of the backend instance is available in real time, and update the service status of the backend instance to the service availability list stored in the shared memory;

[0048] S2. Write the updated service availability list into the configuration files of each load balancing device in real time, and persist the configuration files;

[0049] S3. When receiving a user request, select an available backend instance to process the user request according to the service availability list.

[0050] In this example, if image 3 As show...