A method to improve the load balancing efficiency of nginx server

A load balancing and server technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve the problems of not considering the real-time load status of the back-end server, unable to fully utilize the Web server, unable to realize the server allocation tasks, etc. Achieve the effect of improving load balancing efficiency, improving operating efficiency and reducing work pressure

Active Publication Date: 2018-02-23
SHANDONG UNIV
View PDF3 Cites 0 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
  • A method to improve the load balancing efficiency of nginx server
  • A method to improve the load balancing efficiency of nginx server
  • A method to improve the load balancing 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]

[0044] Rt i is the last n services provided by the i-th server, and the response time of each service is t ij A...

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 the load balancing efficiency of the Nginx server. This method further considers the real-time load status of each back-end server on the basis of the traditional weighted round-robin load balancing scheduling strategy, and allocates the task load of each server according to the information processing capability and real-time load status of each back-end server, so that the task load The distribution is more balanced, which improves the load balancing efficiency of the Nginx server.

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
Patent Type & Authority Patents(China)
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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products