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

Nginx dynamic configuration method and system

A technology of dynamic configuration and configuration files, applied in the field of server processing, can solve problems such as poor user experience, configuration errors, and poor real-time performance, and achieve the effects of good user experience, concise architecture, and high accuracy.

Active Publication Date: 2019-03-08
北京明朝万达科技股份有限公司
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] According to the above content, it is found that the disadvantage of the existing technology is that the inherent "configuration file hot loading" technology of the Nginx server requires manual configuration by the administrator in the background
This configuration method has many disadvantages: a. The real-time performance of task execution is poor; b. The probability of configuration errors; c. The user experience is not good; d. The encapsulation of the system is poor
[0009] From the perspective of actual needs and applications, modifying configuration files based on Nginx configuration file hot loading technology is still not the most efficient and concise method, and even in some specific business scenarios, users are not allowed to manually configure and modify the background

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 dynamic configuration method and system
  • Nginx dynamic configuration method and system
  • Nginx dynamic configuration method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Such as figure 2 with image 3 As shown, the present invention provides a kind of efficient and convenient Nginx dynamic configuration method, and described method comprises following content:

[0051] S1. Select a configuration type on the web console interface, and configure parameters corresponding to the type according to the configuration type;

[0052] According to the content of the present invention, wherein, the main function of the web console configuration interface is to configure the configuration parameters of the Nginx server on the web page, without the need for the user to configure the Nginx background, according to image 3 The interface includes two parts, the first part is the configuration template, and the second part is the detailed configuration parameters.

[0053]Include the type that can be configured in the configuration template and be: Nginx load balancing configuration, reverse proxy configuration, mail agent configuration, what is set...

Embodiment 2

[0066] Such as figure 2 As shown, the user performs configuration on the web console configuration interface (UI component). The specific action is to select a configuration template and fill in detailed configuration parameters. After the parameters are filled, click the "Configure" button.

[0067] The configuration parameters of the foreground interface are passed to the background, and the program will automatically match and find the correct template according to the configuration template type.

[0068] After the Nginx configuration template is successfully matched, the Nginx dynamic configuration module immediately writes the detailed configuration parameters passed by the UI component into the template to generate specific configurations.

[0069] The Nginx dynamic configuration module writes the generated collective configuration into the Nginx background configuration file nginx.conf configuration file according to the algorithm.

[0070] Finally, the program calls...

Embodiment 3

[0072] In actual application scenarios, we often encounter the problem of dynamic configuration of the Nginx server; with the help of the method designed in this patent, we can easily complete such configuration tasks. Due to the use of interface-oriented programming ideas, the configuration of the Nginx server That is, it can be configured on the UI interface or called through the background program. Here we select two practical examples of dynamic configuration of Nginx access port and dynamic configuration of Nginx load balancing to illustrate.

[0073] ①Dynamic configuration of Nginx load balancing

[0074] Application scenario: Nginx server is used as a load balancing server. In some specific business scenarios, Nginx server nodes must be able to quickly add, modify, and delete operations.

[0075] Implementation process:

[0076] 1. The user configures on the web console configuration interface (UI component). The specific action is to select the configuration template...

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 an efficient and convenient Nginx dynamic configuration method and system. The method comprises the following steps: selecting a configuration type on a web console interface; configuring a parameter corresponding to the type according to the configuration type; receiving configuration type data sent by a configuration interface; performing template type matching; judging whether the matching succeeds; if the matching succeeds, writing the configuration parameter of a UI interface to a template; generating specific configuration; writing the specific configuration content to a configuration file; and completing a configuration operation of the configuration file so that the configuration takes effect in time. According to the method and the system in the invention, the Ngnix server achieves dynamic configuration, thereby avoiding manual configuration of a user in the background such that the configuration of the Ngnix server is more efficient, convenient, fast and accurate.

Description

technical field [0001] The invention relates to the technical field of server processing, in particular to an efficient and convenient Nginx dynamic configuration method and system. Background technique [0002] Nginx is a high-performance HTTP (HyperText Transfer Protocol, hypertext transfer protocol) and reverse proxy server. It is a commonly used load balancing software in the industry. It distributes requests to back-end servers through load balancing strategies. From a practical point of view, the inherent "configuration file hot loading" technology of the Nginx server, usually we need to manually restart the program or manually reload the configuration when we update the configuration file of the application. Suppose a set of services is deployed on 10 machines, and you need to use batch operation and maintenance tools to execute restart commands, and restarting 10 machines at the same time may cause the service to be temporarily unavailable. [0003] Such as figure ...

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): H04L12/24
CPCH04L41/0253H04L41/0813H04L41/0843H04L41/22
Inventor 罗志成喻波王志海韩振国安鹏
Owner 北京明朝万达科技股份有限公司
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