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

Implementation method and system for NGINX server load balancing

A load balancing algorithm and load balancing technology, applied in transmission systems, electrical components, etc., can solve problems such as unbalanced load, high server load, idle server, etc., and achieve the effect of avoiding unbalanced load

Inactive Publication Date: 2017-05-10
CHONGQING UNIV OF POSTS & TELECOMM
View PDF4 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practical applications, server clusters often have load imbalance problems: some servers are running under high load, while other servers are idle.
However, when there are many requests for a certain type of business, the corresponding group of servers will be under high load, while the servers of other groups will be idle

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
  • Implementation method and system for NGINX server load balancing
  • Implementation method and system for NGINX server load balancing
  • Implementation method and system for NGINX server load balancing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0038] A kind of NGINX server load balancing system provided by the present invention, such as figure 1 As shown, it mainly includes clients, NGINX servers, and backend server clusters.

[0039] Client: The user sends various HTTP requests to the server through the terminal device. The request will first pass through the NGINX server responsible for load balancing, and then be forwarded to the back-end server cluster.

[0040] NGINX server: responsible for receiving HTTP requests from clients. First, analyze the business type of the request URL, and then use the load balancing algorithm to select a reasonable back-end server to process the HTTP request based on the business type and dynamically collected back-end server cluster resource information. The server processing results are returned to the client.

[0041] Back-end server cluster...

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 an implementation method and a system for NGINX server load balancing, and belongs to the field of computer network communications. The implementation method provided by the invention comprises the following steps: adopting a triggering mechanism to dynamically update resource information of a backend server cluster via an NGINX server, then calculating a load value of a backend server under each service type according to the resource information of the backend server cluster and different service types, and processing an HTTP request by selecting a backend server of which the load value is the smallest in the service type to which the HTTP request belongs. The invention further provides a corresponding system for NGINX server load balancing. According to the implementation method and the system, requests of a user can be distributed reasonably to ensure that the load of the back-end server cluster is in a relatively balanced state. Therefore, the purpose of reasonable use of the server resource is achieved.

Description

technical field [0001] The invention relates to the field of computer network communication, in particular to a method and system for realizing NGINX server load balancing. Background technique [0002] The emergence of server clusters solves the problem of massive web concurrent access. However, in practical applications, server clusters often have the problem of unbalanced load: some servers are running with high load, while other servers are idle. [0003] As a high-performance load balancing server, NINGX server is widely used in server clusters. The main method to achieve load balancing is the polling method, which evenly selects the back-end server to process the request. In the case of differences in server performance, a weighted round-robin method can be used, so that the ratio of allocated servers is proportional to its weight. Since the requested business content is different, the requirements for server resources are also different. Considering the requested b...

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): H04L29/08
CPCH04L67/1004H04L67/1008
Inventor 蒋溢邹洋祝清意葛军
Owner CHONGQING UNIV OF POSTS & TELECOMM
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