Intelligent load balancing method based on c/s (Client/Server) architecture

A technology of intelligent load and balancing method, which is applied in the direction of digital transmission system, electrical components, transmission system, etc., and can solve problems such as limited balance algorithm

Inactive Publication Date: 2013-10-23
华易互动科技(北京)有限公司
View PDF2 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0026] 2). Insufficiency of dynamic feedback balance algorithm
[0028] The current load balancing technology is widely used, but due to the limited balancing algorithm, the application field of load balancing technology has certain limitations, such as the inability to use the existing balancing algorithm to handle the dynamic load of tasks

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Intelligent load balancing method based on c/s (Client/Server) architecture
  • Intelligent load balancing method based on c/s (Client/Server) architecture
  • Intelligent load balancing method based on c/s (Client/Server) architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] Technical implementation of load balancing based on task distribution:

[0054] 1). The program is mainly developed in java, using RMI (Java Remote Method Invocation) (EJB) technology for distributed design. RMI is java remote method invocation, which is an application used to realize remote procedure invocation in Java programming language The program programming interface interacts with the load balancer through the RMI task node, and the task node receives the message (task) of the load balancer and executes it.

[0055] 2). The load balancer communicates with the task nodes using an asynchronous message passing mechanism.

[0056] 3). The task node maintains a task queue (redis), and uses the stack to record the offset of the completed task, so that when the task node fails to complete the task unexpectedly, the remaining tasks will continue to execute after the machine recovers or be The load balancer recycles and forwards to other normal working task nodes, such ...

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

PUM

No PUM Login to view more

Abstract

The invention discloses an intelligent load balancing method based on a c/s (Client/Server) architecture. The method comprises the following steps that: (1) a communication connection is established between all task nodes and a load balancer by employing a c/s star structure, wherein the task nodes and the load balancer are initialized, and a long connection is maintained; (2) the task nodes periodically transmit node information to the load balancer; (3) the load balancer calculates a performance value of each task node according to the node information and determines distribution of the tasks according to the variation tendency of the performance value of each task node, if the performance of a certain task node is improved, tasks in a total task queue are distributed to the task nodes, and if the performance of a certain task node is reduced, the tasks in the total task queue are paused to be distributed to the task nodes; (4) the task nodes receive the distributed tasks and feed back a task execution log to the load balancer. According to the method, dynamic regulation of the tasks can be realized, and fine intelligent load balancing is achieved.

Description

technical field [0001] The invention relates to a load balancing method, in particular to an intelligent load balancing method based on a c / s architecture, and belongs to the field of distributed network computing. Background technique [0002] Load balancing is a method to achieve load sharing through a certain algorithm. In layman's terms, it is a device that distributes requests uniformly. Load balancing will receive all requests uniformly, and then distribute these requests to all members of the load balancing group according to the set algorithm, so as to achieve balanced distribution of requests (load) . [0003] The main task of load balancing is to reduce the pressure on the server and distribute the system load in a balanced manner. And servers participating in load balancing are always in one or more clusters, and clusters enable enterprise applications to scale beyond the throughput that a single application server can achieve. [0004] Server load balancing is...

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/803H04L29/06
Inventor 薛振文
Owner 华易互动科技(北京)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products