A method and system for automatically deploying services across network segments
By automatically deploying the service system across network segments and utilizing file monitoring, downloading, and deployment threads, the problem of tedious and time-consuming traditional cross-segment deployment services is solved, efficient automatic deployment and remote control are achieved, and deployment costs are reduced.
Patent Information
- Application Number
- CN202310695192.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2043-06-13
AI Technical Summary
The traditional cross-segment service deployment process is cumbersome and time-consuming, without direct communication and data transmission. Manual deployment is inefficient, especially during holidays when application service errors or crashes occur and timely rollback is impossible.
A cross-segment automatic deployment service system is used to monitor, download and deploy folders through the automatic deployment service system, including file monitoring threads, download threads and deployment threads. The network gate is used to transfer files across network segments, and deployment operations are performed through command execution threads.
It realizes automatic deployment of services across network segments, improves deployment efficiency, and reduces the cost of professional deployment personnel. Especially during holidays, deployment operations can be remotely controlled without rushing to the project site.
Smart Images

Figure CN116708159B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method and system for automatically deploying services across network segments. Background Art
[0002] Traditional internet companies require specialized personnel to manually deploy application services in the production environment. Furthermore, some projects' production and local environments span different network segments, preventing direct communication and data transmission. This necessitates a step in the traditional manual deployment process to copy the application services to the production environment, a cumbersome and time-consuming process. If an application service error or crash occurs during a holiday, the relevant deployment personnel must rush to the production environment to roll back the application service. For issues that can be resolved with a direct rollback, or for version updates, traditional manual deployment is often inefficient and ineffective. Therefore, a method and system for automatically deploying services across network segments is urgently needed to address these issues. Summary of the Invention
[0003] In view of the above problems, the present invention is proposed to provide a method and system for automatically deploying services across network segments that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0005] A method for automatically deploying services across network segments, comprising:
[0006] S100 deploys the automatic deployment service system, and initializes the automatic deployment service system after the deployment is complete;
[0007] S200. Package the application service to be deployed and configure the application service requirement file. Place the packaged application service and related configuration files into the ferry folder and ferry them to the formal environment through the gatekeeper.
[0008] S300. Automatic deployment service system internal file monitoring thread FileListener to monitor the ferry folder, identify the ferry folder application services and configuration files are in compliance with the specification;
[0009] S400. When the listening thread FileListener identifies the application service and configuration file in the ferry folder that meets the specifications, the file download thread FileDownloader automatically deploys the service system's internal application service and configuration file in the ferry folder and downloads it to the formal environment to prepare for automatic deployment of the application service.
[0010] S500. The file deployment thread Deployer obtains the configuration file information associated with the application service to be deployed through the automatic deployment service system, and processes the configuration file information associated with the application service according to the obtained result;
[0011] S600 file deployment thread Deployer prepares for deployment according to preset rules, and after completing the deployment work, calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command;
[0012] S700. The Cmd execution thread CmdWork within the automatic deployment service system is called, starts executing the cmd command in the configuration file, sets the corresponding execution parameters, starts executing the deployment operation, monitors the deployment process, and deploys the application service.
[0013] Furthermore, in S100 , after the deployment is completed, the automatic deployment service system is initialized, specifically including initializing the file listening thread FileListener, the file downloading thread FileDownloader, the file deploying thread Deployer, and the Cmd executing thread CmdWorker within the automatic deployment service system.
[0014] Furthermore, in S200, the application service to be deployed is packaged and the application service requirement file is configured, specifically including: packaging the application service to be deployed in a local environment or a test environment. For application services with special configuration requirements, the relevant configuration commands can be edited and saved as a predetermined file, and the configuration file and the application service are saved.
[0015] Furthermore, S400 also includes: when the listening thread FileListener identifies that the application service and configuration files in the ferry folder do not meet the specifications, the listening thread FileDownloader inside the automatic deployment service system will move the non-compliant files to the error folder, record the error log, and end the process.
[0016] Furthermore, in S500 , processing is performed according to the obtained configuration file information result associated with the application service, specifically including: when the file deployment thread Deployer within the automatic deployment service system obtains the configuration file, the file deployment thread Deployer reads the configuration information in the configuration file and parses it.
[0017] Furthermore, in S500, processing is performed according to the obtained configuration file information result associated with the application service, specifically including: when the file deployment thread Deployer within the automatic deployment service system fails to obtain the configuration file, the file deployment thread Deployer reads the default configuration information within the automatic deployment service system and parses it.
[0018] Furthermore, in S600, the file deployment thread Deployer prepares for deployment according to preset rules. The preset rules specifically include: the file deployment thread Deployer backs up the application services running in the formal environment and renames the application services to be deployed into an executable file format.
[0019] Furthermore, in S700, if the application service is deployed successfully, the process ends; if the application service fails to be deployed, the historical application service version is rolled back, and the application service that failed to be deployed is moved to the error folder, an error log is recorded, and the process ends.
[0020] The present invention also discloses a system for automatically deploying services across network segments, comprising: an initialization unit, an application service packaging and application service requirement configuration unit, a file monitoring unit, a file downloading unit, a file deployment unit, and a file execution unit; wherein:
[0021] An initialization unit, used to deploy the automatic deployment service system and initialize the automatic deployment service system after the deployment is completed;
[0022] The application service packaging and application service requirement configuration unit is used to package the application services to be deployed and configure the application service requirement files. The packaged application services and related configuration files are placed in the ferry folder and then transferred to the formal environment through the network gate.
[0023] The file monitoring unit is used to monitor the ferry folder through the file monitoring thread FileListener inside the automatic deployment service system to identify whether the application service and configuration files in the ferry folder meet the specifications;
[0024] The file download unit is used to download the application services and configuration files in the ferry folder to the production environment through the file download thread FileDownloader within the automatic deployment service system when the listening thread FileListener identifies that the application services and configuration files in the ferry folder meet the specifications, preparing for the automatic deployment of the application services;
[0025] The file deployment unit is used to obtain the configuration file information associated with the application service to be deployed through the file deployment thread Deployer within the automatic deployment service system, and process the configuration file information associated with the application service according to the obtained result. The file deployment thread Deployer is also used to prepare the deployment work according to the preset rules, and after the deployment work is completed, it calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command;
[0026] The file execution unit is used to automatically deploy the Cmd execution thread CmdWork inside the service system, start executing the cmd command in the configuration file, set the corresponding execution parameters, start executing the deployment operation, monitor the deployment process, and deploy the application service.
[0027] The present invention also discloses an electronic device, comprising:
[0028] a memory for storing instructions executable by the processor;
[0029] The processor is configured to execute the instructions to implement a method for automatically deploying services across network segments.
[0030] The beneficial effects of the above technical solutions provided by the embodiments of the present invention include at least:
[0031] The present invention discloses a method for automatically deploying services across network segments. Simply prepare the services to be deployed in the local environment and place them in a ferry folder. Using the gateway to ferry files across network segments, the files can then be transferred across network segments. The automatic deployment service system in the official environment then performs subsequent application service deployment operations. Even if application service issues arise during holidays, the local environment can be remotely controlled to package the services and send them to the ferry folder for subsequent deployment operations, eliminating the need to travel to the project site. This significantly improves the efficiency of service deployment and reduces the deployment costs for professional deployment personnel.
[0032] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0034] Figure 1 This is a first flow chart of a method for automatically deploying services across network segments in embodiment 1 of the present invention;
[0035] Figure 2 This is a second flow chart of a method for automatically deploying services across network segments in embodiment 1 of the present invention. DETAILED DESCRIPTION
[0036] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0037] In order to solve the problems existing in the prior art, embodiments of the present invention provide a method and system for automatically deploying services across network segments.
[0038] Example 1
[0039] This embodiment discloses a method for automatically deploying services across network segments, such as Figure 1 and 2 ,include:
[0040] S100 deploys the automatic deployment service system, and initializes the automatic deployment service system after the deployment is complete;
[0041] Specifically, in S100 of this embodiment, after deployment is complete, the automatic deployment service system is initialized. This includes initializing the system's internal file listening thread (FileListener), file downloading thread (FileDownloader), file deployment thread (Deployer), and Cmd execution thread (CmdWorker). This initialization delegates the automatic deployment functionality to these four worker threads.
[0042] S200. Package the application service to be deployed and configure the application service requirement file. Place the packaged application service and related configuration files into the ferry folder and ferry them to the formal environment through the gatekeeper.
[0043] Specifically, in S200 of this embodiment, the application service to be deployed is packaged and the application service requirement file is configured, specifically including: packaging the application service to be deployed in a local environment or a test environment. For application services with special configuration requirements, the relevant configuration commands can be edited and saved as a predetermined file, and the configuration file and the application service are saved.
[0044] S300. The file listening thread FileListener inside the automatic deployment service system monitors the ferry folder to identify whether the application services and configuration files in the ferry folder comply with the specifications; it can be understood that in this embodiment, the listening thread FileListener will pre-import the rules of the application service and configuration file specifications, and make judgments based on the pre-imported rules of the application service and configuration file specifications.
[0045] S400. When the listening thread FileListener identifies the application service and configuration file in the ferry folder that meets the specifications, the file download thread FileDownloader automatically deploys the service system's internal application service and configuration file in the ferry folder and downloads it to the formal environment to prepare for automatic deployment of the application service.
[0046] In some preferred embodiments S400, when the listening thread FileListener identifies that the application service and configuration files in the ferry folder do not meet the specifications, the listening thread FileDownloader inside the automatic deployment service system will move the non-compliant files to the error folder, record the error log, and end the entire process.
[0047] S500. The file deployment thread Deployer obtains the configuration file information associated with the application service to be deployed through the automatic deployment service system, and processes the configuration file information associated with the application service according to the obtained result;
[0048] In S500 of this embodiment, processing is performed based on the obtained configuration file information associated with the application service. Specifically, when the file deployment thread Deployer within the automatic deployment service system obtains the configuration file, the file deployment thread Deployer reads and parses the configuration information in the configuration file. If the file deployment thread Deployer within the automatic deployment service system does not obtain the configuration file, the file deployment thread Deployer reads and parses the default configuration information within the automatic deployment service system.
[0049] S600 file deployment thread Deployer prepares for deployment according to preset rules, and after completing the deployment work, calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command;
[0050] In S600 of this embodiment, the file deployment thread Deployer prepares for deployment according to preset rules. The preset rules specifically include: the file deployment thread Deployer backs up the application services running in the formal environment and renames the application services to be deployed into an executable file format.
[0051] S700. The Cmd execution thread CmdWork within the automatic deployment service system is called, starts executing the cmd command in the configuration file, sets the corresponding execution parameters, starts executing the deployment operation, monitors the deployment process, and deploys the application service.
[0052] In S700 of this embodiment, if the application service is deployed successfully, the process ends. If the application service fails to be deployed, the historical application service version is rolled back, and the application service that failed to be deployed is moved to the error folder, the error log is recorded, and the process ends.
[0053] The present invention discloses a method for automatically deploying services across network segments, including: deploying an automatic deployment service system and initializing the automatic deployment service system after the deployment is completed; packaging the application services to be deployed and configuring the application service requirement files, placing the packaged application services and related configuration files into a ferry folder, and ferrying them to the formal environment through a network gate; the file listening thread FileListener within the automatic deployment service system monitors the ferry folder to identify whether the application services and configuration files in the ferry folder meet the specifications; when the listening thread FileListener identifies that the application services and configuration files in the ferry folder meet the specifications, the file downloading thread FileDownloader within the automatic deployment service system is used to download the files. Download the application service and configuration files in the ferry folder to the formal environment to prepare for the automatic deployment of the application service; obtain the configuration file information associated with the application service to be deployed through the file deployment thread Deployer inside the automatic deployment service system, and process it according to the obtained configuration file information associated with the application service; the file deployment thread Deployer prepares the deployment work according to the preset rules, and after completing the deployment work, calls the Cmd execution thread CmdWorker inside the automatic deployment service system to execute the command; the Cmd execution thread CmdWork inside the automatic deployment service system is called, and starts executing the cmd command of the configuration file, sets the corresponding execution parameters, starts executing the deployment operation, and monitors the deployment process to deploy the application service.
[0054] This embodiment discloses a method for automatically deploying services across network segments, which can solve the situation where applications cannot be deployed directly in the formal environment. Users only need to upload the application services to be deployed to the ferry folder in the local environment or remotely connect to the local environment, which greatly improves the convenience of user deployment and improves user work efficiency.
[0055] Example 2
[0056] Based on the method for automatically deploying services across network segments in Example 1, this embodiment uses a specific example to explain Example 1. The method for automatically deploying services across network segments includes:
[0057] First, you need to deploy the automatic deployment service system AutoDeploySystem in the official environment and initialize the AutoDepSystem to initialize the four core working threads: FileListener, FileDownloader, Deployer, and CmdWorker. After the initialization is completed, FileListener will start listening to the ferry destination folder and scan the folder for the application service files to be deployed.
[0058] Next, the user prepares the packaging for the application service in the local environment and writes the cmd.txt configuration file based on the application service to be deployed. Rename the application to Application@@P5 (delaying the deployment of the application by 5 minutes). After preparing all the files, upload them to the Baidu folder.
[0059] Next, the network gate ferry server will ferry all files in the ferry folder to the destination ferry folder in the official environment. FileListener listens to Application@@P5 and its configuration file, begins to identify and parse the above files, and starts parsing after the files meet the agreed specifications. After the parsing is complete, FileDownloader will start to execute the file download work, downloading and saving the application-related files in the destination ferry folder to the folder to be deployed in the official environment. After the download operation is completed, Deployer will start to execute subsequent deployment operations. Deployer backs up the application services running in the official environment, renames the application services to be deployed into an executable file format, and sets a delay of 5 minutes for deployment.
[0060] Finally, after the formal deployment operation begins, Deployer will call CmdWorker to execute the cmd command that parses the configuration file, set the corresponding operating parameters (java-Xmx3550m-Xms3550m-Xmn2g-Xss128k), start the deployment operation, and monitor the deployment process. The Application is deployed successfully and the process ends.
[0061] The method disclosed in this embodiment for automatically deploying services across network segments allows users to prepare the services to be deployed in the local environment and place them in a ferry folder. This allows files to be transferred across network segments through the gateway ferry. The automatic deployment service system in the official environment then performs subsequent application service deployment operations. Even if application service issues arise during holidays, the local environment can be remotely controlled to package the services and send them to the ferry folder for subsequent deployment operations, eliminating the need to travel to the project site. This significantly improves the efficiency of deploying services and reduces the deployment costs of professional deployers.
[0062] Example 3
[0063] Based on the method for automatically deploying services across network segments in Example 1, this embodiment discloses a system for automatically deploying services across network segments, including: an initialization unit, an application service packaging and application service requirement configuration unit, a file monitoring unit, a file downloading unit, a file deployment unit, and a file execution unit; wherein:
[0064] An initialization unit, used to deploy the automatic deployment service system and initialize the automatic deployment service system after the deployment is completed;
[0065] The application service packaging and application service requirement configuration unit is used to package the application services to be deployed and configure the application service requirement files. The packaged application services and related configuration files are placed in the ferry folder and then transferred to the formal environment through the network gate.
[0066] The file monitoring unit is used to monitor the ferry folder through the file monitoring thread FileListener inside the automatic deployment service system to identify whether the application service and configuration files in the ferry folder meet the specifications;
[0067] The file download unit is used to download the application services and configuration files in the ferry folder to the production environment through the file download thread FileDownloader within the automatic deployment service system when the listening thread FileListener identifies that the application services and configuration files in the ferry folder meet the specifications, preparing for the automatic deployment of the application services;
[0068] The file deployment unit is used to obtain the configuration file information associated with the application service to be deployed through the file deployment thread Deployer within the automatic deployment service system, and process the configuration file information associated with the application service according to the obtained result. The file deployment thread Deployer is also used to prepare the deployment work according to the preset rules, and after the deployment work is completed, it calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command;
[0069] The file execution unit is used to automatically deploy the Cmd execution thread CmdWork inside the service system, start executing the cmd command in the configuration file, set the corresponding execution parameters, start executing the deployment operation, monitor the deployment process, and deploy the application service.
[0070] Among them, the specific working methods of the initialization unit, application service packaging and application service demand configuration unit, file monitoring unit, file download unit, file deployment unit and file execution unit have been described in detail in Example 1 and will not be repeated in this embodiment.
[0071] Example 4
[0072] This embodiment discloses an electronic device, including:
[0073] a memory for storing instructions executable by the processor;
[0074] A processor is used to execute the instructions to implement a method for automatically deploying services across network segments in Example 1.
[0075] It should be understood that the specific order or hierarchy of steps in the disclosed processes is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0076] In the foregoing detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that embodiments of the claimed subject matter require more features than are expressly recited in each claim. On the contrary, as reflected in the appended claims, the invention comprises less than all the features of any individual disclosed embodiment. The appended claims are therefore hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0077] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein may be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps described above are generally described around their functions. Whether such functions are implemented as hardware or software depends on the specific application and the design constraints imposed on the entire system. A skilled person may implement the described functions in an adaptable manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of this disclosure.
[0078] The steps of the methods or algorithms described in conjunction with the embodiments herein may be directly embodied as hardware, software modules executed by a processor, or a combination thereof. The software module may be located in a RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and storage medium may also be present in a user terminal as discrete components.
[0079] For software implementation, the techniques described in this application can be implemented using modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or external to the processor. In the latter case, it is communicatively coupled to the processor via various means, which are well known in the art.
[0080] The foregoing description includes examples of one or more embodiments. Of course, it is not possible to describe all possible combinations of components or methods for the purposes of describing the above embodiments, but one of ordinary skill in the art will recognize that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to encompass all such changes, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent the term "comprising" is used in the specification or claims, the term is intended to be encompassed in a manner similar to the term "including," as explained in terms of "including," used as a transitional word in the claims. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or."
Claims
1. A method for automatically deploying services across network segments, characterized in that: include: S100 deploys the automatic deployment service system, and initializes the automatic deployment service system after the deployment is complete; S200. Package the application service to be deployed and configure the application service requirement file. Place the packaged application service and related configuration files into the ferry folder and ferry them to the formal environment through the gatekeeper. S300. Automatic deployment service system internal file monitoring thread FileListener to monitor the ferry folder, identify the ferry folder application services and configuration files are in compliance with the specification; S400. When the listening thread FileListener identifies the application service and configuration file in the ferry folder that meets the specifications, the file download thread FileDownloader automatically deploys the service system's internal application service and configuration file in the ferry folder and downloads it to the formal environment to prepare for automatic deployment of the application service. S500. The file deployment thread Deployer obtains the configuration file information associated with the application service to be deployed through the automatic deployment service system, and processes the configuration file information associated with the application service according to the obtained result; S600 file deployment thread Deployer prepares for deployment according to preset rules, and after completing the deployment work, calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command; S700. The Cmd execution thread CmdWork within the automatic deployment service system is called, starts executing the cmd command in the configuration file, sets the corresponding execution parameters, starts executing the deployment operation, monitors the deployment process, and deploys the application service.
2. A method for automatically deploying services across network segments according to claim 1, characterized in that: In S100 , after the deployment is completed, the automatic deployment service system is initialized, specifically including initializing the file listening thread FileListener, the file downloading thread FileDownloader, the file deploying thread Deployer, and the Cmd executing thread CmdWorker within the automatic deployment service system.
3. The method for automatically deploying services across network segments according to claim 1, wherein: In S200, the application service to be deployed is packaged and the application service requirement file is configured, specifically including: packaging the application service to be deployed in a local environment or a test environment. For application services with special configuration requirements, the relevant configuration commands can be edited and saved as a predetermined file, and the configuration file and application service are saved.
4. The method for automatically deploying services across network segments according to claim 1, wherein: S400 also includes: when the listening thread FileListener identifies that the application service and configuration files in the ferry folder do not meet the specifications, the listening thread FileDownloader inside the automatic deployment service system will move the non-compliant files to the error folder, record the error log, and end the process.
5. The method for automatically deploying services across network segments according to claim 1, wherein: In S500 , processing is performed according to the obtained configuration file information associated with the application service, specifically including: when the file deployment thread Deployer within the automatic deployment service system obtains the configuration file, the file deployment thread Deployer reads the configuration information in the configuration file and parses it.
6. The method for automatically deploying services across network segments according to claim 1, wherein: In S500, processing is performed according to the obtained configuration file information associated with the application service, specifically including: when the file deployment thread Deployer in the automatic deployment service system fails to obtain the configuration file, the file deployment thread Deployer reads the default configuration information in the automatic deployment service system and parses it.
7. The method for automatically deploying services across network segments according to claim 1, wherein: In S600 , the file deployment thread Deployer prepares for deployment according to preset rules. The preset rules specifically include: the file deployment thread Deployer backs up the application services running in the formal environment and renames the application services to be deployed into an executable file format.
8. The method for automatically deploying services across network segments according to claim 1, wherein: In S700 , if the application service is deployed successfully, the process ends; if the application service fails to be deployed, the historical application service version is rolled back, the application service that failed to be deployed is moved to the error folder, an error log is recorded, and the process ends.
9. A system for automatically deploying services across network segments, characterized in that: include: Initialization unit, application service packaging and application service requirement configuration unit, file monitoring unit, file download unit, file deployment unit and file execution unit; wherein: An initialization unit, used to deploy the automatic deployment service system and initialize the automatic deployment service system after the deployment is completed; The application service packaging and application service requirement configuration unit is used to package the application services to be deployed and configure the application service requirement files. The packaged application services and related configuration files are placed in the ferry folder and then transferred to the formal environment through the network gate. The file monitoring unit is used to monitor the ferry folder through the file monitoring thread FileListener inside the automatic deployment service system to identify whether the application service and configuration files in the ferry folder meet the specifications; The file download unit is used to download the application services and configuration files in the ferry folder to the production environment through the file download thread FileDownloader within the automatic deployment service system when the listening thread FileListener identifies that the application services and configuration files in the ferry folder meet the specifications, preparing for the automatic deployment of the application services; The file deployment unit is used to obtain the configuration file information associated with the application service to be deployed through the file deployment thread Deployer within the automatic deployment service system, and process the configuration file information associated with the application service according to the obtained result. The file deployment thread Deployer is also used to prepare the deployment work according to the preset rules, and after the deployment work is completed, it calls the Cmd execution thread CmdWorker within the automatic deployment service system to execute the command; The file execution unit is used to automatically deploy the Cmd execution thread CmdWork inside the service system, start executing the cmd command in the configuration file, set the corresponding execution parameters, start executing the deployment operation, monitor the deployment process, and deploy the application service.
10. An electronic device, characterized in that: include: a memory for storing instructions executable by the processor; A processor, configured to execute the instructions to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Cross-network boundary real-time stream transmission method
CN111711870A
Boundary gatekeeper non-inductive interaction method
CN114257580A