A load balancing method and device

A load balancing and application request technology, applied in the field of Internet applications, can solve problems such as inability to obtain service applications accurately and quickly, slow processing speed, etc., to achieve the effect of improving user experience, improving processing capacity, and reducing response time
CN105610971BActive Publication Date: 2019-07-02BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Publication Date
2019-07-02

Smart Images

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

Abstract

The invention provides a load balancing method and apparatus. In a distributed system, when a write operation is performed on an application request, a specific write identifier is allocated for the write operation of the application request; the write operation of the application request is allocated to a corresponding server according to the write identifier, and a preset identifier of the corresponding server is obtained; and a data identifier of the application request is updated according to the preset identifier of the corresponding server, so as to obtain a new data identifier corresponding to the application request. In the method, the new data identifier of each application request is associated with the preset identifier of the corresponding server. Through adoption of the load balancing method, arbitrary change and capacity expansion of the server in the distributed application system are realized, and the application request can be rapidly guided to the corresponding server as long as the preset identifier of the server is known, so that the processing capability of the system is improved, the response time of the system is shortened, the user experience is improved, and the pressure on the system or a database is also relieved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of Internet applications, in particular to a load balancing method and device. Background technique

[0002] In the Internet era, facing the explosive growth of data volume, many Internet companies adopt distributed systems internally, and deploy most applications in clusters composed of multiple servers. When there is an application request, the application request is processed through the load balancing method, and it is judged which server the request should be directed to. The load balancing method in the prior art includes a consistent hash algorithm, an improved consistent hash algorithm, and a modulo algorithm for the total number of servers.

[0003] In the consistent hash algorithm, when a server fails, the original failed server can only be replaced or restored, and the data on the failed server cannot be migrated to other servers in the cluster, otherwise some application requests cannot find the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More