Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for improving load balance efficiency of Nginx server

A load balancing and server technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve problems such as unsatisfactory load balancing effects, inability to fully utilize web servers, and failure to consider the real-time load status of back-end servers, etc. , to achieve the effects of reducing the probability of downtime, improving load balancing efficiency, and improving operating efficiency

Active Publication Date: 2015-04-29
SHANDONG UNIV
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The weighted round-robin load balancing scheduling strategy officially designed by Nginx does not consider the real-time load status of each back-end server in the server cluster during operation, and cannot dynamically assign tasks to servers according to the concurrent business volume, and also cannot implement web servers. Fully utilized, the effect of load balancing is not ideal

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
  • Method for improving load balance efficiency of Nginx server
  • Method for improving load balance efficiency of Nginx server
  • Method for improving load balance efficiency of Nginx server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] A method for improving Nginx server cluster load balancing efficiency, comprising steps as follows:

[0038] 1) Configure the initial weight W of the backend server in the main configuration file of the Nginx server i ;

[0039] According to the physical performance of each back-end server, the initial weight of the back-end server is set to W i, and form a one-dimensional array W=[4,3,2,1]; in the full text, i is the label of the server, i∈[1,4];

[0040] nginx.conf is the main configuration file of the Nginx server, and the load balancing strategy of the Nginx server is also configured in this file, assuming that the back-end server cluster S=[S 1 ,S 2 ,S 3 ,S 4 ].

[0041] 2) Update the dynamic load Dt of the backend server i :

[0042] Obtain the latest n response time series of each backend server and form a two-dimensional array;

[0043] Rt = [ Rt 1 ...

Embodiment 2

[0064] The method for improving Nginx server cluster load balancing efficiency as embodiment 1, its difference is: step 5) in Cw i When the number of the largest backend server is greater than 1, in this embodiment, Cw i The maximum number of backend servers is 2; in the above 2 Cw i Select the initial weight W from the largest backend server i Served by the largest backend server.

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 provides a method for improving load balance efficiency of an Nginx server. According to the method, a real-time load state of each rear end server is further considered on the basis of a traditional weighting polling load balance scheduling policy, and a task amount of each server is distributed according to the information processing capability of each rear end server and a real-time load state, so that the distribution of the task amount is more balanced and the load balance efficiency of the Nginx server is improved.

Description

technical field [0001] The invention relates to a method for improving the load balancing efficiency of an Nginx server, belonging to the technical field of computer network information. Background technique [0002] With the improvement of network services, we are also faced with huge challenges while obtaining convenience. The linear growth of the number of concurrent business access is a severe test of the working ability of web servers in the network. Using multi-server cluster technology is an effective solution to the above problems, and load balancing is the core issue of cluster technology. Load balancing can reasonably distribute a large number of concurrent access requests to the back-end servers in the cluster for processing, effectively avoiding the problem of excessive data flow of a single server, and at the same time, it can balance the resources of each back-end server use. There are two types of load balancing: hardware and software. The cost of hardware i...

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): H04L29/08H04L12/803
CPCH04L67/02H04L67/1001
Inventor 袁东风王利萍刘萍
Owner SHANDONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products