Dynamic weight load balancing method based on Nginx

A load balancing algorithm and dynamic weight technology, applied in the computer field, can solve problems such as load weight changes, inability to adjust policy distribution requests, load imbalance, etc.

Pending Publication Date: 2020-07-07
CHONGQING UNIV OF POSTS & TELECOMM
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method solves the problem that the load weight in the traditional static load balancing method cannot be changed according to the actual situation of the system backend server, resulting in load imbalance.
[0004] However, Nginx's built-in load b

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
  • Dynamic weight load balancing method based on Nginx
  • Dynamic weight load balancing method based on Nginx
  • Dynamic weight load balancing method based on Nginx

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. The described embodiments are only part of the implementation of the present invention. example, not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

[0021] A dynamic weight load balancing method based on Nginx, such as figure 2 As shown, the method includes:

[0022] The front end sends a request to the load balancer; the load balancer sends a command to collect load information to the server according to the received request information; after receiving the command to collect load information, the service sends...

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 relates to a dynamic weight load balancing method based on Nginx. The method comprises the following steps: acquiring hardware performance of each back-end server node in a no-load state; calculating a hardware influence weight; solving the weight of each server node in a no-load state according to the hardware performance and the hardware influence weight, and taking the weight as the initial weight of a dynamic weight load balancing algorithm; periodically acquiring load information of each back-end server and calculating the use ratio of each piece of hardware; calculating a hardware average performance reference according to the hardware performance; calculating the residual load of each node according to the use ratio of each hardware and the average performance benchmark of the hardware; solving a final weight; allocating a corresponding load to the server according to the final weight; according to the method, the dynamic weight load balancing algorithm based on the weighted polling algorithm is established, so that the dynamic change of the weight is realized, and the problem that the traditional load balancing algorithm cannot change the weight according to the load of the back-end server to cause load imbalance is solved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a dynamic weight load balancing method based on Nginx. Background technique [0002] With the rapid development of the Internet, the number of users is increasing day by day, and more and more requests are sent by users. These requests will generate huge load pressure on the stand-alone server. The development of cluster technology provides a solution to this problem, and load balancing is a cluster technology. very important part of it. Nginx is a high-performance HTTP and reverse proxy web server. It also provides IMAP / POP3 / SMTP services. It is famous for its rich functions, stability, and low system resource consumption, and is loved by many manufacturers. [0003] At present, there are many distribution methods based on Nginx load balancing. For example, the patent application number 201810870243.9 "A Nginx Dynamic Load Balancer Based on WebSocket Long Connecti...

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
IPC IPC(8): G06F9/50
CPCG06F9/505G06F9/5044
Inventor 李云谭畅
Owner CHONGQING UNIV OF POSTS & TELECOMM
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