Project deployment method and device

Through an automated project deployment method, the problems of low efficiency and poor accuracy of manual configuration deployment in the microservice architecture are solved, efficient and accurate service deployment is achieved, and labor costs are reduced.

CN114416112BActive Publication Date: 2025-02-11CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111647405.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-02-11
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In the microservice architecture scenario, the deployment process of manually configured service clusters leads to high labor costs, low efficiency and error-prone.

Method used

By responding to project deployment requests for project templates and node servers, obtain the identification of templates and node servers, generate deployment tasks, and send tasks to node servers to batch deploy services to be deployed, including virtual machine services and container application services.

Benefits of technology

It realizes automatic batch deployment method, reduces dependence on human resources, improves deployment efficiency and accuracy, and simplifies the deployment process through customization of project templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416112B_ABST
    Figure CN114416112B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for deploying a project, the method comprising: obtaining the identification of a project template and a node server by responding to a project deployment request initiated for a project template and a node server; obtaining the service deployment data of a service to be deployed according to the access address of the service deployment data, and generating a deployment task according to the identification of the dependent middleware, the external access port, the deployment priority and the service deployment data; sending the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed, wherein the services to be deployed include virtual machine services and / or container application services. The embodiment of the present invention provides an automatic batch deployment method that supports virtualization and containerized services, simplifies the project deployment process through customization of project templates, realizes a one-click deployment function based on project templates, reduces dependence on human resources, and improves deployment efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular, relates to a project deployment method, device, electronic device, computer-readable storage medium and computer program product. Background Art

[0002] With the continuous development of microservice architecture technology, the cost of building service projects in scenarios using microservice architecture is also increasing.

[0003] At present, in the microservice architecture scenario, the service projects to be deployed include a large number of service clusters, and the service deployment involved is also relatively complex. Currently, manual configuration is usually used to complete the deployment of each service in the service cluster in turn.

[0004] However, the inventors discovered during the research process that in the current solution, the manual configuration method will result in high labor costs, low deployment efficiency and the configuration process is prone to errors. Summary of the invention

[0005] Based on this, the present invention provides a project deployment solution to solve the problems in the related art that manual configuration means will result in high labor costs, low configuration efficiency and prone to errors in the configuration process.

[0006] The present invention also provides a project deployment device to ensure the implementation and application of the above method in practice.

[0007] An embodiment of the present invention provides a project deployment method, which is applied to deploy a scheduling server. The method includes:

[0008] In response to a project deployment request initiated for a project template and a node server, the project template and the identifier of the node server are obtained; the project template includes: at least one service to be deployed included in the project to be deployed, the access address of the service deployment data of the service to be deployed, the deployment priority of the service to be deployed, the external access port, and the identifier of the dependent middleware;

[0009] According to the access address of the service deployment data, the service deployment data of the service to be deployed is obtained, and a deployment task is generated according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data;

[0010] According to the identification of the node server, the deployment task is sent to the node server, so that the node server can batch deploy the services to be deployed according to the deployment task, the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services.

[0011] The embodiment of the present invention further provides a project deployment device, which is applied to a deployment scheduling server, and the device includes:

[0012] An acquisition module, configured to acquire the project template and the identifier of the node server in response to a project deployment request initiated for the project template and the node server; the project template includes: at least one service to be deployed included in the project to be deployed, the access address of the service deployment data of the service to be deployed, the deployment priority of the service to be deployed, the external access port, and the identifier of the dependent middleware;

[0013] A generation module, used to obtain the service deployment data of the service to be deployed according to the access address of the service deployment data, and generate a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data;

[0014] A deployment module is used to send the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed according to the deployment task, the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services.

[0015] An embodiment of the present invention further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the project deployment method.

[0016] An embodiment of the present invention further provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the project deployment method.

[0017] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the project deployment method is implemented.

[0018] In an embodiment of the present invention, it includes: obtaining the identification of the project template and the node server by responding to the project deployment request initiated for the project template and the node server; obtaining the service deployment data of the service to be deployed according to the access address of the service deployment data, and generating a deployment task according to the identification of the dependent middleware, the external access port, the deployment priority and the service deployment data; sending the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed, wherein the services to be deployed include virtual machine services and / or container application services. The embodiment of the present invention provides an automatic batch deployment method that supports virtualization and containerized services, simplifies the project deployment process through the customization of the project template, makes the deployment method more flexible, realizes the one-click deployment function based on the project template, reduces the dependence on human resources, and improves the deployment efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0020] Figure 1 It is a flowchart of the steps of a project deployment method provided by an embodiment of the present invention;

[0021] Figure 2 It is an architecture diagram of a project deployment method provided by an embodiment of the present invention;

[0022] Figure 3 It is a flowchart of specific steps of a project deployment method provided by an embodiment of the present invention;

[0023] Figure 4 It is an interactive flow chart of a project deployment method provided by an embodiment of the present invention;

[0024] Figure 5 It is an interactive flow chart of a project reconstruction and upgrading method provided by an embodiment of the present invention;

[0025] Figure 6 is a block diagram of a project deployment device provided by an embodiment of the present invention;

[0026] Figure 7 A logical block diagram of an electronic device according to an embodiment of the present disclosure;

[0027] Figure 8 A logical block diagram of an electronic device according to another embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0030] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0031] Figure 1 is a flowchart of a method for deploying a project provided by an embodiment of the present invention, which is applied to deploy a scheduling server, such as Figure 1 As shown, the method may include:

[0032] Step 101: In response to a project deployment request initiated for a project template and a node server, obtain the identifiers of the project template and the node server.

[0033] The project template includes: at least one service to be deployed included in the project to be deployed, an access address of service deployment data of the service to be deployed, a deployment priority of the service to be deployed, an external access port, and an identifier of a dependent middleware.

[0034] In the embodiment of the present invention, refer to Figure 2 , which shows an architecture diagram of a project deployment method provided by an embodiment of the present invention, including: a deployment scheduling server, multiple node servers and a deployment information management system. The deployment information management system includes a service management server, a project template server, a project management server, a resource management server, a configuration warehouse server, and an orchestration file warehouse server.

[0035] The service management server is responsible for the management of virtualization services and container application services, and realizes service deployment, upgrade, rollback, expansion, and destruction functions; the project template server is used to maintain the project templates uploaded by users; the project management server is used to manage the instantiation of the project template after deployment, and records information such as the project status; the resource management server is responsible for the management and resource collection of the virtual machines, physical machines, and containerized clusters of all node servers; the configuration warehouse server is used to maintain the configuration information uploaded by users; the orchestration file warehouse server is used to maintain the container orchestration files uploaded by users.

[0036] The embodiment of the present invention aims at having the deployment scheduling server respond to the project deployment request, obtain the service deployment data and project templates required for the services included in the project to be deployed from the deployment information management system, and generate deployment tasks based on the service deployment data and project templates and send them to the node server for project deployment.

[0037] Specifically, the deployment information management system includes a project template server, which is used to store and maintain project templates. The project template defines multiple single services included in a project to be deployed, and is a batch management tool for project services.

[0038] Before the deployment scheduling server starts to perform deployment operations, the user can define the deployment method, version, name, deployment priority (used to characterize the order of deployment), service port (the port open to the outside world for external users to access) and other parameters of each service through the client according to the list of services required by the project to be deployed and the list of middleware that the service depends on (used to implement some functions required by the service, such as the middleware can be a middleware that implements the caching function). After the definition is completed, a project template is generated and uploaded to the project template server. Furthermore, the user can upload the service deployment data required by the service to be deployed to the specified location in the deployment information management system for storage through the client, and define the access address of the service deployment data in the project template.

[0039] After the client completes the above operations, the client can send a project deployment request initiated for the project template and node server (specified by the user of the client) to the deployment scheduling server, so that the deployment scheduling server can respond to the project deployment request, obtain the project template uploaded by the user from the project template server, and obtain the identifier of the node server specified by the user from the resource management server of the deployment information management system, wherein the resource management server is used to implement management and resource collection of all node servers.

[0040] Specifically, when a user uploads a project template, the project template server can store the correspondence between the user ID and the project template. When the user specifies a node server, the resource management server can also store the correspondence between the user ID and the node server ID. The project deployment request sent by the client to the deployment scheduling server can carry the user ID, so that the deployment scheduling server can obtain the project template corresponding to the user ID in the target template server through the user ID, and obtain the node server ID corresponding to the user ID in the resource management server.

[0041] Step 102: Acquire the service deployment data of the service to be deployed according to the access address of the service deployment data, and generate a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data.

[0042] In the embodiment of the present invention, since the access address of the service deployment data is defined in the project template, the deployment scheduling server can access the service deployment data from the project template through the access address. Figure 2 The deployment information management system shown obtains the service deployment data of the service to be deployed, and then generates a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data. These parameters carried by the deployment task can be used by the node server to perform project deployment operations.

[0043] Step 103: Send the deployment task to the node server according to the identifier of the node server.

[0044] So that the node server can batch deploy the services to be deployed according to the deployment task, the identifier of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services.

[0045] In an embodiment of the present invention, in order to achieve rapid batch deployment of various services to be deployed contained in the to-be-deployed project on the node server, the node server can use the identifier of the dependent middleware in the deployment task sent by the deployment scheduling server, the external access port, the deployment priority, and the service deployment data to quickly deploy various services to be deployed in the local environment through the service deployment data based on the order of deployment priority, and add middleware dependencies and external access ports for the services to be deployed.

[0046] In an embodiment of the present invention, the services to be deployed include but are not limited to two types: virtual machine services and container application services. A virtual machine service refers to a complete computer system with complete hardware system functions that is simulated by software and runs in a completely isolated environment. All work that can be done in a physical computer can be done in a virtual machine service. Since the virtual machine service runs independently on the node server and is completely independent of other running modules of the node server, all operations in the virtual machine will not affect other running modules of the node server. Therefore, the virtual machine service can usually be used for data testing and experiments. Container application technology can package applications into components that are accessed by a single address, stored in a database, and can be deployed with only one line of command. Regardless of where the container application service is deployed, the container application service can fundamentally simplify the service deployment work and achieve the purpose of lightweight. Since the lightweight design requirements are met, the container application service has the advantages of fast response and easy migration.

[0047] In summary, a method for deploying a project provided by an embodiment of the present invention obtains the identification of a project template and a node server by responding to a project deployment request initiated for the project template and the node server; obtains the service deployment data of the service to be deployed according to the access address of the service deployment data, and generates a deployment task according to the identification of the dependent middleware, the external access port, the deployment priority and the service deployment data; sends the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed, wherein the services to be deployed include virtual machine services and / or container application services. An embodiment of the present invention provides an automatic batch deployment method that supports virtualization and containerized services, simplifies the project deployment process through customization of project templates, makes the deployment method more flexible, realizes a one-click deployment function based on project templates, reduces dependence on human resources, and improves deployment efficiency and accuracy.

[0048] Figure 3 is a flowchart of the specific steps of a project deployment method provided by an embodiment of the present invention, such as Figure 3 As shown, the method may include:

[0049] Step 201: In response to a project deployment request initiated for a project template and a node server, obtain the identifiers of the project template and the node server.

[0050] The project template includes: at least one service to be deployed included in the project to be deployed, an access address of service deployment data of the service to be deployed, a deployment priority of the service to be deployed, an external access port, and an identifier of a dependent middleware.

[0051] For details of this step, please refer to the relevant description of the above step 101, which will not be repeated here.

[0052] Step 202: Acquire the service deployment data of the service to be deployed according to the access address of the service deployment data, and generate a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data.

[0053] For details of this step, please refer to the relevant description of the above step 102, which will not be repeated here.

[0054] Optionally, in one implementation, step 202 may specifically include:

[0055] Sub-step 2021: When the service to be deployed includes a virtual machine service, obtain configuration information and deployment files of the virtual machine service according to the access address of the service deployment data.

[0056] Reference Figure 4 , which shows an interactive flow chart of a project deployment method provided by an embodiment of the present invention. Figure 4 The specific implementation process of the current embodiment is described.

[0057] Before the deployment scheduling server starts to execute the deployment project operation, the client can first execute S1 to define the project template. When the service to be deployed is defined in the project template, including the virtual machine service, since the deployment of the virtual machine service requires configuration information and deployment files as service deployment data, the user needs to execute S2 to upload the configuration information required for the virtual machine service to the configuration warehouse server while defining the project template, and to upload the deployment files required for the virtual machine service to the corresponding storage area.

[0058] After the client completes the above operations, the client can execute S4 to send a project deployment request to the deployment scheduling server. The project deployment server can execute S5 to obtain the project template uploaded by the user from the project template server, and execute S6 to obtain the identifier of the node server specified by the user from the resource management server. Since the user has defined the virtual machine service to be deployed, the client can execute S7 to obtain the configuration information required for deploying the virtual machine service from the configuration warehouse server according to the access address of the service deployment data, and execute the operation of obtaining the deployment file from the preset storage area.

[0059] Optionally, the access address of the service deployment data includes: the identifier of the virtual machine service and the storage path of the deployment file. Sub-step 2021 may specifically include:

[0060] Sub-step A1: acquiring configuration information of the virtual machine service from a configuration repository server according to the identifier of the virtual machine service, wherein the configuration information in the configuration repository server is uploaded by the client.

[0061] Sub-step A2: acquiring the deployment file according to the storage path of the deployment file.

[0062] In an embodiment of the present application, when a user uploads configuration information to a configuration warehouse server through a client, the configuration warehouse server can store the correspondence between the configuration information and the identifier of the virtual machine service, and then before the deployment scheduling server deploys the virtual machine service, the configuration information of the virtual machine service can be obtained from the configuration warehouse server through the identifier of the virtual machine service included in the access address of the service deployment data.

[0063] Furthermore, when uploading the deployment file to the corresponding storage area, the user can record the storage path where the deployment file is stored in the preset storage area. The storage path can be a File Transfer Protocol (FTP) address. The deployment scheduling server can obtain the deployment file from the preset storage area through the storage path.

[0064] Sub-step 2022: Generate a first deployment task according to the deployment mode, the external access port, the deployment priority, the configuration information and the deployment file.

[0065] The first deployment task is used for the node server to batch deploy the virtual machine service according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file.

[0066] After obtaining the service deployment data required to deploy the virtual machine service, refer to Figure 4 The deployment scheduling server can execute S8 to deploy the virtual machine service in the virtual machine of the node server, thereby completing the batch deployment of the virtual machine service in the project to be deployed. During the deployment process, the configuration of the middleware that the virtual machine service depends on is completed, and the addition of the external access port is completed. The deployment order is executed according to the deployment priority defined by the project template. Among them, the virtual machine in the node server used to deploy the virtual machine service can be a virtual machine specified by the user.

[0067] Optionally, in another implementation, step 202 may specifically include:

[0068] Sub-step 2023: When the service to be deployed includes a container application service, obtain a container orchestration file and an image file of the container application service according to an access address of the service deployment data.

[0069] Before the deployment scheduling server starts to execute deployment project operations, refer to Figure 4, the client can first execute S1 to define the project template. When the service to be deployed is defined in the project template, including the container application service, since the deployment of the container application service requires the container orchestration file and the image file as the service deployment data, the user needs to execute S3 to upload the container orchestration file required by the container application service to the orchestration file warehouse server, and to upload the image file required by the container application service to the image warehouse server while defining the project template.

[0070] The container orchestration file can be a helm chart orchestration file based on kubernetes, which can flexibly define the forwarding rules, storage, probe detection, dynamic scaling, and rolling update strategies of container application services according to specific needs, so as to achieve better container application service orchestration and management functions. The following is an example of a helm chart orchestration file:

[0071]

[0072]

[0073] After the client completes the above operations, the client can execute S4 to send a project deployment request to the deployment scheduling server. The project deployment server can execute S5 to obtain the project template uploaded by the user from the project template server, and execute S6 to obtain the identifier of the node server specified by the user from the resource management server. Since the user defines the container application service to be deployed, the client can execute S9 to obtain the container orchestration file required for deploying the container application service from the orchestration file warehouse server according to the access address of the service deployment data, and execute the operation of obtaining the image file from the image warehouse server.

[0074] Optionally, the access address of the service deployment data includes: the identifier of the container application service, and sub-step 2023 may specifically include:

[0075] Sub-step B1: acquiring the container orchestration file of the virtual machine service from an orchestration file repository server according to the identifier of the container application service, wherein the container orchestration file in the orchestration file repository server is uploaded by the client.

[0076] Sub-step B2: acquiring the image file of the virtual machine service from the image warehouse server according to the identifier of the container application service, where the image file in the image warehouse server is uploaded by the client.

[0077] In an embodiment of the present application, when a user uploads a container orchestration file to an orchestration file repository server through a client, the orchestration file repository server may store the correspondence between the container orchestration file and the identifier of the container application service, and then before the deployment scheduling server deploys the container application service, the container orchestration file of the container application service may be obtained from the orchestration file repository server through the identifier of the container application service included in the access address of the service deployment data.

[0078] Furthermore, when the user uploads the image file to the image warehouse server, the image warehouse server can store the correspondence between the image file and the identifier of the container application service, and the deployment scheduling server can obtain the image file of the container application service from the image warehouse server through the identifier of the container application service.

[0079] Sub-step 2024: Generate a second deployment task according to the deployment method, the external access port, the deployment priority, the configuration information and the deployment file data packet, wherein the second deployment task is used for the node server to batch deploy the container application service according to the identifier of the dependent middleware, the external access port, the deployment priority, the container orchestration file and the image file.

[0080] After obtaining the service deployment data required to deploy container application services, refer to Figure 4 The deployment scheduling server can execute S10 to deploy the container application service in the container of the node server, thereby completing the batch deployment of the container application service in the project to be deployed. During the deployment process, the configuration of the middleware that the container application service depends on is completed, and the addition of the external access port is completed. The deployment order is executed according to the deployment priority defined by the project template. Among them, the container in the node server used to deploy the container application service can be a user-specified container.

[0081] Step 203: Send the deployment task to the automatic batch deployment process in the edge processing module of the node server according to the identifier of the node server.

[0082] The automatic batch deployment process batch deploys the services to be deployed in the service deployment area according to the deployment task, the identifier of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

[0083] The node server includes an edge processing module and a service deployment area, and an automatic batch deployment process is set in the edge processing module.

[0084] In the embodiment of the present invention, refer to Figure 2In order to ensure the independence of the operation of containers and virtual machines in the node server, the embodiment of the present application can make the deployment operation of the node server independent of the container and virtual machine working environment of the node server, that is, the edge processing module and the service deployment area are specifically divided in the node server, and an automatic batch deployment process is set in the edge processing module to batch deploy the services to be deployed in the service deployment area in an edge computing processing manner through the automatic batch deployment process in the edge processing module, thereby realizing deployment operations independent of the container and virtual machine working environment.

[0085] Among them, the edge processing module can be flansible:ansible REST API (batch automated operation and maintenance tool), which can realize the function of automatically deploying batch services based on the parameters and service deployment data defined in the project template.

[0086] Optionally, step 203 may specifically include:

[0087] Sub-step 2031, according to the identification of the node server, sending the deployment task to the edge gateway service of the edge processing module of the node server through the public network through the central gateway service, so that the edge gateway service sends the deployment task to the automatic batch deployment process of the edge processing module.

[0088] In the embodiment of the present invention, refer to Figure 2 The deployment scheduling server can transmit data to the public network through the central gateway service, and the edge processing module of the node server has an edge gateway service. The edge gateway cannot be used to receive data sent through the public network. The embodiment of the present invention is based on the central gateway service to realize the connection between the deployment scheduling server and the public network, and based on the edge gateway service to realize the connection between the edge processing module and the public network, thereby realizing the function of sending the deployment task of the deployment scheduling server from the public network to the edge processing module of the node server.

[0089] Step 204: Receive deployment status information sent by the node server after deployment is completed, and send the deployment status information to the client.

[0090] In an embodiment of the present invention, after the deployment is completed, the node server will send deployment status information to the deployment scheduling server to reflect the deployment status. The deployment scheduling server can send the deployment status information to the client in a real-time broadcast manner so that the client user can understand the deployment result.

[0091] Optionally, the project template further includes: configurable personalized parameters. Before step 202, the method further includes:

[0092] Step 205: Send the project template and the identifier of the node server to the client, so that the client can configure personalized parameters of the project template according to the identifier of the node server.

[0093] In an embodiment of the present invention, the project template may also have configurable personalized parameters. After the deployment node server obtains the identifiers of the project template and the node server, it may also send the project template and the identifier of the node server to the client, so that the client can configure the personalized parameters of the project template according to the identifier of the node server. For example, the client can perform some personalized parameter configurations such as setting the service execution cycle and adjusting the intensity of relevant personalized parameters in the service, thereby improving the personalization level of the deployed service.

[0094] Optionally, the method further includes:

[0095] Step 206: Generate a third deployment task according to the access address of the service deployment data, the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data.

[0096] Step 207: According to the identifier of the node server, the third deployment task is sent to the node server, so that the node server can obtain the service deployment data of the service to be deployed according to the access address of the service deployment data, and batch deploy the services to be deployed according to the identifier of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

[0097] In another implementation manner of the embodiment of the present invention, the deployment scheduling server may not execute the operation of obtaining the service deployment data from the deployment information management system according to the access address of the service deployment data, but instead generates a third deployment task according to the access address of the service deployment data, the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data, and sends the third deployment task to the node server. The node server first obtains the service deployment data according to the access address of the service deployment data, and then batch deploys the services to be deployed according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data, thereby improving the flexibility of the execution of the deployment plan.

[0098] Optionally, the method further includes:

[0099] Step 208: When it is determined that the node server has deployed a project, in response to a project reconstruction and upgrade request initiated for the service to be deployed, a destruction instruction is sent to the node server, so that the node server destroys the deployed project according to the destruction instruction.

[0100] The embodiment of the present invention can also provide a function of rebuilding and upgrading the deployed project to complete the project upgrade. Figure 5 , which shows an interactive flow chart of a project reconstruction and upgrade method provided by an embodiment of the present invention. When it is determined that the node server has deployed the service to be deployed, if the user needs to rebuild and update the deployed project, the user can execute M1 through the client to upload the updated project template to the project template server. When the deployed project includes a virtual machine service, execute M2 to upload the updated configuration information to the configuration warehouse server, and upload the updated deployment file to the preset storage area; when the deployed project includes a container application service, the client can execute M3 to upload the updated container orchestration file to the orchestration file warehouse server, and upload the updated image file to the image warehouse server.

[0101] After completing the above client operations, the client can execute M4 to select the project to be upgraded and initiate a project reconstruction request to the deployment scheduling server. The deployment scheduling server can respond to the project reconstruction request initiated for the service to be deployed and send a destruction instruction to the node server, so that the node server can destroy the deployed service to be deployed according to the destruction instruction and wait for the update deployment of the new project. Specifically, when there is a virtual machine service in the project, the deployment scheduling server controls the node server to execute M5 to destroy the virtual machine service in the deployed project. When there is a container application service in the project, the deployment scheduling server controls the node server to execute M6 to destroy the container application service in the deployed project.

[0102] Step 209: Get the updated project template.

[0103] In this step, refer to Figure 5 The client can execute M7 to initiate an upgrade request to the deployment scheduling server, so that the deployment scheduling server responds to the upgrade request, execute M8 to obtain an updated project template from the project template server, and execute M9 to obtain the identifier of the node server specified by the user for upgrade from the resource management server.

[0104] Step 210: Acquire the updated service deployment data according to the access address of the service deployment data in the updated project template, and generate an updated deployment task according to the identifier of the dependent middleware of the updated project template, the external access port, the deployment priority and the updated service deployment data.

[0105] In this step, refer to Figure 5The client can further obtain the updated service deployment data according to the access address of the service deployment data in the updated project template, and generate an updated deployment task according to the identifier of the dependent middleware of the updated project template, the external access port, the deployment priority and the updated service deployment data.

[0106] Specifically, when the upgraded service includes a virtual machine service, the deployment scheduling server can execute M10 to obtain updated configuration information from the configuration repository server, and obtain updated deployment files from the preset storage area, and use the updated configuration information and the updated deployment files as new service deployment data for the virtual machine service; when there is a container application service in the project, the deployment scheduling server can execute M12 to obtain updated container orchestration files from the orchestration file repository server, and obtain updated image files from the image repository server, and use the updated container orchestration files and the updated image files as new service deployment data for the container application service.

[0107] Step 211: Send the update deployment task to the node server according to the identifier of the node server, so that the node server can create an updated deployment project to replace the destroyed deployed project according to the update deployment task.

[0108] In this step, the deployment scheduling server can send an update deployment task generated based on the updated project template and the update service deployment data to the node server, and the node server can then create an updated deployment project to replace the destroyed deployed project based on the update deployment task, thereby completing the update and reconstruction of the project.

[0109] Specifically, refer to Figure 5 When the upgraded service includes a virtual machine service, the deployment scheduling server can control the node server to execute M11 to deploy the updated virtual machine service; when the upgraded service includes a container application service, the deployment scheduling server can control the node server to execute M13 to deploy the updated container application service; after the deployment is completed, the deployment scheduling server can execute M14 to send deployment status information to the client so that the client can perceive the result of the project reconstruction and upgrade.

[0110] In actual application, for the scenario of the project deployment method of the present invention, the project includes a total of 32 services, including 13 virtualized services and 19 containerized services, which need to be deployed on 48 virtual machines. In addition, project data initialization is required, involving virtual service configuration and containerized service configuration. The deployment and configuration process is cumbersome. Even in such a complex scenario, the embodiment of the present invention can shorten the time to deploy a service to 30 minutes, and the success rate of a deployment can basically reach 100%. The deployment time is 1 / 8 of the time consumed by manual deployment before. It is estimated that 50 services in the province are iterated and upgraded once a month, which can save 175 working hours of deployment time per month, greatly improving the deployment efficiency.

[0111] In summary, a method for deploying a project provided by an embodiment of the present invention obtains the identification of a project template and a node server by responding to a project deployment request initiated for the project template and the node server; obtains the service deployment data of the service to be deployed according to the access address of the service deployment data, and generates a deployment task according to the identification of the dependent middleware, the external access port, the deployment priority and the service deployment data; sends the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed, wherein the services to be deployed include virtual machine services and / or container application services. An embodiment of the present invention provides an automatic batch deployment method that supports virtualization and containerized services, simplifies the project deployment process through customization of project templates, makes the deployment method more flexible, realizes a one-click deployment function based on project templates, reduces dependence on human resources, and improves deployment efficiency and accuracy.

[0112] In addition, the embodiment of the present invention introduces the function of customizing project templates to template complex projects, thereby greatly reducing the complexity of deployment. The containerized or virtualized deployment method and related deployment parameters of each service in the project template can be flexibly defined according to business needs and service dependencies, so that the project deployment operation is streamlined, standardized, and automated. After the project template is debugged in the initial stage, it can be easily reused in various environments later, so that the deployment process does not rely on operation and maintenance deployment experience, greatly improving deployment efficiency, shortening the product version release cycle, and being more conducive to version control and iterative upgrades.

[0113] Figure 6 is a block diagram of a project deployment device provided by an embodiment of the present invention, which is applied to deploy a scheduling server, such as Figure 6 As shown, the device may include:

[0114] The acquisition module 301 is used to obtain the project template and the identifier of the node server in response to the project deployment request initiated for the project template and the node server; the project template includes: at least one service to be deployed included in the project to be deployed, the access address of the service deployment data of the service to be deployed, the deployment priority of the service to be deployed, the external access port, and the identifier of the dependent middleware;

[0115] A generation module 302 is used to obtain the service deployment data of the service to be deployed according to the access address of the service deployment data, and generate a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data;

[0116] The deployment module 303 is used to send the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed according to the deployment task, the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services.

[0117] Optionally, the generating module 302 includes:

[0118] A first acquisition submodule is used to acquire configuration information and deployment files of the virtual machine service according to the access address of the service deployment data when the service to be deployed includes a virtual machine service;

[0119] The first generation submodule is used to generate a first deployment task according to the deployment method, the external access port, the deployment priority, the configuration information and the deployment file. The first deployment task is used for the node server to batch deploy the virtual machine service according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file.

[0120] Optionally, the access address of the service deployment data includes: the identifier of the virtual machine service and the storage path of the deployment file; the first acquisition submodule includes:

[0121] A first acquisition unit is used to acquire configuration information of the virtual machine service from a configuration repository server according to an identifier of the virtual machine service, where the configuration information in the configuration repository server is uploaded by a client;

[0122] The second acquisition unit is used to acquire the deployment file according to the storage path of the deployment file.

[0123] Optionally, the generating module 302 includes:

[0124] A second acquisition submodule is used to acquire a container orchestration file and an image file of the container application service according to an access address of the service deployment data when the service to be deployed includes a container application service;

[0125] The second generation submodule is used to generate a second deployment task according to the deployment method, the external access port, the deployment priority, the configuration information and the deployment file data packet, and the second deployment task is used for the node server to batch deploy the container application service according to the identifier of the dependent middleware, the external access port, the deployment priority, the container orchestration file and the image file.

[0126] Optionally, the second acquisition submodule includes:

[0127] A third acquisition unit is used to acquire the container orchestration file of the virtual machine service from the orchestration file warehouse server according to the identifier of the container application service, where the container orchestration file in the orchestration file warehouse server is uploaded by the client;

[0128] The fourth acquisition unit is used to acquire the image file of the virtual machine service from the image warehouse server according to the identifier of the container application service, where the image file in the image warehouse server is uploaded by the client.

[0129] Optionally, the node server includes an edge processing module and a service deployment area, the edge processing module is provided with an automatic batch deployment process, and the deployment module 303 includes:

[0130] A batch deployment submodule is used to send the deployment task to the automatic batch deployment process in the edge processing module of the node server according to the identification of the node server, so that the automatic batch deployment process can batch deploy the services to be deployed in the service deployment area according to the deployment task, the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

[0131] Optionally, the batch deployment submodule includes:

[0132] A public network forwarding unit is used to send the deployment task to the edge gateway service of the edge processing module of the node server through the public network through the central gateway service according to the identification of the node server, so that the edge gateway service can send the deployment task to the automatic batch deployment process of the edge processing module.

[0133] Optionally, the project template further includes: configurable personalized parameters, and the device further includes:

[0134] The personalized configuration module is used to send the project template and the identifier of the node server to the client, so that the client can configure personalized parameters of the project template according to the identifier of the node server.

[0135] Optionally, the device further comprises:

[0136] The broadcast module is used to receive the deployment status information sent by the node server after the deployment is completed, and send the deployment status information to the client.

[0137] Optionally, the method further includes:

[0138] An alternative generation module, configured to generate a third deployment task according to the access address of the service deployment data, the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data;

[0139] An alternative deployment module is used to send the third deployment task to the node server according to the identification of the node server, so that the node server can obtain the service deployment data of the service to be deployed according to the access address of the service deployment data, and batch deploy the services to be deployed according to the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

[0140] Optionally, the device further comprises:

[0141] a destroying module, configured to, when determining that the node server has deployed a project, send a destroying instruction to the node server in response to a project rebuilding and upgrading request initiated for the service to be deployed, so that the node server destroys the deployed project according to the destroying instruction;

[0142] Update acquisition module, used to obtain updated project templates;

[0143] An update generation module, used to obtain the update service deployment data according to the access address of the service deployment data in the updated project template, and generate an update deployment task according to the identifier of the dependent middleware of the updated project template, the external access port, the deployment priority and the update service deployment data;

[0144] The update deployment module is used to send the update deployment task to the node server according to the identifier of the node server, so that the node server can establish an updated deployment project to replace the destroyed deployed project according to the update deployment task.

[0145] In summary, an embodiment of the present invention provides a project deployment device, which obtains the identification of the project template and the node server by responding to the project deployment request initiated for the project template and the node server; obtains the service deployment data of the service to be deployed according to the access address of the service deployment data, and generates a deployment task according to the identification of the dependent middleware, the external access port, the deployment priority and the service deployment data; sends the deployment task to the node server according to the identification of the node server, so that the node server can batch deploy the services to be deployed, wherein the services to be deployed include virtual machine services and / or container application services. An embodiment of the present invention provides an automatic batch deployment method that supports virtualization and containerized services, simplifies the project deployment process through the customization of the project template, makes the deployment method more flexible, realizes the one-click deployment function based on the project template, reduces the dependence on human resources, and improves the deployment efficiency and accuracy.

[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0147] Figure 7 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0148] Reference Figure 7 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0149] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0150] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0151] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0152] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0153] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0154] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0155] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0156] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0157] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement a method for deploying a project provided in an embodiment of the present disclosure.

[0158] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0159] Figure 8is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Figure 8 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to execute a method for deploying a project provided by an embodiment of the present disclosure.

[0160] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0161] The embodiment of the present disclosure also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the deployment method of the project is implemented.

[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A project deployment method, applied to deploy a scheduling server, characterized in that: The method includes: In response to a project deployment request initiated for a project template and a node server, the project template and the identifier of the node server are obtained; the project template includes: at least one service to be deployed included in the project to be deployed, the access address of the service deployment data of the service to be deployed, the deployment priority of the service to be deployed, the external access port, and the identifier of the dependent middleware; According to the access address of the service deployment data, the service deployment data of the service to be deployed is obtained, and a deployment task is generated according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data; According to the identifier of the node server, the deployment task is sent to the node server, so that the node server can batch deploy the services to be deployed according to the deployment task, the identifier of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services; The acquiring the service deployment data of the service to be deployed according to the access address of the service deployment data, and generating a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data, comprises: In the case where the service to be deployed includes a virtual machine service, obtaining configuration information and deployment files of the virtual machine service according to the access address of the service deployment data; A first deployment task is generated according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file. The first deployment task is used for the node server to batch deploy the virtual machine services according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file.

2. The method according to claim 1, characterized in that The access address of the service deployment data includes: the identifier of the virtual machine service and the storage path of the deployment file; and obtaining the configuration information and deployment file of the virtual machine service according to the access address of the service deployment data includes: According to the identifier of the virtual machine service, obtain configuration information of the virtual machine service from a configuration warehouse server, where the configuration information in the configuration warehouse server is uploaded by the client; The deployment file is obtained according to the storage path of the deployment file.

3. The method according to claim 1, characterized in that: The acquiring the service deployment data of the service to be deployed according to the access address of the service deployment data, and generating a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data, comprises: In a case where the service to be deployed includes a container application service, obtaining a container orchestration file and an image file of the container application service according to an access address of the service deployment data; A second deployment task is generated according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file data packet, and the second deployment task is used for the node server to batch deploy the container application service according to the identifier of the dependent middleware, the external access port, the deployment priority, the container orchestration file and the image file.

4. The method according to claim 3, characterized in that The access address of the service deployment data includes: an identifier of the container application service; and obtaining the container orchestration file and the image file of the container application service according to the access address of the service deployment data includes: According to the identifier of the container application service, obtaining the container orchestration file of the virtual machine service from the orchestration file warehouse server, where the container orchestration file in the orchestration file warehouse server is uploaded by the client; According to the identifier of the container application service, an image file of the virtual machine service is obtained from an image warehouse server, where the image file in the image warehouse server is uploaded by a client.

5. The method according to claim 1, characterized in that The node server includes an edge processing module and a service deployment area, the edge processing module is provided with an automatic batch deployment process, and the deployment task is sent to the node server according to the identifier of the node server, including: According to the identification of the node server, the deployment task is sent to the automatic batch deployment process in the edge processing module of the node server, so that the automatic batch deployment process can batch deploy the services to be deployed in the service deployment area according to the deployment task, the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

6. The method according to claim 5, characterized in that The automatic batch deployment process of sending the deployment task to the edge processing module of the node server according to the identifier of the node server includes: According to the identification of the node server, the deployment task is sent to the edge gateway service of the edge processing module of the node server via the public network through the central gateway service, so that the edge gateway service sends the deployment task to the automatic batch deployment process of the edge processing module.

7. The method according to claim 1, characterized in that The project template further includes: configurable personalized parameters, and before generating the deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data, further includes: The project template and the identifier of the node server are sent to the client, so that the client can configure personalized parameters of the project template according to the identifier of the node server.

8. The method according to claim 1, characterized in that The method further comprises: Receive deployment status information sent by the node server after deployment is completed, and send the deployment status information to the client.

9. The method according to claim 1, characterized in that: The method further comprises: Generate a third deployment task according to the access address of the service deployment data, the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data; According to the identification of the node server, the third deployment task is sent to the node server, so that the node server obtains the service deployment data of the service to be deployed according to the access address of the service deployment data, and batch deploys the services to be deployed according to the identification of the dependent middleware, the external access port, the deployment priority, and the service deployment data.

10. The method according to claim 1, characterized in that The method further comprises: When it is determined that the node server has deployed a project, in response to a project reconstruction and upgrade request initiated for the service to be deployed, a destruction instruction is sent to the node server, so that the node server destroys the deployed project according to the destruction instruction; Get updated project templates; According to the access address of the service deployment data in the updated project template, the updated service deployment data is obtained, and according to the identifier of the dependent middleware of the updated project template, the external access port, the deployment priority and the updated service deployment data, an updated deployment task is generated; The update deployment task is sent to the node server according to the identifier of the node server, so that the node server can create an updated deployment item to replace the destroyed deployed item according to the update deployment task.

11. A project deployment device, used for deploying a scheduling server, characterized in that: The device includes: An acquisition module, configured to acquire the project template and the identifier of the node server in response to a project deployment request initiated for the project template and the node server; the project template includes: at least one service to be deployed included in the project to be deployed, the access address of the service deployment data of the service to be deployed, the deployment priority of the service to be deployed, the external access port, and the identifier of the dependent middleware; A generation module, used to obtain the service deployment data of the service to be deployed according to the access address of the service deployment data, and generate a deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority and the service deployment data; A deployment module, used to send the deployment task to the node server according to the identifier of the node server, so that the node server can batch deploy the services to be deployed according to the deployment task, the identifier of the dependent middleware, the external access port, the deployment priority, and the service deployment data, wherein the services to be deployed include virtual machine services and / or container application services; The generating module comprises: A first acquisition submodule is used to acquire configuration information and deployment files of the virtual machine service according to the access address of the service deployment data when the service to be deployed includes a virtual machine service; The first generation submodule is used to generate a first deployment task according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file. The first deployment task is used for the node server to batch deploy the virtual machine service according to the identifier of the dependent middleware, the external access port, the deployment priority, the configuration information and the deployment file.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Server batch deployment system, method and device and medium

    CN109656582A