Automatic deployment method for modularized Internet of Things system

Through the automatic deployment method of componentized IoT systems, using one-click deployment scripts to automatically install and configure application services and middleware, the problems of complex and professional requirements for traditional IoT systems are solved, and the rapid deployment of IoT platforms and online deployment is achieved. Upgrade and update.

CN119473314APending Publication Date: 2025-02-18ZHEJIANG JINGRI LIGHTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411509479.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The deployment of traditional IoT systems is complex and has high professional requirements, resulting in low deployment efficiency. Subsequent upgrades and updates also require professional intervention, making it difficult to achieve rapid deployment and maintenance.

Method used

Using the automatic deployment method of componentized IoT systems, through one-click deployment scripts located in the deployment installation package, it automatically installs and configures multiple application services, middleware and basic software tools, including Java backend services, Web front-end services, Docker containers Environment, message middleware, registration center, database, cache, etc.

Benefits of technology

It realizes rapid deployment of the Internet of Things platform, reduces deployment complexity and professional requirements, improves deployment efficiency, and supports online upgrades and updates of the platform to meet the rapid deployment and delivery needs of the project.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473314A_ABST
    Figure CN119473314A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic deployment method for a modularized Internet of Things system, and the method comprises the steps: arranging a one-key deployment script in a deployment installation package, and enabling the one-key deployment script to achieve the automatic one-key installation and operation of a plurality of application services, middleware and configurations; the one-key deployment script can automatically execute deployment and configuration of various application services and middleware including a Java back-end service, a Web front-end service, a Docker container environment, a Jdk environment, message middleware, a nacos registration center, a database, a Redis cache, a Minio file service, an initialization sql, a configuration file and a domain name resolution record. The method has the advantages that the deployment difficulty can be reduced, and rapid deployment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to an automatic deployment method of a componentized Internet of Things system. Background Art

[0002] In recent years, with the deployment of communication technologies such as 5G, NB-IoT, and LoRa, the connectivity, speed, and coverage of IoT devices have been significantly improved, and the industrial chain has gradually improved and matured; as the center of device management, data integration, and application development, the IoT platform is becoming more mature and feature-rich.

[0003] With the continuous deepening of IoT applications, more intelligent and personalized services will be realized. Technological development is driving innovation and transformation of the entire industry. Customized demands are increasing to meet the needs of specific industries, such as smart parks, smart cultural tourism, smart transportation, etc.

[0004] After the development of traditional IoT systems, their actual application deployment is very complex and requires high professionalism from the deployment personnel. Usually, dedicated docking personnel need to go to the site in person to confirm the deployment, and the deployment efficiency is relatively low.

[0005] Moreover, the existing Internet of Things system still has high professional requirements in terms of subsequent upgrades and updates, and still needs to be carried out by specialized staff, which is not convenient for subsequent quick maintenance and updates. Summary of the invention

[0006] The purpose of the present invention is to provide a componentized Internet of Things system automatic deployment method. The present invention has the advantages of reducing the deployment difficulty and achieving rapid deployment.

[0007] The technical solution of the present invention is: a componentized Internet of Things system automatic deployment method, including a one-click deployment script provided in a deployment installation package, wherein the one-click deployment script can automatically install and run multiple application services, middleware and configurations with one click;

[0008] The one-click deployment script can automatically execute the deployment and configuration of various application services and middleware including Java back-end services, Web front-end services, Docker container environment, Jdk environment, message middleware, nacos registration center, database, Redis cache, Minio file service, initialization sql, configuration files and domain name resolution records.

[0009] In the aforementioned componentized IoT system automatic deployment method, the deployment process of the one-click deployment script is as follows:

[0010] S1. Copy the project system deployment installation package to the physical server where the project is deployed;

[0011] S2. Execute the one-click deployment script and enter the server IP address and system platform access domain name;

[0012] S3, automatically replace the IP address and access domain name entered by the user into all configuration files containing public variables through a one-click deployment script;

[0013] S4. Automatically install basic software tools, web front-end services and middleware services through one-click deployment scripts.

[0014] In the aforementioned componentized IoT system automatic deployment method, S4 describes automatic installation of basic software tools, web front-end services, and middleware services through a one-click deployment script. The specific contents are as follows:

[0015] S4.1. Automatically install basic software tools including Docker and JDK through one-click deployment scripts;

[0016] S4.2, automatically install services including web services, RabbitMQ message middleware, Redis cache, Minio storage, and Mysql database through a one-click deployment script;

[0017] S4.3, automatically execute initialization configuration and Java backend application services through one-click deployment script;

[0018] S4.4. Automatically execute database initialization configuration through one-click deployment script, including at least database creation, database access user creation, and database initialization SQL execution;

[0019] S4.5. Automatically import the microservice configuration to the registration center through a one-click deployment script. The configuration defines the content including the registration of backend services, database connection, middleware service connection, and log format;

[0020] S4.6. Automatically create scripts to start and stop services through one-click deployment scripts;

[0021] S4.7. Automatically start all backend application service jar packages in the Java backend service package through a one-click deployment script.

[0022] In the aforementioned componentized IoT system automatic deployment method, the one-click deployment script can connect the dynamically input domain name to the domain name management platform, and add resolution records through the one-click deployment script so that the deployed platform can be accessed through the domain name.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] The present invention realizes the rapid deployment of the Internet of Things platform through an automated one-click deployment script, reduces the deployment complexity and professional requirements, improves deployment efficiency, and can realize subsequent online upgrades and updates of the platform to meet the rapid deployment and delivery requirements of the project.

[0025] In summary, the present invention has the advantage of being able to reduce deployment difficulty and achieve rapid deployment.

[0026] Instruction Manual

[0027] Figure 1 This is a diagram of the interface of a visual system designer in an embodiment of the present invention;

[0028] Figure 2 It is a structural diagram of a project deployment installation package in an embodiment of the present invention;

[0029] Figure 3 This is a flowchart of automated deployment in an embodiment of the present invention; DETAILED DESCRIPTION

[0030] The present invention is further described below in conjunction with the accompanying drawings and embodiments, but they are not intended to limit the present invention.

[0031] Embodiment: A method for automatically deploying a componentized Internet of Things system:

[0032] Through the visual system designer, the interface is as follows Figure 1 , drag and drop the components to configure the completed project, dynamically generate the platform deployment installation package, the structure is as follows Figure 2 , define the one-click deployment script install.sh to automate the deployment of the project platform.

[0033] The one-click deployment script can automatically execute the deployment and configuration of various application services and middleware including Java back-end services, Web front-end services, Docker container environment, Jdk environment, message middleware, nacos registration center, database, Redis cache, Minio file service, initialization sql, configuration files and domain name resolution records.

[0034] The one-click deployment script can automatically add all the YAML configuration files required by the application service to the nacos registration center dynamically, and some common variables in the YAML file, such as domain name and IP information, can be written dynamically.

[0035] The one-click deployment script can connect the dynamically input domain name to the domain name management platform, and add resolution records through the script to ensure that the deployed platform can be accessed through the domain name.

[0036] The one-click deployment script includes three retries in case of failure in the automatic deployment of application services and middleware, and a rollback will be performed after the retries fail to ensure the availability of the service.

[0037] The one-click deployment script will generate and run a separate monitoring script after the service deployment is completed. The monitoring script will regularly monitor the availability of the service port. If the service is detected to be unavailable, a mechanism for restarting the service can be automatically executed.

[0038] After the first deployment is completed, the one-click deployment script will be replaced by the platform's subsequent update script. The update script can compare the differences between all deployment packages between the pre-update version and the current deployment version through the script, extract the differential files, and execute the upgrade and update operations of the corresponding service through the script.

[0039] After the component configuration of the project's subsystem applications and industry platform is performed based on the visual system designer, the system program dynamically generates a deployment installation package for the project based on the configuration. The installation package contains application front-end and back-end services, middleware, data initialization scripts, configuration files, deployment scripts, and other contents. The project platform deployment installation package can be downloaded and output through the management platform.

[0040] The deployment process of the one-click deployment script is as follows:

[0041] S1. Copy the project platform deployment installation package.zip to the physical server where the project is deployed, and decompress it. The directory structure in the deployment installation package is as follows: Figure 1 ;

[0042] S2. Execute the one-click deployment script install.sh. Just enter the server IP address and system platform access domain name according to the prompts.

[0043] S3: Based on the IP address and access domain name entered by the user, the one-click deployment script is automatically replaced in all configuration files containing public variables to ensure the consistency of variable configuration in multiple configuration files;

[0044] S4. Automatically install basic software tools, web front-end services, and middleware services through one-click deployment scripts.

[0045] S4.1. Automatically install basic software tools such as Docker and JDK through one-click deployment scripts;

[0046] S4.2. Automatically install web services, RabbitMQ message middleware, Redis cache, Minio storage, Mysql database and other services through one-click deployment script

[0047] S5, automatically execute initialization configuration and Java backend application services through one-click deployment script;

[0048] S5.1. Automatically execute database initialization configuration through scripts, including database creation, database access user creation, database initialization SQL execution, etc.;

[0049] S5.2. Automatically import microservice configuration to Nacos through scripts. This configuration defines the registration of backend services, database connection, middleware service connection, log format, etc.

[0050] S5.3. Automatically create scripts to start and stop services through scripts;

[0051] S5.4. Automatically start all backend application service jar packages in the Java backend service package through scripts;

[0052] S6, based on the system platform access domain name information entered by the S2 user, automatically adds the domain name resolution record to the Alibaba Cloud domain name management platform through a one-click deployment script;

[0053] S7: To ensure the accuracy of one-click deployment script execution, if an exception occurs in the application service or middleware during the execution of the automated one-click deployment script, a three-time retry mechanism will be triggered. After the retry fails, a rollback mechanism will be executed.

[0054] S8. After the automatic one-click deployment script is executed, a service monitoring script is generated and run. In the monitoring script, a timed monitoring mechanism for application services and middleware services needs to be set. When a service abnormality is detected and unavailable, the script automatically executes the service restart mechanism without manual intervention, thereby improving the stability and availability of the system;

[0055] S9: When all services are deployed normally and the monitoring service is running normally, the deployment script content is automatically replaced with the update script for the subsequent online update and upgrade operations of the platform. The update is strictly in accordance with the differentiated update method, that is, the files in the pre-update version and the current deployed version are verified, and only the changed services and files are updated to ensure the normal use of the system by users.

[0056] The main link of the update script is:

[0057] 1) Back up the original data

[0058] 2) Read relevant parameters and detect the update package content

[0059] 3) Replace the data in the update package

[0060] 4) Restart related services

[0061] In summary, after the deployment of the IoT platform is completed through the one-click deployment script, the user can log in to the platform to use it. Compared with manual deployment, automated deployment is more efficient and accurate, and simplifies the complexity of deployment operations and reduces the technical requirements for deployment personnel. After the platform is deployed, when the platform involves subsequent functional expansion and update requirements, it is only necessary to perform online upgrade operations on the platform interface, and update the platform online through the program-driven update script. In addition, the health status of the service and the availability monitoring mechanism are attached to the script, and automatic restart operations can be performed in the event of an abnormality to ensure the stability and availability of the system.

[0062] From system combination, installation package generation, automatic deployment, automatic upgrade process Figure 3

[0063] The specific quantitative data comparison is as follows:

[0064] Comparison Dimensions Traditional Model Optimization Mode 1 Project Deployment Efficiency 3 days 3 hours

Claims

1. A componentized Internet of Things system automatic deployment method, characterized in that: The steps include: A. Use the visual system designer to select functional components, data components, and page styles in the component library to build a componentized IoT system; B. Automatically generate local server deployment installation packages through componentized IoT systems; C. Perform automatic deployment by deploying the one-click deployment script in the installation package.

2. The method for automatic deployment of a componentized Internet of Things system according to claim 1, characterized in that: The one-click deployment script can automatically install and run multiple application services, middleware, and configurations in one click.

3. The method for automatic deployment of a componentized Internet of Things system according to claim 1, characterized in that: The one-click deployment script can automatically execute the deployment and configuration of various application services and middleware including Java back-end services, Web front-end services, Docker container environment, Jdk environment, message middleware, nacos registration center, database, Redis cache, Minio file service, initialization sql, configuration files and domain name resolution records.

4. The automatic deployment method of componentized Internet of Things system according to claim 1, characterized in that: The deployment process of the one-click deployment script is as follows: S1. Copy the project system deployment installation package to the physical server where the project is deployed; S2. Execute the one-click deployment script and enter the server IP address and system platform access domain name; S3, automatically replace the IP address and access domain name entered by the user into all configuration files containing public variables through a one-click deployment script; S4. Automatically install basic software tools, web front-end services and middleware services through one-click deployment scripts.

5. The method for automatic deployment of a componentized Internet of Things system according to claim 4, characterized in that: The automatic installation of basic software tools, web front-end services and middleware services through one-click deployment scripts described in S4 is as follows: S4.

1. Automatically install basic software tools including Docker and JDK through one-click deployment scripts; S4.2, automatically install services including web services, RabbitMQ message middleware, Redis cache, Minio storage, and Mysql database through a one-click deployment script; S4.3, automatically execute initialization configuration and Java backend application services through one-click deployment script; S4.

4. Automatically execute database initialization configuration through one-click deployment script, including at least database creation, database access user creation, and database initialization SQL execution; S4.

5. Automatically import microservice configuration to the registration center through a one-click deployment script. The configuration defines the content including backend service registration, database connection, middleware service connection, and log format; S4.

6. Automatically create scripts to start and stop services through one-click deployment scripts; S4.

7. Automatically start all backend application service jar packages in the Java backend service package through a one-click deployment script.

6. The method for automatic deployment of a componentized Internet of Things system according to claim 1, characterized in that: The one-click deployment script can connect the dynamically input domain name to the domain name management platform, and add resolution records through the one-click deployment script, so that the deployed platform can be accessed through the domain name.