Nginx-based load balancing implementation method and apparatus, computer device, and storage medium

A technology of load balancing and configuration, which is applied in the computer field, can solve problems such as the impact of Http request response efficiency, difficulty in quickly responding to massive concurrent Http requests, etc., and achieve the effect of strong adaptability and improved response efficiency

Active Publication Date: 2018-12-07
KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF16 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Nginx itself provides some load balancing strategies, but most of them are static strategies, and it is difficult to quickly respond to massive concurrent Http requests, which has a great impact on the response efficiency of Http requests.

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
  • Nginx-based load balancing implementation method and apparatus, computer device, and storage medium
  • Nginx-based load balancing implementation method and apparatus, computer device, and storage medium
  • Nginx-based load balancing implementation method and apparatus, computer device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0021] The Nginx-based load balancing implementation method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the Nginx server 104 through the network. Wherein, the terminal 102 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the Nginx server 104 can be realized by an independent server or a server cluster composed of multiple servers. The Nginx server 104 may be a physical server, or...

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 application relates to a Nginx-based load balancing implementation method and apparatus, a computer device, and a storage medium. The method includes: an Http request sent by a terminal is received, wherein the Http request includes a service identifier; a configuration sub file corresponding to the service identifier initially is obtained, wherein the configuration sub file records a corresponding load balancing strategy; performance indexes of all service nodes in a Nginx cluster during the monitoring period are monitored; the load balancing strategy is adjusted based on the performanceindexes and the adjusted load balancing strategy and the corresponding service identifier are stored in the database; a file conversion assembly is invoked to read a newly added load balancing strategy in the database; the read load balancing strategy is transformed into a configuration sub file corresponding to the service identifier currently; the current configuration sub file is performed andthus the adjusted load balancing strategy comes into force; and according to the adjusted load balancing strategy, the Http request is allocated to the corresponding service node for processing. Therefore, the load balancing strategy can be adjusted dynamically; and the response efficiency of the Http request is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an Nginx-based load balancing implementation method, device, computer equipment and media. Background technique [0002] With the development of computer technology, a large number of business systems have emerged, and the number of concurrent visits to business systems has also increased sharply. In order to quickly respond to massive concurrent Web (World Wide Web, World Wide Web) access requests, that is, Http (HyperTextTransfer Protocol, Hypertext Transfer Protocol) requests, people use load balancing software such as Nginx (engine x) to divert and forward massive Http requests to different servers implement. Nginx receives the Http request sent by the client, forwards the Http request to the server cluster on the internal network based on the preset load balancing strategy, and returns the result obtained from the server cluster to the client. Nginx itself prov...

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/02H04L67/1004H04L67/1008H04L67/1029H04L67/30H04L67/63
Inventor 晏彬
Owner KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
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