Method and system for managing Nginx based on cloud native architecture
By building an Nginx containerized image and monitoring the configuration table in real time, combined with container orchestration tools and automated processes, the cumbersome Nginx image configuration problem was solved, efficient dynamic management and automated updates were achieved, and the server's stability and responsiveness were improved.
Patent Information
- Application Number
- CN202510733194.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-09-23
AI Technical Summary
In the existing technology, Nginx image configuration and installation are cumbersome and inflexible, making it difficult to achieve efficient dynamic management and configuration updates.
By building a containerized image of Nginx, using monitoring equipment to monitor the dynamic configuration target table in real time, generating performance indicators and automatically adjusting the configuration based on the monitoring status, and combining container orchestration tools and automated deployment processes, dynamic configuration and updates can be achieved.
It improves the stability and efficiency of the Nginx server, realizes dynamic monitoring and automated configuration, adapts to environmental changes, and improves configuration management efficiency and system responsiveness.
Smart Images

Figure CN120692157A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Nginx management technology, and in particular to a method and system for managing Nginx based on a cloud native architecture. Background Art
[0002] At present, with the development and progress of science and technology, and the development of Nginx servers, Nginx, as an open source, high-performance HTTP and reverse proxy server, has maintained an active state in technological development. How to manage and configure Nginx has become the most important step in the current cluster. The usual method is to directly configure and install the Nginx image. If problems occur, the image configuration and installation must be repeated after processing, which is very cumbersome.
[0003] Therefore, the present invention proposes a method and system for managing Nginx based on cloud native architecture. Summary of the Invention
[0004] The present invention provides a method and system for managing Nginx based on a cloud native architecture, which is used to build an Nginx image and use monitoring equipment in a configuration environment to monitor the indicator data of a dynamic configuration target table in real time and call instructions in time to handle problems when they occur.
[0005] In one aspect, the present invention provides a method for managing Nginx based on a cloud native architecture, comprising: Step 1: Create a containerized target Docker image of Nginx, which contains configuration files and plug-ins. Step 2: Deploy and install the target Docker image of Nginx in the target environment to generate the target container, and generate the dynamic configuration target table of Nginx based on the container orchestration tool; Step 3: Use the monitoring management program to monitor Nginx's dynamic configuration target table in real time and update the monitoring log; Step 4: Use the integrated program to process the monitoring log, analyze the Nginx monitoring information to obtain the Nginx performance indicators, and process the Nginx performance indicators to obtain the current monitoring status of Nginx; Step 5: Generate Nginx performance indicator adjustment instructions based on the monitoring status, and update and deploy the Nginx configuration.
[0006] On the other hand, create a containerized target Docker image of Nginx, which contains configuration files and plug-ins, including: Build a virtual test environment and create a working directory in the project folder of the virtual test environment to store the preset build files and configuration of the Docker image; Based on the preset build file and configuration, execute the Nginx deployment container command in the working directory to generate a first target Docker image; The first target Docker image is tested in the background to determine whether the project folder is successfully created. If successful, a Docker image compressed file is obtained based on the first target Docker image. Otherwise, the preset build files and configurations are adjusted and re-verified until the project folder is successfully created.
[0007] On the other hand, a containerized target Docker image of Nginx is created. The target Docker image includes configuration files and plug-ins, and also includes: Add a unique first tag to the compressed Docker image file, where the first tag includes: a local image name and a tag; Matching a first tag of the Docker image compressed file with a second tag of the target cloud warehouse, where the second tag includes: a warehouse image name and a tag; After the matching is completed, the Docker image compressed file is stored in the target cloud warehouse through the network transmission protocol, and a log is generated to record the upload details.
[0008] On the other hand, deploy and install the target Docker image of Nginx in the target environment to generate the target container, including: Create an Nginx folder in the target environment and obtain the repository address of the Docker image compressed file based on the target cloud repository; Download the compressed Docker image file based on the warehouse address and file acquisition software, deploy and install the compressed Docker image file in the target environment to generate the target container and complete the Nginx configuration; After the configuration is complete, the target container is tested, including using a syntax detection tool to check and modify the Nginx syntax.
[0009] On the other hand, the dynamic configuration target table of Nginx is generated based on the container orchestration tool, including: Establish a dynamic connection with the directory address of the configuration file of the Nginx container through the monitoring server, wherein any configuration file in the directory address establishes a dynamic connection with the monitoring server; Configuring a unique monitoring number for any of the configuration files, and generating a first target table using all the monitoring numbers corresponding to the container orchestration tool; The monitoring server detects the monitoring data of the configuration file in real time, maps the monitoring data to a first target table in the container, and dynamically updates the first target table to obtain the dynamic configuration target table of the Nginx.
[0010] On the other hand, the integrated program is used to process monitoring logs, analyze Nginx monitoring information to obtain Nginx performance indicators, and process Nginx performance indicators to obtain Nginx's current monitoring status, including: Use the integrated program to standardize the dynamic data preprocessing of the dynamic configuration target table to obtain the standard monitoring data of all configuration files; Based on the configuration file-performance indicator name mapping table, the performance indicator name corresponding to the configuration file is obtained, and the indicator judgment threshold of any performance indicator name is obtained based on dynamic data; Determine the operating status of the standard monitoring data corresponding to the performance indicator names in all configuration files based on the indicator judgment threshold; ;in, Indicates the operating coefficient of any performance indicator at the current moment, It represents the time difference between the i-th moment and the start time of the standard monitoring data, and n represents that the performance indicator has a total of n values. represents the operating value of the performance indicator at the i-th moment, Indicates the minimum value of the performance indicator before the current i-th moment, represents the mean value of the performance indicator before the current i-th moment, represents the maximum value of the performance indicator before the current i-th moment, and e represents the adjustment coefficient; like If the absolute value of the difference between the performance indicator and the preset standard indicator value is greater than the corresponding indicator judgment threshold, it is determined that there is an operation error in the performance indicator; otherwise, it is determined that the performance indicator is operating normally.
[0011] On the other hand, based on the monitoring status, Nginx performance indicator adjustment instructions are generated to update and deploy the Nginx configuration, including: Based on the monitoring status results of all performance indicators corresponding to all configuration files, match the configuration modification instructions of the corresponding configuration files in the Nginx management manual according to different statuses; Integrate configuration modification instructions into the automated deployment process, and automatically trigger Nginx configuration updates and deployments when the monitoring server detects the corresponding monitoring status; After each configuration change, confirm that Nginx's performance meets expectations through testing and monitoring.
[0012] In another aspect, the present invention provides a system for managing Nginx based on a cloud native architecture, comprising: Image creation module: creates a containerized target Docker image of Nginx, which contains configuration files and plug-ins; Image configuration module: deploys and installs the target Docker image of Nginx in the target environment to generate the target container, and generates the dynamic configuration target table of Nginx based on the container orchestration tool; Monitoring module: monitors Nginx's dynamic configuration target table in real time and updates the monitoring log through the monitoring management program; Operation status module: uses the integrated program to process monitoring logs, analyzes Nginx monitoring information to obtain Nginx performance indicators, and processes Nginx performance indicators to obtain Nginx's current monitoring status; Update and deployment module: Generates Nginx performance indicator adjustment instructions based on the monitoring status, and updates and deploys Nginx configuration.
[0013] The present invention provides a method and system for managing Nginx based on a cloud native architecture, which is used to build an Nginx image and use monitoring equipment in a configuration environment to monitor the indicator data of a dynamic configuration target table in real time and call instructions in time to handle problems when they occur. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 This is a flowchart of a method for managing Nginx based on a cloud native architecture provided by an embodiment of the present invention; Figure 2 This is a structural diagram of a system for managing Nginx based on a cloud native architecture provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0017] Example 1: like Figure 1 As shown, an embodiment of the present invention provides a method for managing Nginx based on a cloud native architecture, including: Step 1: Create a containerized target Docker image of Nginx, which contains configuration files and plug-ins. Step 2: Deploy and install the target Docker image of Nginx in the target environment to generate the target container, and generate the dynamic configuration target table of Nginx based on the container orchestration tool; Step 3: Use the monitoring management program to monitor Nginx's dynamic configuration target table in real time and update the monitoring log; Step 4: Use the integrated program to process the monitoring log, analyze the Nginx monitoring information to obtain the Nginx performance indicators, and process the Nginx performance indicators to obtain the current monitoring status of Nginx; Step 5: Generate Nginx performance indicator adjustment instructions based on the monitoring status, and update and deploy the Nginx configuration.
[0018] In this embodiment, Nginx is a high-performance open source web server and reverse proxy server, which is widely used for processing static files, load balancing, HTTP caching, reverse proxy and other tasks.
[0019] In this embodiment, containerization is a virtualization technology that packages an application and all its dependencies into a standardized container, including a runtime environment, libraries, configuration files, and dependencies.
[0020] In this embodiment, the target Docker image refers to a Docker image configured according to specific requirements and goals, which contains everything required by the Nginx server: configuration files, plug-ins, dependencies, etc.
[0021] In this embodiment, the configuration file contains various settings of the Nginx server, which are used to define its behavior and performance, including: a main configuration file, a virtual host configuration file, an SSL / TLS certificate and a private key, etc.
[0022] In this embodiment, the plug-in refers to a third-party module or a custom module of Nginx, such as an HTTP module, a load balancing module, a security module, etc.
[0023] In this embodiment, the target environment refers to the specific computing environment or infrastructure for deploying and running the Nginx containerized instance.
[0024] In this embodiment, the target container refers to an Nginx container instance deployed in the target environment.
[0025] In this embodiment, the container orchestration tool is a tool for automating and managing the deployment, scaling, and operation of containerized applications, such as Docker Compose, Kubernetes, etc.
[0026] In this embodiment, the dynamic configuration target table is a data structure used in the process of dynamically adjusting and updating the configuration of Nginx based on monitoring and analysis data.
[0027] In this embodiment, the monitoring management program refers to a software program for real-time monitoring and management of the performance and configuration status of the Nginx server.
[0028] In this embodiment, the monitoring log refers to a log file that records various events and indicators when the Nginx server is running.
[0029] In this embodiment, the integrated performance indicator program refers to a software module or service whose main function is to collect, analyze and process monitoring data of the Nginx server to generate performance indicators and adjustment instructions. The performance indicators include various indicators such as request volume, response time, error rate, load balancing status, etc.
[0030] In this embodiment, the monitoring status includes: load status, resource utilization, error rate, response code and the like.
[0031] In this embodiment, the adjustment instructions include configuration adjustment instructions, service restart instructions, load balancing adjustment instructions, and other aspects.
[0032] In this embodiment, updating and deploying refers to adjusting and updating the configuration of Nginx according to the current monitoring status and performance indicators of Nginx, and redeploying it.
[0033] The working principle and beneficial effects of the above technical solution are: using Docker containerization and automated processes to optimize Nginx performance, realize dynamic monitoring, configuration updates and deployment, and improve server stability and efficiency.
[0034] Example 2: Based on the above embodiment 1, a target Docker image of Nginx containerization is created. The target Docker image contains configuration files and plug-ins, including: Build a virtual test environment and create a working directory in the project folder of the virtual test environment to store the preset build files and configuration of the Docker image; Based on the preset build file and configuration, execute the Nginx deployment container command in the working directory to generate a first target Docker image; The first target Docker image is tested in the background to determine whether the project folder is successfully created. If successful, a Docker image compressed file is obtained based on the first target Docker image. Otherwise, the preset build files and configurations are adjusted and re-verified until the project folder is successfully created.
[0035] In this embodiment, the virtual test environment is a virtualized environment simulated on a physical server for developing, testing, and evaluating software applications.
[0036] In this embodiment, the project folder refers to a directory used to store project codes, configuration files and other related resources.
[0037] In this embodiment, the working directory refers to a specific directory created in the project folder of the virtual test environment, which is used to store content related to the preset build files and configurations of the Docker image.
[0038] In this embodiment, the build file and configuration are preset. The build file is a text file that contains a series of instructions, including the selection of a base image, installation dependencies, copying files, setting environment variables, etc.; the Nginx configuration file includes: Nginx server and other contents.
[0039] In this embodiment, the Nginx container deployment command includes the following steps: creating a working directory and preparing preset build files and configurations, writing a Dockerfile, and writing an Nginx configuration file.
[0040] In this embodiment, the first target Docker image refers to the initial version of the created Docker image.
[0041] The working principle and beneficial effects of the above technical solution are: using Docker to quickly verify and deploy Nginx services, creating and verifying project folders through a virtual test environment, and generating transferable Docker image compressed files, thereby improving development efficiency and environmental isolation.
[0042] Example 3: Based on the above embodiment 2, a target Docker image of Nginx containerization is created. The target Docker image includes a configuration file and a plug-in, and also includes: Add a unique first tag to the compressed Docker image file, where the first tag includes: a local image name and a tag; Matching a first tag of the Docker image compressed file with a second tag of the target cloud warehouse, where the second tag includes: a warehouse image name and a tag; After the matching is completed, the Docker image compressed file is stored in the target cloud warehouse through the network transmission protocol, and a log is generated to record the upload details.
[0043] In this embodiment, the Docker image compressed file refers to an archive file generated by the docker save command that contains the complete Docker image content, and usually ends with a .tar extension.
[0044] In this embodiment, the first tag generally refers to the local name and tag of the Docker image.
[0045] In this embodiment, the image name and tag are important elements used to uniquely identify a Docker image. For example, the name of a local Docker image may be nginx, and the tag may be latest, which are combined to form nginx:latest.
[0046] In this embodiment, the target cloud warehouse refers to a service for hosting Docker images provided by a cloud platform (such as AWS, Azure, Google Cloud, etc.).
[0047] In this embodiment, the second tag refers to the name and label of the image stored in the target cloud warehouse.
[0048] In this embodiment, the network transmission protocol refers to a protocol used to transmit the Docker image compressed file from the local system to the target cloud warehouse, including: HTTPS, SSH, SCP and other types.
[0049] The working principle and beneficial effects of the above technical solution are: through unique tagging and detailed logging, it ensures the safe and efficient uploading of local Docker images to the cloud warehouse, improving data management and operation traceability.
[0050] Example 4: Based on the above embodiment 3, the target Docker image of Nginx is deployed and installed in the target environment to generate a target container, including: Create an Nginx folder in the target environment and obtain the repository address of the Docker image compressed file based on the target cloud repository; Download the compressed Docker image file based on the warehouse address and file acquisition software, deploy and install the compressed Docker image file in the target environment to generate the target container and complete the Nginx configuration; After the configuration is complete, the target container is tested, including using a syntax detection tool to check and modify the Nginx syntax.
[0051] In this embodiment, the warehouse address refers to the warehouse storing the Docker image or the location containing the Docker image file, and is presented in the form of a URL.
[0052] In this embodiment, the file acquisition software refers to a tool for downloading files from a remote repository or server.
[0053] In this embodiment, the syntax checking tool refers to a tool for checking and verifying the syntax correctness of the Nginx configuration file, such as the nginx -t command, nginx-lint, and other tools.
[0054] In this embodiment, Nginx syntax refers to verifying and checking the correctness and legality of the Nginx configuration file.
[0055] The working principle and beneficial effects of the above technical solution are: the Docker-based Nginx automated deployment solution improves deployment efficiency and service stability through image downloading, rapid configuration, and syntax detection, and is suitable for rapid expansion and environmental consistency requirements.
[0056] Example 5: Based on the above embodiment 4, the dynamic configuration target table of Nginx is generated based on the container orchestration tool, including: Establish a dynamic connection with the directory address of the configuration file of the Nginx container through the monitoring server, wherein any configuration file in the directory address establishes a dynamic connection with the monitoring server; Configuring a unique monitoring number for any of the configuration files, and generating a first target table using all the monitoring numbers corresponding to the container orchestration tool; The monitoring server detects the monitoring data of the configuration file in real time, maps the monitoring data to a first target table in the container, and dynamically updates the first target table to obtain the dynamic configuration target table of the Nginx.
[0057] In this embodiment, dynamic connection refers to determining the connection relationship of the directory address actually used according to certain external or runtime conditions.
[0058] In this embodiment, the directory address refers to the folder path where the Nginx configuration file is stored, such as / etc / nginx / or other custom directory paths.
[0059] In this embodiment, the monitoring server refers to a software system that monitors and manages the operating status, configuration information or other key data of the system.
[0060] In this embodiment, the monitoring number is a unique identifier or ID assigned to each Nginx configuration file.
[0061] In this embodiment, the first target table is a data structure for storing and managing monitoring data related to Nginx configuration.
[0062] In this embodiment, mapping refers to a process in which the monitoring server updates the monitoring data dynamically collected from the Nginx configuration file directory and the unique monitoring number assigned to each configuration file into the first target table in real time.
[0063] The working principle and beneficial effects of the above technical solution are: using dynamic connections and real-time monitoring, managing Nginx configuration files through unique monitoring numbers, improving configuration management efficiency and system responsiveness, and ensuring dynamic adaptability and service stability under environmental changes.
[0064] Example 6: On the basis of the above embodiment 1, the monitoring log is processed by an integrated program, the monitoring information of Nginx is analyzed to obtain the performance index of Nginx, and the performance index of Nginx is processed to obtain the current monitoring status of Nginx, including: Use the integrated program to standardize the dynamic data preprocessing of the dynamic configuration target table to obtain the standard monitoring data of all configuration files; Based on the configuration file-performance indicator name mapping table, the performance indicator name corresponding to the configuration file is obtained, and the indicator judgment threshold of any performance indicator name is obtained based on dynamic data; Determine the operating status of the standard monitoring data corresponding to the performance indicator names in all configuration files based on the indicator judgment threshold; ;in, Indicates the operating coefficient of any performance indicator at the current moment, It represents the time difference between the i-th moment and the start time of the standard monitoring data, and n represents that the performance indicator has a total of n values. represents the operating value of the performance indicator at the i-th moment, Indicates the minimum value of the performance indicator before the current i-th moment, represents the mean value of the performance indicator before the current i-th moment, represents the maximum value of the performance indicator before the current i-th moment, and e represents the adjustment coefficient; like If the absolute value of the difference between the performance indicator and the preset standard indicator value is greater than the corresponding indicator judgment threshold, it is determined that there is an operation error in the performance indicator; otherwise, it is determined that the performance indicator is operating normally.
[0065] In this embodiment, preprocessing and standardization are performed, wherein preprocessing refers to cleaning, converting and normalizing the data, and standardization refers to converting the data into a standardized format or unit.
[0066] In this embodiment, standard monitoring data refers to data that has been preprocessed and standardized, and is used as a data set for performance evaluation and status judgment as a reference benchmark or standard.
[0067] In this embodiment, the configuration file-performance indicator name mapping table is a data table used to map and associate configuration files in the system with the names of the performance indicators they monitor.
[0068] In this embodiment, the performance indicator name refers to a measurement indicator of system or application performance.
[0069] In this embodiment, the dynamic data is data of a configuration file dynamically acquired in real time through a dynamic configuration target table.
[0070] In this embodiment, the indicator judgment threshold is a set of pre-set values used to measure whether the performance indicator data is normal.
[0071] In this embodiment, the adjustment coefficient refers to a parameter used to adjust or modify the indicator judgment threshold.
[0072] In this embodiment, the preset standard indicator value refers to the expected or anticipated performance indicator value under normal operating conditions.
[0073] The working principle and beneficial effects of the above technical solution are: through dynamic data preprocessing and performance indicator monitoring, real-time system monitoring and early warning can be achieved, resource utilization and automated operation and maintenance management can be optimized, and system stability and efficiency can be improved.
[0074] Example 7: Based on the above embodiment 6, the performance indicator adjustment instructions for Nginx are generated according to the monitoring status, and the Nginx configuration is updated and deployed, including: Based on the monitoring status results of all performance indicators corresponding to all configuration files, match the configuration modification instructions of the corresponding configuration files in the Nginx management manual according to different statuses; Integrate configuration modification instructions into the automated deployment process, and automatically trigger Nginx configuration updates and deployments when the monitoring server detects the corresponding monitoring status; After each configuration change, confirm that Nginx's performance meets expectations through testing and monitoring.
[0075] In this embodiment, the Nginx management manual refers to a document that contains detailed instructions on the configuration, management, optimization, and troubleshooting of the Nginx server.
[0076] In this embodiment, the configuration modification instruction refers to a command or operation for automatically adjusting the Nginx server configuration according to the performance monitoring status, such as modifying the Nginx configuration file, restarting the Nginx service, updating the reverse proxy rules, etc.
[0077] In this embodiment, the automated deployment process refers to the entire process of automating software deployment using automation tools and scripts, including configuration updates, code deployment, server startup, etc.
[0078] In this embodiment, integration refers to integrating the monitoring system, the configuration modification instructions in the Nginx management manual, and the automated deployment process.
[0079] The working principle and beneficial effects of the above technical solution are: combining the monitoring system to monitor Nginx performance in real time, automatically identifying problems and adjusting configurations, improving system stability and reliability, reducing response time, and continuously optimizing performance.
[0080] Example 8: like Figure 2 As shown, an embodiment of the present invention provides a system for managing Nginx based on a cloud native architecture, including: Image creation module: creates a containerized target Docker image of Nginx, which contains configuration files and plug-ins; Image configuration module: deploys and installs the target Docker image of Nginx in the target environment to generate the target container, and generates the dynamic configuration target table of Nginx based on the container orchestration tool; Monitoring module: monitors Nginx's dynamic configuration target table in real time and updates the monitoring log through the monitoring management program; Operation status module: uses the integrated program to process monitoring logs, analyzes Nginx monitoring information to obtain Nginx performance indicators, and processes Nginx performance indicators to obtain Nginx's current monitoring status; Update and deployment module: Generates Nginx performance indicator adjustment instructions based on the monitoring status, and updates and deploys Nginx configuration.
[0081] The working principle and beneficial effects of the above technical solution are: using Docker containerization and automated processes to optimize Nginx performance, realize dynamic monitoring, configuration updates and deployment, and improve server stability and efficiency.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for managing Nginx based on cloud native architecture, characterized in that: include: Step 1: Create a containerized target Docker image of Nginx, which contains configuration files and plug-ins. Step 2: Deploy and install the target Docker image of Nginx in the target environment to generate the target container, and generate the dynamic configuration target table of Nginx based on the container orchestration tool; Step 3: Use the monitoring management program to monitor Nginx's dynamic configuration target table in real time and update the monitoring log; Step 4: Use the integrated program to process the monitoring log, analyze the Nginx monitoring information to obtain the Nginx performance indicators, and process the Nginx performance indicators to obtain the current monitoring status of Nginx; Step 5: Generate Nginx performance indicator adjustment instructions based on the monitoring status, and update and deploy the Nginx configuration.
2. A method for managing Nginx based on cloud native architecture according to claim 1, characterized in that: Create a containerized target Docker image of Nginx, which contains configuration files and plugins, including: Build a virtual test environment and create a working directory in the project folder of the virtual test environment to store the preset build files and configuration of the Docker image; Based on the preset build file and configuration, execute the Nginx deployment container command in the working directory to generate a first target Docker image; The first target Docker image is tested in the background to determine whether the project folder is successfully created. If successful, a Docker image compressed file is obtained based on the first target Docker image. Otherwise, the preset build files and configurations are adjusted and re-verified until the project folder is successfully created.
3. A method for managing Nginx based on cloud native architecture according to claim 2, characterized in that: Create a containerized target Docker image for Nginx. The target Docker image contains configuration files and plugins, as well as: Add a unique first tag to the compressed Docker image file, where the first tag includes: a local image name and a tag; Matching a first tag of the Docker image compressed file with a second tag of the target cloud warehouse, where the second tag includes: a warehouse image name and a tag; After the matching is completed, the Docker image compressed file is stored in the target cloud warehouse through the network transmission protocol, and a log is generated to record the upload details.
4. A method and system for managing Nginx based on cloud native architecture according to claim 3, characterized in that: Deploy and install the target Docker image of Nginx in the target environment to generate the target container, including: Create an Nginx folder in the target environment and obtain the repository address of the Docker image compressed file based on the target cloud repository; Download the compressed Docker image file based on the warehouse address and file acquisition software, deploy and install the compressed Docker image file in the target environment to generate the target container and complete the Nginx configuration; After the configuration is complete, the target container is tested, including using a syntax detection tool to check and modify the Nginx syntax.
5. A method and system for managing Nginx based on cloud native architecture according to claim 4, characterized in that: Generate Nginx's dynamic configuration target table based on the container orchestration tool, including: Establish a dynamic connection with the directory address of the configuration file of the Nginx container through the monitoring server, wherein any configuration file in the directory address establishes a dynamic connection with the monitoring server; Configuring a unique monitoring number for any of the configuration files, and generating a first target table using all the monitoring numbers corresponding to the container orchestration tool; The monitoring server detects the monitoring data of the configuration file in real time, maps the monitoring data to a first target table in the container, and dynamically updates the first target table to obtain the dynamic configuration target table of the Nginx.
6. A method and system for managing Nginx based on cloud native architecture according to claim 1, characterized in that: Use the integrated program to process monitoring logs, analyze Nginx monitoring information to obtain Nginx performance indicators, and process Nginx performance indicators to obtain Nginx's current monitoring status, including: Use the integrated program to standardize the dynamic data preprocessing of the dynamic configuration target table to obtain the standard monitoring data of all configuration files; Based on the configuration file-performance indicator name mapping table, the performance indicator name corresponding to the configuration file is obtained, and the indicator judgment threshold of any performance indicator name is obtained based on dynamic data; Determine the operating status of the standard monitoring data corresponding to the performance indicator names in all configuration files based on the indicator judgment threshold; ;in, Indicates the operating coefficient of any performance indicator at the current moment, It represents the time difference between the i-th moment and the start time of the standard monitoring data, and n represents that the performance indicator has a total of n values. represents the operating value of the performance indicator at the i-th moment, Indicates the minimum value of the performance indicator before the current i-th moment, represents the mean value of the performance indicator before the current i-th moment, represents the maximum value of the performance indicator before the current i-th moment, and e represents the adjustment coefficient; like If the absolute value of the difference between the performance indicator and the preset standard indicator value is greater than the corresponding indicator judgment threshold, it is determined that there is an operation error in the performance indicator; otherwise, it is determined that the performance indicator is operating normally.
7. A method for managing Nginx based on cloud native architecture according to claim 6, characterized in that: Generate Nginx performance indicator adjustment instructions based on the monitoring status, and update and deploy Nginx configuration, including: Based on the monitoring status results of all performance indicators corresponding to all configuration files, match the configuration modification instructions of the corresponding configuration files in the Nginx management manual according to different statuses; Integrate configuration modification instructions into the automated deployment process, and automatically trigger Nginx configuration updates and deployments when the monitoring server detects the corresponding monitoring status; After each configuration change, confirm that Nginx's performance meets expectations through testing and monitoring.
8. A system for managing Nginx based on cloud native architecture, characterized in that: include: Image creation module: creates a containerized target Docker image of Nginx, which contains configuration files and plug-ins; Image configuration module: deploys and installs the target Docker image of Nginx in the target environment to generate the target container, and generates the dynamic configuration target table of Nginx based on the container orchestration tool; Monitoring module: monitors Nginx's dynamic configuration target table in real time and updates the monitoring log through the monitoring management program; Operation status module: uses the integrated program to process monitoring logs, analyzes Nginx monitoring information to obtain Nginx performance indicators, and processes Nginx performance indicators to obtain Nginx's current monitoring status; Update and deployment module: Generates Nginx performance indicator adjustment instructions based on the monitoring status, and updates and deploys Nginx configuration.